@bob_wiley@lemmy.world
link
fedilink
English
431Y

deleted by creator

SokathHisEyesOpen
link
fedilink
English
71Y

I found a variable named “t” Friday. I figured I must be looking at the minified version, but nope! Someone just decided to name something “t”, I have no idea why.

I pity the fool!

That just sounds to me like he hasn’t worked on large code bases with multiple teams. No way it would be considered acceptable once you’re interesting with enough other people.

@masterspace@lemmy.ca
link
fedilink
English
4
edit-2
1Y

Or just worked on codebases long enough to forget them… the biggest bastard I’ve encountered has been past me

Is he perhaps a decompiler?

@markstos@lemmy.world
link
fedilink
English
341Y

Solution: Code Style Guidelines doc that the team agrees on. A checkbox in the PR template that affirms that code is compliant with the guidelines.

This way it’s not personal, it’s a rule that everyone should follow as a shared standard.

@bob_wiley@lemmy.world
link
fedilink
English
151Y

deleted by creator

@GBU_28@lemm.ee
link
fedilink
English
61Y

Use cicd tooling to enforce it not human eyes

@bob_wiley@lemmy.world
link
fedilink
English
51Y

deleted by creator

enforce it

Stop right there. This idea does not exist in a workplace setting

ripcord
link
fedilink
3
edit-2
1Y

This sadly sounds like one of the projects on my teamat the moment and it’s horrifying.

One guy working on it, I’m really the only reviewer. Code is all stuff like this. Variables named j1 through j20, dozens and dozens of nearly identical functions with tons of brute force, copy-pasted code, etc. Works well enough but it’s just horrifying to try to read and review.

Edit:. Just remembered, he had all these grouped functions passing (and sometimes returning) 60+ identical variables that didn’t need to be local because he refused to use class vars, etc.

He’s gotten a lot better about this stuff in the last year though

@whofearsthenight@lemm.ee
link
fedilink
English
2
edit-2
1Y

You know, as an amateur with massive impostor syndrome who’s probably going to be applying for jobs soon, this comment and those like it give me strength.

@bob_wiley@lemmy.world
link
fedilink
English
11Y

deleted by creator

Create a post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
  • 1 user online
  • 77 users / day
  • 211 users / week
  • 413 users / month
  • 2.92K users / 6 months
  • 1 subscriber
  • 1.53K Posts
  • 33.8K Comments
  • Modlog