beardedrhino
link
fedilink
41Y

What am I looking at here? It just always goes to the first case right? 🤔

fsniper
creator
link
fedilink
-11Y

It’s not the real issue. I introduced that while anonymizing the data. It’s that a 3-5 liner code became a huge switch case by just incrementing the code and never thinking how it should be done. This was caused by like 15 engineers in time :)

Something like below would be huge improvement:

subs1 = ["cluster1", "cluster2"]
if subs1.contains(clusterName) return subs1

Lol. Dude, you can’t do that to a bunch of coders and not expect them to read it literally.

fsniper
creator
link
fedilink
11Y

Yep that’s on me:) let’s call this second breakfast!

Love you fam. :)

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
  • 64 users / day
  • 250 users / week
  • 420 users / month
  • 2.88K users / 6 months
  • 1 subscriber
  • 1.53K Posts
  • 33.9K Comments
  • Modlog