A programmer’s fate…
Hero Anti-Pattern
Lately I’ve faced this pattern, or maybe anti-pattern, more times than I ‘d like to, either for lingering around a “hero” or even being one. My experience tells me that Agile practices like Scrum, although never addressing it explicitly, when properly implemented can minimize this problem. Posted in development, agile Comments (0) 22 Aug 2008Eclipse Ganymede is out.The Eclipse Project is home to a quite reasonable amount of sub projects, the list keeps growing every year, so to help the end-user the Eclipse Foundation arranges a simultaneous yearly release of Eclipse and all sub projects. Ganymede is the 2008 release, following Europa in 2007 and Callisto in 2006, and it contains Eclipse’s latest version (3.4). Posted in java, eclipse, open source Comments (0) 25 Jun 2008The Perils of GetHashCode, continued…Some time ago I wrote about GetHashCode method and now Paulo Morgado has also faced some “hash related” issues to deal with (also in Portuguese). Again, the reminder should be not rely heavily on GetHashCode. Posted in .net Comments (0) 30 May 2008The Perils of GetHashCodeRecently I ran into some unexpected, and rather strange, issues on an application server using the Enterprise Library 2.0 Cache Application Block. Apparently there were occurring some strange collisions while retrieving the data from CacheData (the table where the cached data is stored) where the same cache key was having multiple entries, something the Dictionary container where the data is stored isn’t too happy about. The guys at Patterns and Practices, for performance issues, don’t use the cache key as a primary key for that table, but a much more efficient and more easily “indexable” integer, which, in this case, is being calculated using the GetHashCode of the cache key. Usually the GetHashCodeimplementation isn’t a fully blown hash algorithm (unlike the more robust MD5 or SHA) so I allways doubted of the uniqueness, particularly in this case where the application server was moved from a 32 bit to a 64 bit architecture, nothing a quick trip do the good old MSDN wouldn’t confirm:
This basically means you shouldn’t trust GetHashCode, because the result for a given string can, and surely will, be different depending where you are calculating it, namely between 32 and 64 bit architectures. The main lesson to be learnt here is GetHashCode, either for String or any other type, should only be used for disambiguation of entities in runtime. Posted in .net Comments (1) 9 May 2008Scrum with Portuguese flavourAll those Portuguese speaking interested in Scrum followers now have a place to share thoughts, experiences and everything else Scrum related, yet in a very early stage. Posted in agile, scrum Comments (0) 12 Feb 2008TDD Anti-PatternsJames Carr has compiled a pretty little list of Test Driven Development Anti-Patterns and posted it some time ago in his blog. I have to admit I’ve done some of them once or twice. TDD Anti-Patterns [via ISerializable] Technorati Tags: tdd, test driven development, unit testing Posted in development, java, .net Comments (0) 8 Feb 2008Is Maven the right tool for builds?InfoQ has an interesting article gathering several thoughts and rants regarding the usefulness of Maven as a build tool, despite having used Maven with some success I must agree with some of the referred problems. Posted in java, open source Comments (0) 4 Feb 2008Configuration Section DesignerJelle Druyts has released a neat little tool for Visual Studio that allows to easily design and visualize the configuration for a .Net solution, without messing around with ConfigurationSection and ConfigurationElement source files, which is quite handy when things become a bit more complicated. It’s still is in an early stage, but it looks rather promising. Posted in .net, visual studio Comments (0) 23 Jan 2008Debug THE .Net!Hey, now I can debug the .Net framework or, in other words, now I can’t blame the framework every time I have a problem. .NET Framework Library Source Code now available - ScottGu’s Blog Posted in .net Comments (0) 17 Jan 2008 |
About myself