javadots.blogspot.com
Java: Developing On The Streets: So You Want to Practice your Code Reviewing Skills?
http://javadots.blogspot.com/2010/07/so-you-want-to-practive-code-reviewing.html
Java: Developing On The Streets. So You Want to Practice your Code Reviewing Skills? The code below is taken from a real web-app that has been up and running for 7 years. This specific fragment is realizing the visitor count functionality: keeping track on the number of visitors hitting the site. Each time a new session is created SiteInfo.instance().addSession() is called. If not, what values can be seen there? How can we fix the code? Public class SiteInfo {. Private static SiteInfo inst;. Catch (Excep...
javadots.blogspot.com
Java: Developing On The Streets: January 2010
http://javadots.blogspot.com/2010_01_01_archive.html
Java: Developing On The Streets. How JUnit's assertArrayEquals() should be implemented. I find myself writing this assertion method at (almost) any project where #tests K where K is typically 10. In other words: Every project. Public static void arrays(Object[] actual, Object. expected) {. For(int i = 0; i. Assert.assertEquals("Array mismatch at index " i ":", expected[i],. Assert.assertEquals("Array length mismatch", expected.length,. Posted by Itay Maman. Tuesday, January 05, 2010. Links to this post.
javadots.blogspot.com
Java: Developing On The Streets: July 2010
http://javadots.blogspot.com/2010_07_01_archive.html
Java: Developing On The Streets. So You Want to Practice your Code Reviewing Skills? Earlier this week I published. So You Want to Practice your Code Reviewing Skills? Which challenged the readers to find bugs in 150 LOC. The replies were very interesting. Here's a summary. Instance() method is not synchronized. SessionCounter needs to be volatile/guarded by synchronization (in visitorCount(). The singleton implementation is broken. See, for instance, this article. The update statement updates the row wi...
javadots.blogspot.com
Java: Developing On The Streets: So You Want to Practice your Code Reviewing Skills? - Summary
http://javadots.blogspot.com/2010/07/so-you-want-to-practice-your-code.html
Java: Developing On The Streets. So You Want to Practice your Code Reviewing Skills? Earlier this week I published. So You Want to Practice your Code Reviewing Skills? Which challenged the readers to find bugs in 150 LOC. The replies were very interesting. Here's a summary. Instance() method is not synchronized. SessionCounter needs to be volatile/guarded by synchronization (in visitorCount(). The singleton implementation is broken. See, for instance, this article. The update statement updates the row wi...
javadots.blogspot.com
Java: Developing On The Streets: June 2010
http://javadots.blogspot.com/2010_06_01_archive.html
Java: Developing On The Streets. Rules are a simple, yet amazingly powerful, mechanism introduced in JUnit. Version 4.7. They allow developers to easily customize JUnit's behavior by exposing meta information regarding the currently executing test. This post provides a straightforward example for writing a custom rule that augments JUnit with some useful functionality. All in all, IntSet looks something like this:. Public class IntSet {. Public IntSet(int limit, int min, int max) { . }. There are two dra...
incredulous-developer.blogspot.com
Questioning Software Development Practices: July 2010
http://incredulous-developer.blogspot.com/2010_07_01_archive.html
Questioning Software Development Practices. An inquisition into normality and things taken for granted in the world of software development. Sunday, July 11, 2010. C# TDD with Visual Studio. Are there any tricks I am missing out on? Are there language or tool constraints? Any thoughts or ideas welcome. Subscribe to: Posts (Atom). C# TDD with Visual Studio. View my complete profile. Simple template. Powered by Blogger.
incredulous-developer.blogspot.com
Questioning Software Development Practices: November 2009
http://incredulous-developer.blogspot.com/2009_11_01_archive.html
Questioning Software Development Practices. An inquisition into normality and things taken for granted in the world of software development. Thursday, November 26, 2009. For many years I have been waiting for real web application software toolsets to arrive. Widespread abuse of HTML, CSS and scripting has created a slew of messy web applications written in technologies that were never designed to be used for such a purpose. They are well suited to web content, but not to building rich applications. Altho...
incredulous-developer.blogspot.com
Questioning Software Development Practices: Introduction to Cappuccino
http://incredulous-developer.blogspot.com/2009/11/introduction-to-cappuccino.html
Questioning Software Development Practices. An inquisition into normality and things taken for granted in the world of software development. Thursday, November 26, 2009. For many years I have been waiting for real web application software toolsets to arrive. Widespread abuse of HTML, CSS and scripting has created a slew of messy web applications written in technologies that were never designed to be used for such a purpose. They are well suited to web content, but not to building rich applications. Altho...
incredulous-developer.blogspot.com
Questioning Software Development Practices: March 2011
http://incredulous-developer.blogspot.com/2011_03_01_archive.html
Questioning Software Development Practices. An inquisition into normality and things taken for granted in the world of software development. Sunday, March 13, 2011. Intense TDD Focus Not So Healthy? I believe in the value a TDD/BDD approach yields. However, I have seen great software produced with no unit tests at all and really poor code produced with lots of tests. Now I have finally figured out what it is that bugs me so much about the current trend of TDD/BDD hysteria. Which is more important? Intens...
incredulous-developer.blogspot.com
Questioning Software Development Practices: September 2009
http://incredulous-developer.blogspot.com/2009_09_01_archive.html
Questioning Software Development Practices. An inquisition into normality and things taken for granted in the world of software development. Friday, September 4, 2009. 3 You can speak to a number objects in the same way, e.g. if you have a number of sprite objects that all require drawing, you don’t have to know which is which, you can just send them all the ‘Draw’ message and if they respond to the same protocol, they will do as asked. This is usually achieved by inheritanc...4 Objects should focus thei...