First Post Again
Posted on Fri, 14 Nov 2025 22:31by Kamal
Here's yet another post, yet another new beginning.
Here's a little thing about the file naming
We've tried a few different possibilities to zero-in on a file naming convention for this blog.
Coursely, here are the top 3 possibilities, this post itself being number 3.
title-of-the-post-itself.md2025-11-14-date-then-title-of-the-post.md1000-series-of-numbers-starting-from-1000-and-then-title-of-the-post.md
The reason we tried this stuff is in order to find the most manageable and easy to handle system of organising files for a static blog such as this one.
Let's look at each of the types above and their advantages and tradeoffs.
1. just the title
this is the simplest. everything in the filesystem gets sorted alphanumerically, so these files are organised like a dictionary, no sign of date of post in the order the files appear. if that is fine with the user, this is the cleanest approach.
2. date as yyyy-mm-dd then title
this allows us to sort the files in the order of date of posting even in the alphanumerical order as long as the date is in yyyy-mm-dd format. if the date of posting is important to you, this is the way to go. this also preserves the natural order of the post (needless to say this, but chronological ordering happens alphanumerically).
3. numerical indices, we chose to start from 1000
so filenames starting with serial numbers, but the sequence starts from 1000.
why 1000?
we're thinking 9000 posts is a reasonably future-proof slot to look for in this context and even if it exceeds that, we'll be fine with the new sequence starting from 10000 at a much later point in time.
This allows us to avoid the need to use numbers like 0001, 0002 (basically avoid zero-padding), and still keep the index 4-digit.
advantages?
it also preserves our chronological order when desired, but also allows to break the chronological order if so desired. eg. you can post number 1010 now, and choose to post 1005 later, and still leave slots 1001-1004, and 1006-1009 open for later posts.
the unfortunate trade-off in either case of sequential numbering? whatever filename you choose also becomes the url of the post. so while it has utility, it is also a little bit of an eyesore.