You are viewing a single thread.
View all comments View context
19 points

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?

permalink
report
parent
reply
1 point

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.

permalink
report
parent
reply
5 points

But those would be constants, not variables.

permalink
report
parent
reply
1 point

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

permalink
report
parent
reply
1 point

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.

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

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

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 7.2K

    Monthly active users

  • 954

    Posts

  • 36K

    Comments