7

How hard can it be to refactor this 170 lines file?

- a single “data” variable used to store everything
- arrays inside arrays inside arrays (see prev point)
- operations with a lot of obscure sideEffects
- $data[] = something (which in magic php land means $data.enqueue()

Why is such… biological matter… even allowed to code? Fucker’s pretending they are a senior for four years: how in hell didn’t they learn to code in this timeframe?

Comments
  • 2
    with programming you either have "it" or you don't. I guess they don't :)
  • 1
    Generations of code inheritance, expanding and changing over time + an unwillingness for companies to allow complete rewrites at periodic intervals.
  • 1
    @ojt-rant I wish! This … smart person… wrote the code on its own a couple of months ago while I was on vacation and it was accepted by a manager (…), so it’s all on this person
  • 1
    @Hazarth I wish it was so simple! I don’t think there’s really “it”, I think as mentioned in other (not mine) posts people just do the bare minimum… if you don’t know shit and managers don’t complain, why learn stuff?
  • 0
    @piratefox ah...let's hope they were atleast an intern who didn't know any better, and not a veteran "progammer"
  • 2
    @ojt-rant nope “senior”
  • 0
    @piratefox something dirty and fast because you needed it yesterday (and you have 15 million other things to do) is sometimes the best for GTM.
Add Comment