General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
Anony Mousse
Brodie Robertson
comments
Comments by "Anony Mousse" (@anon_y_mousse) on "Linux Environment Variables Are Kind Of Weird" video.
@artemis.nnnnnbbbbb It's not perfectly safe, but getenv_s is a standard function and is safer to use than just getenv. Of course, all the comments referring to setenv as being standard are incorrect as it's not standard C and POSIX isn't used for every OS.
2
One massively glaring error here is that setenv isn't in the C standard library. You're not meant to set environment variables, they should already be set before your program runs. The fact that there are shit programmers who think setting environment variables at runtime is in any way a good idea is sad. It's kind of stupid how many people in the comments are blaming C for non-standard bullshit that people do. It's a shame that people refuse to educate themselves and YouTube keeps censoring so many of my posts so clearly no one will learn from me, but it's even worse when the only voices allowed to speak do such a sloppy job with little to no research and get basic facts wrong. It's tantamount to spreading misinformation which is something they claim to hate, but in reality they perpetuate that fuckery all on their own.
1
@ruroruro Not only is that a stupid point of view to take, but it speaks to how fundamentally bad the industry has gotten that you actually believe what you're saying is in anyway an intelligent thought. First of all, you admit the caveats of such a point of view, which means you're already arguing in bad faith, and from a rather arrogant stance as well because there are other platforms, and they do count. Second of all, if you need to send yourself a message, then you're doing it horribly wrong by using setenv, both at all, and incorrectly for how it functions. Please quit now and go work as a fry cook.
1
@ruroruro And since YouTube is playing shenanigans, I'll reiterate that you shouldn't be programming if you're going to take the stance that you are. Go become a fry cook instead of littering the world with shit code from you who is a shit programmer.
1
@ruroruro Fuck YouTube for deleting perfectly innocuous posts. Stupid pieces of shit are the kind of idiot programmers that bring us dumbfucks like you who insist on doing things the wrong way and will never be corrected in your idiot thinking because you won't ever see the correction. Go ahead, continue making the world a worse place by writing code that will guaranteed fail. Don't bother learning the correct method of passing messages. Keep thinking that everything POSIX is correct. Although, if you insist on doing these things, the world would be better off if you worked for McDonald's instead.
1
@stefanalecu9532 I didn't say Brodie, I said specifically YouTube, and it's provable fact. And it's not persecution, it's just YouTube being evil.
1
@SianaGearz While it's not a thread, the shell does start background processes for you and you can send signals to those processes and share memory via the OS infrastructure. However, if we're being intelligent and not talking about the shell when the problem at hand has nothing to do with the shell, then we should realize that there are correct ways of sharing information but altering the environment variables once a process is running is not the correct way of sharing. Or perhaps you didn't understand what the actual bug being talked about was.
1