The YAGNI Principle

2,987 views

Published on

Principle to avoid speculative planning & programming. Thinking, knowing, feeling the business pulse.

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,987
On SlideShare
0
From Embeds
0
Number of Embeds
849
Actions
Shares
0
Downloads
12
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

The YAGNI Principle

  1. 1. YAGNIPrinciple to avoid speculative planning & programming
  2. 2. About me • Gjero Krsteski • Software Developer • QuestBack GmbH, Germany • Contributor: ZF1, Zurmo, phlexible • father + trainer + musicianGjero Krsteski The YAGNI principle 2
  3. 3. What are your expectations? • Reasons to practise it • How and when to use YAGNI • How does it work in realityGjero Krsteski The YAGNI principle 3
  4. 4. Abbreviation for… • You Ain’t Gonna Need It • Keep it simple, stupid! = KISS • Always implement things when you actually need them, never when you just foresee that you need them.Gjero Krsteski The YAGNI principle 4
  5. 5. The Ideas Behind YAGNI Granularity Balance YAGNIGjero Krsteski The YAGNI principle 5
  6. 6. Granularity Don’t use bazooka to clobber a fly!Gjero Krsteski The YAGNI principle 6
  7. 7. Balance • can anticipate which way the project is likely to go in the near future? • might make sense to build particular things now to cater for this? • may have capacity now but will not necessarily have it later?Gjero Krsteski The YAGNI principle 7
  8. 8. Reasons to practise it • You save time • Your code is more testable and maintainable • Your code is cleaner and more robustGjero Krsteski The YAGNI principle 8
  9. 9. Keep this principle in mind No! • Implement a pattern? Why? • Use a utility library? What for!? • Let us build more automation around our deployment process? Bah!!!Gjero Krsteski The YAGNI principle 9
  10. 10. What should I do? • think first before you move (Bruce Lee) • Whats the cost of the investment? • What is your time horizon? • Opportunity cost?Gjero Krsteski The YAGNI principle 10
  11. 11. Ignorance is bliss Who is Who stupid? do that? Who Who designed manages that box? the space?Gjero Krsteski The YAGNI principle 11
  12. 12. Secret twenty percent 20% of the effort is the 20% 80% of the results! => do the „right“ 20% 80%Gjero Krsteski The YAGNI principle 12
  13. 13. literatureGjero Krsteski The YAGNI principle 13
  14. 14. Gjero Krsteski The YAGNI principle 14
  15. 15. THANK YOU FOR YOUR ATTENTION Have fun finding the “right” 20%Gjero Krsteski The YAGNI principle 15

×