Added TILs to the mix!
This commit is contained in:
parent
81e5bff5d8
commit
1e3b1d83a2
@ -1,16 +1,11 @@
|
|||||||
---
|
---
|
||||||
title: "{{ replace .Name "-" " " | title }}"
|
|
||||||
date: {{ .Date }}
|
date: {{ .Date }}
|
||||||
draft: true
|
description: ""
|
||||||
tags:
|
lastmod: {{ .Date }}
|
||||||
summary:
|
showTableOfContents: true
|
||||||
tocOpen: true
|
tags: [ ]
|
||||||
cover:
|
type: "post"
|
||||||
image: "/images/img.jpg"
|
title: "{{ replace .Name "-" " " | title }}"
|
||||||
# can also paste direct link from external site
|
image: ""
|
||||||
# ex. https://i.ibb.co/K0HVPBd/paper-mod-profilemode.png
|
|
||||||
alt: ""
|
|
||||||
caption: ""
|
|
||||||
relative: false
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
16
archetypes/til.md
Normal file
16
archetypes/til.md
Normal 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
|
17
config.toml
17
config.toml
@ -21,11 +21,11 @@ customHeadHTML = '''
|
|||||||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
|
<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="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
|
||||||
<link rel="manifest" href="/site.webmanifest">
|
<link rel="manifest" href="/site.webmanifest">
|
||||||
<script>console.log("Custom script")</script>
|
<!-- <script>console.log("Custom script")</script> -->
|
||||||
<!-- <script src="/js/custom.js"></script> -->
|
<!-- <script src="/js/custom.js"></script> -->
|
||||||
''' # Import file from `static/`
|
''' # Import file from `static/`
|
||||||
# customFooterHTML = '<p>foot123</p>'
|
# customFooterHTML = '<p>foot123</p>'
|
||||||
togglePreviousAndNextButtons = "false"
|
togglePreviousAndNextButtons = "true"
|
||||||
avatarUrl = "/images/fosscat_icon.png"
|
avatarUrl = "/images/fosscat_icon.png"
|
||||||
avatarSize = "size-s"
|
avatarSize = "size-s"
|
||||||
numberPostsOnHomePage = 5
|
numberPostsOnHomePage = 5
|
||||||
@ -48,21 +48,26 @@ name = "Home"
|
|||||||
url = "/"
|
url = "/"
|
||||||
weight = 1
|
weight = 1
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
|
identifier = "tils"
|
||||||
|
name = "TIL's"
|
||||||
|
url = "/tils/"
|
||||||
|
weight = 2
|
||||||
|
[[menu.main]]
|
||||||
name = "Projects"
|
name = "Projects"
|
||||||
url = "/projects/"
|
url = "/projects/"
|
||||||
weight = 2
|
weight = 3
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "Posts"
|
name = "Posts"
|
||||||
url = "/posts/"
|
url = "/posts/"
|
||||||
weight = 3
|
weight = 4
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "Tags"
|
name = "Tags"
|
||||||
url= "/tags/"
|
url= "/tags/"
|
||||||
weight= 4
|
weight= 5
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
identifier = "Gitea"
|
identifier = "Gitea"
|
||||||
url = "https://git.fosscat.com/n8r/fosscat-site"
|
url = "https://git.fosscat.com/n8r/fosscat-site"
|
||||||
weight = 5
|
weight = 6
|
||||||
# Add Icon
|
# Add Icon
|
||||||
pre = "<span data-feather='code'></span>"
|
pre = "<span data-feather='code'></span>"
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
|
@ -1,10 +1,12 @@
|
|||||||
---
|
---
|
||||||
title: "When Easy Going Isnt Easy"
|
title: "When Easy Going Isnt Easy"
|
||||||
date: 2023-09-08T10:02:55-06:00
|
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']
|
tags: ['personality', 'mental health', 'advice']
|
||||||
summary: 'My people-pleasing brain demands smooth sailing waters, often at the cost of the emotionally sensitive.'
|
description: 'My people-pleasing brain demands smooth sailing waters, often at the cost of the emotionally sensitive.'
|
||||||
tocOpen: true
|
showTableOfContents: true
|
||||||
|
weight: 2
|
||||||
---
|
---
|
||||||
|
|
||||||
# Easy Doesn't Equal Right
|
# Easy Doesn't Equal Right
|
||||||
|
10
content/tils/_index.md
Normal file
10
content/tils/_index.md
Normal 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
|
29
content/tils/hammock-driven-development.md
Normal file
29
content/tils/hammock-driven-development.md
Normal 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.
|
@ -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
26
layouts/section/til.html
Normal 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
31
layouts/tils/list.html
Normal 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
6
layouts/tils/single.html
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{{ define "main" }}
|
||||||
|
|
||||||
|
{{- partial "post.html" . -}}
|
||||||
|
{{- partial "toc.html" . -}}
|
||||||
|
|
||||||
|
{{ end }}
|
BIN
static/images/hammock.jpg
Normal file
BIN
static/images/hammock.jpg
Normal file
Binary file not shown.
After ![]() (image error) Size: 104 KiB |
Loading…
Reference in New Issue
Block a user