YAGNI – you aren't gonna need it

At times, you might be compelled to write some code because you think you'll need it. It's just a simple method. If you have a table full of data you'll probably need a GetAll method and a GetById method. A word of caution here: don't write any code until you have a true need for it. The more code that is written, the more code needs to be maintained. If you write code that you think you might need, but never actually use, you've wasted effort. Worse yet, you've introduced code that must be maintained until or unless it is removed.

Don't write code in anticipation of a future need. This is wasteful and often costly to develop and maintain.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.222.111.243