I have a webapp written in PHP using a MySQL database backend. This question could just as easily apply to any language and application trying to use an SQL database and MVC OOP design.
I have a function somefunction() which is called a lot, but the very first time its called I want it to behave just a bit differently. Here\'s an example:
Given: private void UpdataFieldItems(List<FieldItemBase> existingFieldItems, List<FieldItemBase> selectedFieldItems)
In the book The Art of Unit Testing it talks about wanting to create maintainable and readable unit tests. Around page 204 it mentions that one should try to avoid multiple asserts in one test and, pe
I have the following two classes and I am starting to see a pattern that even with my little Java background is screaming for a fix.Every new Object is going to require a set of Actions and the number
I inherited a largish JavaScript (MooTools) application for browsing and configuring products. In it there\'s a function that tracks the products\' configured state. Other functions are called depend
I recently read Michael C. Feathers\' book Working effectively with legacy code and came across the point where he mentioned a way to test the safety of automatic refactoring tools.
I\'m using a library which requires my views to implement an interface, which is only a dependency property and get\\set accessor for it. The only difference is the OwnerType in the DP\'s Register met
I\'m refactoring a large javascript document that I picked up from an open source project.A number of functions use inconsistent return statements.Here\'s a simple example of what I mean:
For now I\'ve stuck with multi开发者_开发知识库-occur-in-matching-buffers and rgrep, which, while powerful, is still pretty basic I guess.