6

So new job and my superior is someone that keeps on writing really bad code. Whenever I point it out to him I can tell he's annoyed. Dont want to get fired after a week of working here :(

Comments
  • 0
    Maybe try to explain why and how it could be better? I don't anyone who is willing to learn should be annoyed if they can improve themselves with a little help
  • 0
    @Stukongeluk I tried, however it's a startup and he's the one that built the whole application. it's not like he's being an arse or anything I think it's just his pride stepping into the light - that and the fact that he's supposed to act like a superior so I'm guessing he's looking down on me.
  • 0
    That's a weird stance for a manager to take... Is he just bit following good design patterns, that'll land you with a bunch check of rigid, unmanageable code later on? Or is it something more sinister?
  • 0
    It's something more sinister. Least worst example I can think of is a 700+ function with if statements and massive amounts of logic, api calls and while loops - and that's a single function. There are worse things in there.
  • 0
    And no tests. What so ever.
  • 0
    Sounds like he needs to read sourcemaking.com a few times. 😉

    If he can't see the forest for the trees, then refactor while you write.
Add Comment