Below you will find pages that utilize the taxonomy term “code”
Readable, Succinct, or Just Plain Short?
Which is more readable?
releaseVersion = version.substring(0, version.indexOf('-SNAPSHOT'))
or
releaseVersion = version[0..-10]
Converting Blogger to Markdown
Interview and Hacking session with Stephen Chin
A chance to see some of my actual code (even if it is C#)
Why Java developers hate .NET
I have been struggling with .NET. Actually, I have been fighting pitched battles with it.
All I want to do is take our existing Java client example code and write an equivalent in C#. Easy, right?
Trisha’s Guide to Converting Java to C#
Turns out writing the actual C# is relatively straightforward. Putting to one side the question of writing optimal code (these are very basic samples after all), to get the examples to compile and run was a simple process:
Validation with Spring Modules Validation
Java Specifics
When I first started playing with Java 1.5, I thought generics were the best thing since sliced bread. No more untidy casting, lovely type-safe Collections, and when combined with the new for loop, a lot of the tedious tasks associated with Collections became easier and, most importantly, aesthetically pleasing.