11

86 lines of code...duplicated 3 times in the same file...and only a single integer constant is different. This is the shit that makes my day to day work tedious.

Im glad I dont personally know the previous dev, he would get his throat punched...though calling him a dev is more of a compliment than he deserves.

Comments
  • 2
    Something similar happened to me on a project time ago.

    This 'developer' do a copy/paste of a code, put it in a hideous if/else if

    "if zip code === 'whatever' do
    <same block of code changin the zip code>"

    'Idk, it works'

    He got himself fired after one month or so.
  • 2
    Once a guy made an Android app for my boss(pet project) on contract..
    So this guy instead of using pager and fragments for bottom bars, added a layout at bottom on every activity with buttons state checked to that activity.... Code for capturing the screen was copied in every activity... It was a nightmare....
    Almost half of the code was duplicated...
    What bugged me was when I tried to tell him that you should use this and that.. instead of learning he would always say "it works right"
    No wonder he didnt get to extend the contract for support...
Add Comment