Subdirs of $HOME
are used as defaults. So using $HOME
alone is not enough.
Also, prior to xdg dirs, applications were (many still are) storing their data under $HOME/.myapplication/
.
- 0 Posts
- 14 Comments
Nah you should use xdg dirs, it’s 2025.
Speiser0@feddit.orgto Programmer Humor@programming.dev•Everyone knows what an email address is, right? (Quiz)15·1 month agoPretty much everything I’ve seen in e-mail is needlessly complicated and weird. So of course addresses are as well.
My comment is sarcastic, obviously. The argument Kairos gave is similar to this. You can still introduce vulnerabilities. The issue is normally that you introduce them accidentally. Rust gives you safety, but does not put your code into a sandbox. It looked to me like they weren’t aware of this difference.
You don’t even need
unsafe
, you can just take user input and execute it in a shell and rust will let you do it. Totally insecure!
Speiser0@feddit.orgto Programmer Humor@programming.dev•They're trying to normalize calling vibe coding a "programming paradigm," don't let them.13·4 months agoWhen you write code for a “runtime” that wasn’t intended to run your code.
That definition would be too broad, as includes any type of exploit.
In ROP, you modify the stack to write return addresses and then return to jump to the first of these addresses, the return addresses go to parts of the executable that end with a return instruction (gadgets), so it will always return to the next of your return address.
(That video is maybe not the easiest introduction to ROP.)
Having ROP in here as normal programming paradigm, as opposed to vibe coding, made the meme so much better.
Relevant xkcd: https://xkcd.com/2597/
Speiser0@feddit.orgto Programmer Humor@programming.dev•The difference between programmers and testers4·6 months agoEither that or incest porn.
Speiser0@feddit.orgto Programmer Humor@programming.dev•The difference between programmers and testers28·6 months agoThen we’ll ship you and your sister.
Might depend on your file browser.
You may also want to try, for example, the files “a1”, “a2”, “a3”, and “a10”. Lexicographically, “a2”>“a10”, but my file browser displays “a10” after “a2”.
Think the other way around: What’s the use case for case insensitive file names? Does it justify the effort and complexity for the filesystem and the programs to know the difference between lower and upper space chars?
Speiser0@feddit.orgto Programmer Humor@lemmy.ml•Oh boy what a beautiful regex. I'm sure it does something logical and easy to understand.11·11 months agoRegular expressions in general, and automata theory, sure you should know about that. But a specific extended regex language like here? That’s like saying you’re shit at coding if you can’t do <insert arbitrary programming language here>.
!programming_languages@programming.dev