I was an embedded developer for years for critical applications that could not go down. While I preferred avoiding dynamically allocating memory, as it was much less risky, there were certainly times it just made sense or was the only way.
One was when we were reprogramming the device, which was connected to an fpga which would also require reprogramming. You couldn’t store both the fpga binary and the new binary for the device in memory at once, but there was plenty of space to hold each one individually. So allocate the space for the fpga, program it, free and allocate space the new processor code, verify and flash.
While I preferred avoiding dynamically allocating memory, as it was much less risky, there were certainly times it just made sense or was the only way.
This is not a common attitude to have outside of embedded and similar areas. Most programmers dynamically allocate memory without a second thought and not as a last resort. Python is one of the most popular programming languages, but how often do you see Python code that is capable of running without allocating memory at runtime?
I guess I’m taking the meme too literally here and that people would be disgusted by it. While I think it’s a common practice, but obviously to be used very judiciously.
I’d effectively gain the advantage of dynamic allocation by using a union (or just a generic unsigned char buffer[16384] and use it twice). Mostly the same thing as a malloc.
“Fetishized” is a very strong word, and I’d also hesitate to call a speech impediment “baby talk” – I’ve met grown adults who talk that way simply because they don’t know better
Yunno, I really thought that in the two and a half decades since the advent of SomethingAwful, internet culture would have progressed to the point where people were willing to live and let live, instead of pointing and making fun of anyone who was “cringe”
EDIT: aaaand down vote and walk away. It’s like Reddit all over again. Well, good luck out there. Hope you find peace.
Look, just because you know how to code doesn’t mean you have to steal dinosaur DNA for the CIA. That part is totally optional.
You could choose to instead hack an oil company to implant a worm that siphons off all the extra money rounded off by bank transactions and disguise it with a virus that makes oil tankers capsize.
Crappy laptop trackpad picks up stray clicks from my wrists being close enough to trigger touch without touching. Blind operation is not an option, unless I bust the whole experience down to a text-only terminal.
But otherwise, throw in a decent VR headset and I’m on my way to yoga-based development.
programmer_humor
Oldest
This magazine is from a federated server and may be incomplete. Browse more on the original instance.