323
Added Bugs to Keep my job (sh.itjust.works)
you are viewing a single comment's thread
view the rest of the comments
[-] Schal330@lemmy.world 49 points 6 months ago

Removed double quotes, added single quotes

[-] iAvicenna@lemmy.world 35 points 6 months ago

someone later on -m "removed single quotes, added double quotes"

[-] QuazarOmega@lemy.lol 19 points 6 months ago

More commits == More money!!!

Real talk: I have worked at a company where an exec briefly had the bright idea to rank developers on number of commits made.

You can imagine how that turned out.

He wasn’t an exec for very long.

[-] QuazarOmega@lemy.lol 3 points 6 months ago

lmaoo, I can't believe someone actually did that and was serious about it.
I'm already imagining commits piling up with comments like:

  • "add a newline"
  • "move function up"
  • "rename variable users to user_list"
  • "Revert previous commit"
  • "no John, it's user_list and that's it, don't you dare change it again"

He wasn’t an exec for very long.

Good riddance I guess

Oh, no, we can do better.

Every single line of every single PR is an individual commit. And never squash-commit.

[-] QuazarOmega@lemy.lol 2 points 6 months ago
[-] gravitas_deficiency@sh.itjust.works 2 points 6 months ago* (last edited 6 months ago)

If you really want to nuke it from orbit: do it for every character.

It is absolutely technically feasible to go further than that, but I think that’s the point of diminishing returns in terms of effort.

[-] QuazarOmega@lemy.lol 1 points 6 months ago

Hah, I knew it would come to that

but I think that’s the point of diminishing returns in terms of effort

Not if you make another application to automatically split commits in that way... application which will need its own commits, it's never-ending

[-] muntedcrocodile@lemm.ee 2 points 6 months ago

Why do u prefer single quotes?

[-] grrgyle@slrpnk.net 4 points 6 months ago

Not Shall330, but double quotes can imply variables in the string in some languages.

[-] muntedcrocodile@lemm.ee 2 points 6 months ago
[-] bitchkat@lemmy.world 5 points 6 months ago

PHP for one. "$x" will interpret the variable $x. '$x' does not.

[-] muntedcrocodile@lemm.ee 1 points 6 months ago

Well there's ya problem ur using php.

[-] Schal330@lemmy.world 3 points 6 months ago

I have no preference! It was to do with Spring/yaml config and some really strange conflict which required the use of single quotes. I'm still a total noob in the world of software dev, so I wouldn't be able to explain why it worked 🤣

this post was submitted on 04 May 2024
323 points (92.8% liked)

Programmer Humor

19544 readers
496 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