воскресенье, 24 июня 2012 г.

U do something wrong, man!

Sometimes I'm writing code and my inner voice tells me: "Stop! U do something wrong, man!" There are some signs of writing "code smell" I wanted to share with u. Of course, they aren't true in last  instance, but they are reasons to stop coding and think a little about what u're doing.

So, u do something wrong, man:

  • if u don't recognize ur code after two days u wrote.
  • if u have more than three level deep class inheritance
  • if ur unit-tests change the state(db, ini, etc...)
  • if ur unit-tests runs hours
  • if u have such class names as "AnotherClass, SuperSingleton, ButtonX", or variables like "a, b, buy_1, buy_2"
  • if u have 4-5 connected to each other singletons.
  • if yr task takes 4-5 days to complete.
  • if u have MVVMC instead of MVC
  • if u agree with everything with designer, yr investor and has no idea to change it.
I'm sure, to be continued...


Комментариев нет:

Отправить комментарий