19
rui725
3y

Biggest sin is writing code without taking into account clean coding and just doing what ever is necessary to make the code work

Comments
  • 0
    Isn't that called a "job"?
  • 2
    @kgbemployee it’s unpractical coding and dirty way of solving things.. you wont even understand the logic behind it if you read the code..
  • 0
    @rui725 you basically described most of the code base at my current company.
    I know what you're saying and you're right, unfortunately there isn't always time/willingness to apply good practices.
    I get a new surprise each day when looking through code written even last year by people who have left the company.
  • 2
    Gotta built a good pretty printer that would format your code and also detect unused variable and other ilogical stuff :)
  • 1
    First make it work then make it pretty. Except the second part is often forgotten. Thats why one should do TDD like explained in a talk from Martin fowler and robert c Martin. Make the test pass and then immediatly refactor.
    So the sin for me is not to refactor after making it work.
  • 0
    @klukas it’d be nice to do some TDD actually haven’t tried it... don’t know how to start doing it primarily it is used in creating apps... mostly function driven..
  • 1
  • 0
    @klukas never really done any test with java haha xD ... I just do coding whatever works...thanks for giving me a link...
Add Comment