Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
C0D4669441yAs long as there's a case of beer at the end.....
Or is all the logic in each case too? -
@horus oh, each case spans an average of about 5 or 6 lines, there's just that many cases...
-
Agile oriented development
Product manager oriented development
Stakeholder oriented development -
Users can import data to our system using spreadsheets, the type of thing they are importing is determined by each worksheet name... The case statement goes through all the possible import types then calls the relevant import service 😭 such a mess
-
We3D26511y@alturnativ I found a similar situation in cur company but w/ other type of info
and it's not even a switch... but each new case is a new if w/ more or less the same lines except for the query...
and they won't give me the time to refactor that ( I already started when I had time w/o tasks, but it's frozen now )
and I'm part of the problem now because new cases come around almost each week... -
That reaks of spiteful coding. Someone was pissed and wanted to take it out on others.
-
Reminds me of when I peered into this Redux state file of our frontend codebase... I closed the file when the initial state peered right back at me.
-
We3D26511y@alturnativ just check mine, urs is a ltl behind : 10k lines ( it has other logic too in that file but mostly is that cases... )
-
Am I the only one who had system of a down playing in the head with: "my case is so much bigger than yours"...
https://songtexte.com/songtext/...
If you replace all cocks with cases .... XD -
hjk10156961yThat should either be generated or you have data/configuration bleeding into your codebase.
-
Throw it into a dictionary and call it a day. Or throw it into a SQL DB and do a where.
This is maddening.
We've got a case statement spanning 3.5k lines.
rant