Added TILs to the mix!

This commit is contained in:
Nate Anderson 2025-03-04 15:08:09 -07:00
parent 81e5bff5d8
commit 1e3b1d83a2
11 changed files with 141 additions and 33 deletions

View File

@ -1,16 +1,11 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
tags:
summary:
tocOpen: true
cover:
image: "/images/img.jpg"
# can also paste direct link from external site
# ex. https://i.ibb.co/K0HVPBd/paper-mod-profilemode.png
alt: ""
caption: ""
relative: false
description: ""
lastmod: {{ .Date }}
showTableOfContents: true
tags: [ ]
type: "post"
title: "{{ replace .Name "-" " " | title }}"
image: ""
---

16
archetypes/til.md Normal file
View File

@ -0,0 +1,16 @@
---
date: {{ .Date }}
description: ""
lastmod: {{ .Date }}
showTableOfContents: true
type: "tils"
title: "TIL: {{ replace .Name "-" " " | title }}"
image: ""
image_credit: ""
image_alt: ""
tags: []
---
# Context
# Reflection

View File

@ -21,11 +21,11 @@ customHeadHTML = '''
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<script>console.log("Custom script")</script>
<!-- <script>console.log("Custom script")</script> -->
<!-- <script src="/js/custom.js"></script> -->
''' # Import file from `static/`
# customFooterHTML = '<p>foot123</p>'
togglePreviousAndNextButtons = "false"
togglePreviousAndNextButtons = "true"
avatarUrl = "/images/fosscat_icon.png"
avatarSize = "size-s"
numberPostsOnHomePage = 5
@ -48,21 +48,26 @@ name = "Home"
url = "/"
weight = 1
[[menu.main]]
identifier = "tils"
name = "TIL's"
url = "/tils/"
weight = 2
[[menu.main]]
name = "Projects"
url = "/projects/"
weight = 2
weight = 3
[[menu.main]]
name = "Posts"
url = "/posts/"
weight = 3
weight = 4
[[menu.main]]
name = "Tags"
url= "/tags/"
weight= 4
weight= 5
[[menu.main]]
identifier = "Gitea"
url = "https://git.fosscat.com/n8r/fosscat-site"
weight = 5
weight = 6
# Add Icon
pre = "<span data-feather='code'></span>"
[[menu.main]]

View File

@ -1,10 +1,12 @@
---
title: "When Easy Going Isnt Easy"
date: 2023-09-08T10:02:55-06:00
draft: false
last-mod: 2023-09-08T10:02:55-06:00
type: 'post'
tags: ['personality', 'mental health', 'advice']
summary: 'My people-pleasing brain demands smooth sailing waters, often at the cost of the emotionally sensitive.'
tocOpen: true
description: 'My people-pleasing brain demands smooth sailing waters, often at the cost of the emotionally sensitive.'
showTableOfContents: true
weight: 2
---
# Easy Doesn't Equal Right

10
content/tils/_index.md Normal file
View File

@ -0,0 +1,10 @@
---
title: "Today I Learned"
type: "til"
---
Anyday I learn something cool, I will write up a brief TIL (Today I Learned) post.
If they help you, great! But I think having a collection of my learnings will be pretty neat just for myself!
# My TILs

View File

@ -0,0 +1,29 @@
---
date: 2025-03-03T09:19:07-07:00
description: "I learned the importance of taking time away from the computer in software development"
lastmod: 2025-03-03T09:19:07-07:00
showTableOfContents: true
type: "tils"
title: "TIL: Hammock Driven Development"
image: "images/hammock.jpg"
alt: "hammock with a cat"
tags: ["clojure", "practices", "rich hickey"]
---
# Context
I started learning Clojure recently with the [Clojure for the Brave](https://www.braveclojure.com/) book, and found online a mention of [Rich Hickey's Greatest Hits](https://changelog.com/posts/rich-hickeys-greatest-hits).
Curious, I listened to his [Hammock Driven Development](https://www.youtube.com/watch?v=f84n5oFoZBc) talk and had my mind changed about planning in software.
In essence, hammock driven development emphasizes thinking through the problem, uninterrupted and consistently, thus creating agenda notes for our background mind to mull over the problem.
Done correctly, you experience what Rich Hickey describes as a "delicious cake"[^1] of a solution.
[^1]: Quote from [his talk](https://www.youtube.com/watch?v=f84n5oFoZBc)
# Reflection
I think in the 90's / early 2000's the sun started to set on the big boom of software planning, epitomized in the [waterfall methodology](https://en.wikipedia.org/wiki/Waterfall_model).
But in my opinion, we may have thrown the baby out with the bath water here. I may be too Primegen-pilled, but I've shared his opinion that the best way to learn is to charge forward,
spewing out code, breaking things, only dipping my toes into docs long enough to cobble together what I need. Then, once I understand the problem space, I can really start to design my
software for the space.

View File

@ -1,12 +0,0 @@
{{ define "main" }}
<div class="container">
<h1>All {{ .Type }}</h1>
<ul>
{{ range .Data.Pages }}
<li>
<a href="{{ .Permalink }}">{{ .Title }}</a>
</li>
{{ end }}
</ul>
</div>
{{ end }}

26
layouts/section/til.html Normal file
View File

@ -0,0 +1,26 @@
{{ define "main" }}
<div class="container">
<h1>Today I Learned</h1>
<p>Debug Info:</p>
<ul>
<li>Total Pages: {{ len .Pages }}</li>
<li>Is Section: {{ .IsSection }}</li>
<li>Section Name: {{ .Section }}</li>
</ul>
{{ range .Pages }}
<article>
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
<p>Date: {{ .Date.Format "January 2, 2006" }}</p>
{{ with .Description }}
<p>{{ . }}</p>
{{ end }}
</article>
{{ end }}
{{ if eq (len .Pages) 0 }}
<p>No TIL posts found.</p>
{{ end }}
</div>
{{ end }}

31
layouts/tils/list.html Normal file
View File

@ -0,0 +1,31 @@
{{ define "main" }}
<div class="container">
<h1 class="page-title">{{ .Title }}</h1>
{{ .Content }}
<div class="posts-list">
{{ range .Pages }}
<article class="post-entry">
<header class="entry-header">
<h2 class="entry-title">
<a href="{{ .Permalink }}" rel="bookmark">
{{ .Date.Format "Jan 2, 2006" }} - {{ .Title }}
</a>
</h2>
</header>
{{ with .Description }}
<div class="entry-summary">
{{ . }}
</div>
{{ end }}
</article>
{{ end }}
{{ if eq (len .Pages) 0 }}
<p>No TIL posts yet.</p>
{{ end }}
</div>
</div>
{{ end }}

6
layouts/tils/single.html Normal file
View File

@ -0,0 +1,6 @@
{{ define "main" }}
{{- partial "post.html" . -}}
{{- partial "toc.html" . -}}
{{ end }}

BIN
static/images/hammock.jpg Normal file

Binary file not shown.

After

(image error) Size: 104 KiB