Skip to content

Commit 1b2a9d2

Browse files
Merge pull request #12 from weeklydevchat/NL-2025-05-13
"Does Software Development Change the Way You Think?"
2 parents 32d0842 + 653d3bc commit 1b2a9d2

File tree

3 files changed

+44
-5
lines changed

3 files changed

+44
-5
lines changed

create_post.ps1

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,22 @@
55
# At the top of the file create a yaml block with title and date.
66

77
# I needed to unquote the date, and add the Out-Null to the New-Item command.
8+
# update... use the current date to get the next Tuesday, and create the folder for that date.
9+
810

911
# Get the current date
1012
$currentDate = Get-Date
11-
$year = $currentDate.Year
12-
$month = $currentDate.Month.ToString("D2")
13-
$day = $currentDate.Day.ToString("D2")
13+
# Calculate days to Tuesday (Tuesday is 2 in DayOfWeek enum, 0-6 for Sunday-Saturday)
14+
$daysToTuesday = (2 - [int]$currentDate.DayOfWeek + 7) % 7
15+
# If today is Tuesday, we want same day, so adjust if result is 7
16+
if ($daysToTuesday -eq 7) { $daysToTuesday = 0 }
17+
# Get Tuesday's date
18+
$tuesdayDate = $currentDate.AddDays($daysToTuesday)
19+
$year = $tuesdayDate.Year
20+
$month = $tuesdayDate.Month.ToString("D2")
21+
$day = $tuesdayDate.Day.ToString("D2")
22+
23+
1424

1525
# Define the folder path
1626
$folderPath = "docs/posts/$year/$month/$day"
@@ -25,15 +35,21 @@ $filePath = "$folderPath/index.md"
2535

2636
# Create the markdown file with YAML front matter
2737
$title = "Your Blog Post Title"
28-
$date = $currentDate.ToString("yyyy-MM-dd")
38+
$date = $tuesdayDate.ToString("yyyy-MM-dd")
2939

3040
$yamlContent = @"
3141
---
3242
title: "$title"
3343
date: $date
3444
authors:
35-
-
45+
- chris | norm | omar
3646
---
47+
48+
TOPIC_INTRODUCTION_HERE
49+
50+
Everyone and anyone are welcome to [join](https://weeklydevchat.com/join/) as long as you are kind, supportive, and respectful of others. Zoom link will be posted at 12pm MDT.
51+
52+
![alt text](${date}_image_filename.webp)
3753
"@
3854

3955
# Write the content to the file
3.01 MB
Loading

docs/posts/2025/05/13/index.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
title: "Does Software Development Change the Way You Think?"
3+
date: 2025-05-13
4+
authors:
5+
- norm
6+
7+
---
8+
9+
As a developer, have you noticed that you approach life differently than "normal" people? After all those years of training and career, do you think differently than how you used to?
10+
11+
In other words, do you approach non-coding problems like code?
12+
13+
Some examples:
14+
15+
* Breaking problems into parts, like modular code: e.g. you plan a trip by organising flights and hotels like modules.
16+
* Spotting reusable patterns: e.g. you standardise meeting agendas using templates.
17+
* Debugging: e.g. you troubleshoot a friend's wifi by methodically working from the edge to the ISP.
18+
19+
Are these shifts unique to coding? Do they make life better or just annoy those around you?
20+
21+
Everyone and anyone are welcome to [join](https://weeklydevchat.com/join/) as long as you are kind, supportive, and respectful of others.
22+
23+
![thinking](2025-05-13_think.webp)

0 commit comments

Comments
 (0)