Found this in our codebase, apparently one of my co-workers had written this

  • 18
    The blank lines at the beginning and at the end of the method are slightly disturbing.
  • 58
    Honestly I'd do the same if someone is going to use such a useless metric as lines of code then fuck them this type of shit is going to happen
  • 17
    Useless code is useless.
    Sometimes devs need to do useless things to become productive again
  • 11
    @daarkfall Yes, and I'd even be tempted to write some utility that replaces function calls with the function code inlined. And look for another job, of course, since paying per line of code will result in an unmaintainable codebase which won't be any fun to spend your days with.
  • 7
    Seems something I would do on my college projects (one of the elements they base themselves on for our grades are the number of commits)
  • 2
  • 37
    The fact that your boss thinks more lines of code is better than less lines of codes truly makes him an idiot
  • 13
    With such a stupid thing to base pay on, I'd do the same. It just promotes bruteforcing everything.
  • 2
    It always catch me when I read "do nothing" because always tend to come from the same kind if programmers
  • 1
    @kamen Are just added value lines!
  • 4
    I forgot who said it but I heard in a python conference video "We have features not code" and of course more complicated things has a bigger chance of going wrong. Lesson of the day: That boss should learn to appreciate devs that can write features with little but cleverly written code.
  • 2
    The lines of the comments are too long
  • 4
    I'd just hardcode the whole app and solve the issue of $/line . Look bawss , I wrote 2000 lines of code today (one function) .
  • 3
    Shouldn't it be ==? Sorry, I have never seen this syntax before. Anyone know what language it is?
  • 3
    I guess recursion isnt much of an option over there huh? Better go full iterative
  • 4
    1. git blame
    2. Fired.
  • 1
    There must be a better way to do this. More implicitly.
  • 3
    @SpencerBeige he is assigning the value so one is fine :)
    It looks like JS
  • 7
    I wonder if deleted lines has the opposite effect on his salary.

    Imagine doing a refactor that replaces a lot of code with a few lines. He would probably be fired
  • 1
    This has since changed though, yeah? You don't get paid for lines written, right?
  • 3
    You should get paid a lot more if you produce what is required with the smallest amount of code.
  • 1
    @edisonn I kind of agree but it depends on the requirement to paraphrase gandalf 'a good programmer never uses too few lines of code nor to many they use exactly as many as they intend to'
Your Job Suck?
Get a Better Job
Add Comment