Archive for 'java'

Epic Self Documenting Code

This is the best: switch (mIntegrationDirection) { case InventoryIntegrationDirection.DoTheSameChangeInShop: DoTheSameChangeInShop(GetChangedDataFromInventory(mLastSynchDate)); break; case InventoryIntegrationDirection.DoTheSameChangeInInventory: DoTheSameChangeInInventory(GetChangedDataFromShop(mLastSynchDate)); break; case InventoryIntegrationDirection.DoTheSameChangeInShopThenDoTheSameChangeInInventoryForNotChangedDataInInventory: DoTheSameChangeInShopThenDoTheSameChangeInInventoryForNotChangedDataInInventory( GetChangedDataFromInventory(mLastSynchDate), GetChangedDataFromShop(mLastSynchDate)); break; case InventoryIntegrationDirection.DoTheSameChangeInInventoryThenDoTheSameChangeInShopForNotChangedData: DoTheSameChangeInInventoryThenDoTheSameChangeInShopForNotChangedData( GetChangedDataFromShop(mLastSynchDate), GetChangedDataFromInventory(mLastSynchDate)); break; default: break; } Read how this travesty occurred at DailyWTF

ASE Makes Android Development Pleasant

Having got myself a G1 phone a few weeks back I’ve been tinkering a lot. Mainly with the Android Scripting Environment that I plan on writing about soon but I thought I’d give a quick summary of what I’ve found so far on this platform – and why I don’t like it (kind of)! It [...]

Python GUI Programming? Painful

If you’re wanting to develop a Python GUI anytime soon can I strongly suggest you re/learn Java. I recently wanted to produce a simple yet functional desktop app and decided to give Python a go. I’d later py2exe my creation to create an executable Win32 app. My thinking was that Python is much faster to [...]

Practice Makes Perfect

Its always good to hone your programming skills outside of your usual day-to-day job with a selection of different challenges.  That’s why I’ve compiled a list of games, quizes and challenge sites for programmers which are useful for any language. 1. Code Kata Created by Dave Thomas of the Pragmatic Programmers this is a regular [...]

Sun’s Gosling on Ruby and PHP

I spotted a recent article while on the Riding Ruby blog in which James Gosling of Sun – aka: “Father of Java” made extensive comment regarding Java’s placing with Ruby, PHP and other platforms. “PHP and Ruby are perfectly fine systems, but they are scripting languages and get their power through specialization: they just generate [...]

Java reaching the end of the road?

An article over at the Register offers up a number of interesting points on the future of Java. Yes, I know its been said many times that Java’s days are numbered, but with the increasing availability and popularity of languages like Python & Ruby. What the report also points out is and Java’s increasingly complex [...]