http://chatley.com/blog/2006/01/testing-controllers-with-mocks.html
Illustrates quick iterative test-first development using MockHttpServletRequest.
Monday, July 11, 2016
Friday, July 8, 2016
End to End tests and Unit tests
on E2E vs unit: http://googletesting.blogspot.com/2015/04/just-say-no-to-more-end-to-end-tests.html
Pointed out "gold standard" of unit testing in guava, i.e. https://github.com/google/guava/blob/master/guava-tests/test/com/google/common/base/StopwatchTest.java testing https://github.com/google/guava/blob/master/guava/src/com/google/common/base/Stopwatch.java
Pointed out "gold standard" of unit testing in guava, i.e. https://github.com/google/guava/blob/master/guava-tests/test/com/google/common/base/StopwatchTest.java testing https://github.com/google/guava/blob/master/guava/src/com/google/common/base/Stopwatch.java
Saturday, January 16, 2016
Servlet Filters
Understanding and Using Servlet Filters
On calling doFilter() for pre and post processing around the target servlet service() method.
On calling doFilter() for pre and post processing around the target servlet service() method.
Tuesday, March 10, 2015
Solving Builder Pattern Inheritance
...using a generics-based approach outlined here:
https://weblogs.java.net/node/642849
I have feeling this could also be applied to the problem of fluent interface issues having to do with forcing the caller to append properties in the order of super class to sub class -- that was addressed in this article. It also appears to solve in an elegant way the code smells associated with doing unchecked casts like return (T) this; or returning raw types. The trick to solve these issues appears to be the use of "self-referential" type parameters.
https://weblogs.java.net/node/642849
I have feeling this could also be applied to the problem of fluent interface issues having to do with forcing the caller to append properties in the order of super class to sub class -- that was addressed in this article. It also appears to solve in an elegant way the code smells associated with doing unchecked casts like return (T) this; or returning raw types. The trick to solve these issues appears to be the use of "self-referential" type parameters.
Wednesday, October 29, 2014
Logic-based Knowledge Different from Factual, Procedural
http://msdn.microsoft.com/en-us/library/aa480020.aspx
Facts (e.g. data in a database retrieved via CRUD) and procedures are good fit for computers and typical programming languages. But there's a "semantic gap" when it comes to knowledge which is better coded using rules engines.
So much for business logic being intrinsic to OOP domain objects?
Facts (e.g. data in a database retrieved via CRUD) and procedures are good fit for computers and typical programming languages. But there's a "semantic gap" when it comes to knowledge which is better coded using rules engines.
So much for business logic being intrinsic to OOP domain objects?
Saturday, September 20, 2014
On using reflection to decouple modules
https://www.simple-talk.com/dotnet/.net-framework/designing-c-software-with-interfaces/
Provides a good argument for the use of reflection to enforce separation within the software architecture.
Provides a good argument for the use of reflection to enforce separation within the software architecture.
Wednesday, May 14, 2014
Programming Language Categorizations
In "Static vs. dynamic typing of programming languages" author compares languages in three spaces:
Statically typed vs Dynamically typed (e.g. Java vs Python)
Strongly types vs Weakly typed (e.g. Python vs Perl)
Manifestly typed vs Implicitely typed (Java vs Python?)
Statically typed vs Dynamically typed (e.g. Java vs Python)
Strongly types vs Weakly typed (e.g. Python vs Perl)
Manifestly typed vs Implicitely typed (Java vs Python?)
Subscribe to:
Posts (Atom)