News for hackers. Stuff that matters.
Re:Start all of your commands with a comma (2009) by codazoda on Monday June 24, 2024 @08:37AM (#40775288)
I like the idea of using periods for collections of commands. I have a todo list hacked together with shell scripts and I've been thinking about how I might want to stay away from collisions. I think I'll use do.thing style commands, so my commands will be:

  do.item  Add an item to the bottom of my todo list  
  do.soon  List the items that I need to do soon  
  do.next  List the next item to work on  
  do.mark  Mark the current item done
How do you implement namespaces? Is it just that you do this with all the commands you create for this company?
Re:Start all of your commands with a comma (2009) by victor141516 on Monday June 24, 2024 @03:25PM (#40779695)
> How do you implement namespaces? Is it just that you do this with all the commands you create for this company?

Exactly. It's super barebones but it works haha.

Re:Start all of your commands with a comma (2009) by codazoda on Tuesday June 25, 2024 @10:52AM (#40789389)
I liked the idea of this but it won't work for me in practice. A down-side of periods is that you can't use them in an `alias`. Since that is how I configure a lot of these commands the period is probably not an option I can use consistently.