yagni
Zend_Validate good strategy to avoid repetition of code
I\'m am currently building two custom validators that extends Zend_Validate_Abstract which are named respectively Lib_Validate_TimeAfter and Lib_Validate_TimeBetween. The names a pretty straight forwa[详细]
2023-03-28 19:48 分类:问答Substitute Enum switch with design pattern (IOC)
I\'ve got an event handler which receives an eventargs 开发者_开发百科object inside which is an enumerated value that further refines the information inside. It looks something like[详细]
2023-03-13 20:36 分类:问答Write programs that do one thing and do it well
I can grasp the part \"do one thing\" via encapsulation, Dependency Injection, Principle of Least Knowledge, and You Ain\'t Gonna Need It; but how do I understand the second part \"do it well?\"[详细]
2023-02-20 11:25 分类:问答SOLID vs. YAGNI [closed]
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing[详细]
2023-01-19 23:25 分类:问答Did the authors of The Pragmatic Programmer forget about YAGNI?
The Pragmatic Programmer is highly recommended by many people. I\'ve just finished reading it, and I can see why people recommend it, although I would point out that Code Complete covers almost all of[详细]
2023-01-09 22:19 分类:问答YAGNI and database creation scripts
Right now, I have code which creates the database (just a few CREATE queries on a 开发者_如何学编程SQLite database) in my main database access class. This seems unnecessary as I have no intention of e[详细]
2023-01-04 11:19 分类:问答How far do you go with YAGNI? [closed]
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing[详细]
2022-12-15 15:12 分类:问答How to avoid debugger-only variables?
I commonly place into variables values that are only used once after assignment.I do this to make debugging more convenient later, as I\'m able to hover the value on the one line where it\'s later use[详细]
2022-12-12 02:04 分类:问答