Archive for 'silliness'

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

Python’s Beards and Ruby’s ‘Cool’ Guys

I was having a chat on the MicroSoft Networks fancy comms protocol. Aka: MSN. Along came someone with an opinion. As is customary I shot it down with wild abandon!! The quickie backstory: I suggested Python is better than Ruby. They argued using two example pictures – see below. Rubyists I Said: The Ruby pic: [...]

Saturday Code Quote: 7

Tsk. /* ** The following shit is necessary because Netscape developers don’t ** know how to read the fucking RFCs. */ From the source of the Courier Mail Server.

Colour & Centre

I’ve never broached this subject with other Brits so I don’t know if its an annoyance to anyone else but I’m going to get on my soapbox. It REALLY pisses me off having to misspell COLOUR and CENTRE all the fu&^%ng time when using CSS!! I don’t want to get into the linguistic history, the [...]

Aaaw

Saturday Code Quote: 5

Giant chickens… // make that big fucking chicken chase the mouse From Chickens for Linux

Saturday Code Quote: 4

GTK is rubbish anyway – use Qt. /* Seriously, why can’t non-gtk-apps at least try to be decent citizens? Take this fucking OpenOffice.org 1.9 for example. The morons responsible for this utter piece of crap gave the clip size wrong values! :’( */ From the source of Rezlooks – A GTK theme engine.

Insight, Facts and Hmmms

I’m a big fan of Google Insight.  Mainly because it burns time when I’m bored and provides lots of “hmm” moments.  Its a service Google provide that lets you see search volume against a range of other factors such as geography, time, etc.  I thought I’d put a few together that may be of interest [...]

Saturday Code Quote: 3

Step away form the computer… newlocation must now be the absolute path on newhost. If not we’ve been redirected to somewhere totally stupid (oh yeah, no offsite linking, go to our fucking front page). Say goodbye to the webserver in this case. In fact, we don’t even say goodbye, but just drop the connection. From [...]

Saturday Code Quote: 2

NOW! /* get me out of this shitbag loop */ From the source of Part-ND which is a “Unix-based, ANSI C, arbitrary-dimensional, stand-alone particle system and fast gravitational simulator”