Re:Start all of your commands with a comma
by eterps on Saturday February 07, 2026 @06:09AM
(#46922911)
I use my_ as a prefix.
[ Parent
| on HN ]
Re:Start all of your commands with a comma
by ndsipa_pomu on Saturday February 07, 2026 @07:33AM
(#46923346)
I used to use "do" as a prefix e.g. "doBackup"
Nowadays, I tend to skip using a personal prefix and just try to name commands with a suitable verb in front (e.g. "backupMySQL") and ensure that there's no name collisions.
Re:Start all of your commands with a comma
by JamesTRexx on Saturday February 07, 2026 @06:56AM
(#46923138)
Whenever I see "my" as a prefix, it feels like such a childish "my first Sony" thing.
I hate official sites using that.
Re:Start all of your commands with a comma
by SoftTalker on Saturday February 07, 2026 @11:48AM
(#46925259)
This was actually the same feeling I had when I tried to learn perl. I just had a visceral dislike for "my" as the keyword to declare a local variable.
Re:Start all of your commands with a comma
by k3vinw on Saturday February 07, 2026 @10:23AM
(#46924571)
That’s a more meaningful prefix than “,” at the expense of a couple more key strokes. I consider that to still be a win in the book of tab completions.
I would replace underscore with “-“ or “.”
Re:Start all of your commands with a comma
by ndsipa_pomu on Saturday February 07, 2026 @12:31PM
(#46925674)
I'd warn against creating files starting with "-" as that can lead to unexpected results with tools if you forget to use "--" to end options. Nothing wrong with using "my-" as a prefix though.