3
Incremental programming (media.kbin.social)
top 2 comments
sorted by: hot top controversial new old
[-] beardedrhino@lemmy.ca 0 points 1 year ago

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

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

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

this post was submitted on 14 Jul 2023
3 points (100.0% liked)

Programmer Humor

32070 readers
474 users here now

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

Rules:

founded 5 years ago
MODERATORS