Wednesday, November 28, 2012

If you happen to be a psychic: Quote of the Week

Just started reading Refactoring to Patterns.  Starts off with a good reminder that YAGNI.

When you make your code more flexible or sophisticated than it needs to be, you over-engineer it.  Some programmers do this because they believe they know their system’s future requirements.  They reason that it’s best to make a design more flexible or sophisticated today, so it can accommodate the needs of tomorrow.  That sounds reasonable – if you happen to be psychic.

Joshua Kerievsky, Refactoring to Patterns p.1

Look at the code you’ve written recently.  Were you pretending you’re a psychic?

10 comments :

  1. I'm far too lazy to plan for a future that may never come.

    ReplyDelete
  2. Is there value in risk management? Is insurance a bad idea? Is there a difference between foresight and claims to psychic powers? When we speak of making a system "more flexible than it needs to be", what do we mean?

    ReplyDelete
  3. We often guess at the future. "One day we'll need that" or "one day somebody will ask for that". Usually that day never comes AND "they" ask for something different than what you thought which ends up being harder to deliver with the "flexibility" that you built in.

    The point being if you build it as simply as possible, you leave future possibility open to whatever comes instead of trying to guess the future.

    ReplyDelete
  4. The team is expensive, the best agency and more resources would mean a better engagement, but they still developed a great product.
    best it companies websites

    ReplyDelete
  5. Great web site. A lot of useful information here. I’m sending it to several friends ans also sharing in delicious. And obviously, thanks in your effort! 야설
    Feel free to visit my blog :
    야설

    ReplyDelete
  6. Very good information. Lucky me I recently found your website by accident I have book marked it for later!
    일본야동
    Feel free to visit my blog : 일본야동

    ReplyDelete
  7. This blog is very informative the stuff you provide I really enjoyed reading 국산야동
    Feel free to visit my blog : 국산야동

    ReplyDelete
  8. I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well. 일본야동
    Feel free to visit my blog : e 일본야동

    ReplyDelete

Original design by andrastudio
Blogger port by Blogger Templates