1093
you are viewing a single comment's thread
view the rest of the comments
[-] BorgDrone@lemmy.one 20 points 1 year ago

Is it really tempting for people? They've given me too many headaches when I've had to reformat or add functionality to files.

I don’t get it either. Why would you ever feel the need for them to begin with?

[-] magic_lobster_party@kbin.social 1 points 1 year ago

In software that’s already badly engineered. Either you do the work and refactor everything, or accept it’s probably not worth all the effort.

[-] CapeWearingAeroplane@sopuli.xyz 1 points 1 year ago

Unironically: For in-house scripts and toolboxes where I want to set stuff like input directory, output directory etc. for the whole toolbox, and then just run the scripts. There are other easy solutions of course, but this makes it really quick and easy to just run the scripts when I need to.

[-] BorgDrone@lemmy.one 6 points 1 year ago

But those would be constants, not variables.

[-] CapeWearingAeroplane@sopuli.xyz 1 points 1 year ago

I typically don't declare them as such - bring the pitchforks!

[-] Slotos@feddit.nl 1 points 1 year ago

Everything’s a variable if you’re brave enough.

[-] CapeWearingAeroplane@sopuli.xyz 2 points 1 year ago* (last edited 1 year ago)

My void* doesn't care about your const!

this post was submitted on 08 Oct 2023
1093 points (100.0% liked)

Programmer Humor

19551 readers
1107 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS