Readit News logoReadit News
Bleibeidl commented on ./watch   dotslashwatch.com/... · Posted by u/shrx
Y_Y · 2 months ago
On that point, I see an awful lot of code that uses dotslash as if it was necessary for files in the current directory.

You only need to prepend dotslash to a filename in order of disambiguate invocations of executables in the the current directory (and not a subdirectory).

This is because bare commands will be looked up in $PATH, rather than among executable files in $PWD.

It strikes me as weird copycat (without understanding) programming to just have it wherever you're referring to a local file. In fact I prefer to invoke `bash foo.sh` rather than `mv foo.sh foo; chmod +x foo.sh; ./foo.sh`. (This assumes that I don't need to rely on something special in the shebang line.) This also lets you use tab-completion as normal, as well as adding flags for bash like -x.

(I know you could use it for clarity when an argument could look like a string or a file, but I don't think that's usuaully the purpose.)

Bleibeidl · 2 months ago
I'm pretty sure most people use it to make clear it's a relative path. It takes mental load off the one reading the code. That's why I pretty much always use it, not only when executing things.
Bleibeidl commented on Vibe Coding Through the Berghain Challenge   nibzard.com/berghain/... · Posted by u/nkko
ryanwhitney · 3 months ago
I think chatgpt is their writing partner too. Maybe the other way around.
Bleibeidl · 3 months ago
That's discosed at the ending of the "article".
Bleibeidl commented on Log by time, not by count   johnscolaro.xyz/blog/log-... · Posted by u/JohnScolaro
Bleibeidl · 5 months ago
No, please don't use logs to deduct whether your application is running. Provide an endpoint which presents health information and use infrastructure-level metrics.
Bleibeidl commented on SSH Keys Don't Scale. SSH Certificates Do   infisical.com/blog/ssh-ke... · Posted by u/dangtony98
Bleibeidl · 8 months ago
... or use soemthing like FreeIPA
Bleibeidl commented on Ask HN: How do you discover music?    · Posted by u/yoshua921
Bleibeidl · 3 years ago
For a long time Soulseek (p2p platform similar to early napster) by bulk-downloading artists releases which released on labels labels i know. Then look for other artists on the label, or another label an artist releases on and repeat the process.

This turns out this was very effective to not stay in a style or comfort zone bubble. Nowadays I collect vinyl and find new stuff via bargain bin deals and on flea markets. That said, this approaches are probably better suited for people who are not fixated on particular styles.

Discogs.com is a great resource to look around and find new stuff on label level. I'm not affilatednwith them, but use their service for over a decade for the database, and more recently to buy some vinyl I couldn't find locally.

u/Bleibeidl

KarmaCake day4September 14, 2022View Original