News for hackers. Stuff that matters.
Re:Johnny Decimal by kazinator on Tuesday June 13, 2023 @09:48AM (#36310194)
This would be improved by not advocating spaces in directory names in a Unix environment. Especially in anything related to software builds:

  42.01 Test and run scripts % _
Big nope.

(And why would you do this in that context instead of established conventions like "tests", "src", "doc", ...)

The author didn't use spaces in his URL paths:

  johnnydecimal.com/10-19-concepts/11-core/11.01-introduction/
The author evidently doesn't understand their own scheme and is not able to to deploy it correctly in the pats used in their own website. They have taken the simple concept of "the introduction is under eleven dot oh one", and blown it up into "10-19/11-core/11.01-introduction".

Instead of the dot, which is not used as a directory separator by any contemporary mainstream OS, just use the slash! The introduction is 11/01, not 11.01.

Now we can just have this:

  johnnydecimal.com/11-core/01-introduction/
Why not use symlinks?

  11 -> core
  core/
      /01 -> introduction
      /introduction
The problem with conflating the numbers and descriptions is that you cannot tab-complete on something if you remember the category name, but not the number.

The links could go the other way, from text to numbers, to help people transition to the numbers. (So that when you ask the OS to resolve symlinks in a path like core/introduction, you get 11/01.)

There are no comments on this comment yet.