screenShot.ca

Software Architecture, Photography and Electronics under one roof

Menu
Social Links
Search
Skip to content
  • Home
  • Blog
  • Contact
  • Gallery
  • Twitter
  • LinkedIn
  • GitHub
  • BitBucket
  • StackOverflow Profile

Month: December 2011

This doesn't do what you think it does

I’ve seen this one countless times. == on a string isn’t the same as .equals; one compares the instance and the other compares the content.

if (localeCode == null || localeCode.trim().isEmpty() || localeCode == "?")

December 27, 2011Philippe Leave a comment

Recent Posts

  • Fill the screen with pixels x86 EGA Assembly
  • Writing new drivers for old OS
  • Remember these ?
  • Installing Webex on 64 bits Linux (with sound)
  • How unit tests reveal bad architecture

Recent Comments

  • DieselClub on TPA3106D1
  • Christophe on Fill the screen with pixels x86 EGA Assembly
  • hamendar on TPA3106D1
  • hamendar on TPA3106D1
  • Philippe on TPA3106D1

Archives

  • July 2014
  • March 2014
  • July 2013
  • February 2013
  • January 2013
  • October 2012
  • September 2012
  • January 2012
  • December 2011
  • September 2011
  • June 2011
  • March 2011
  • September 2010
  • November 2009
  • October 2009
  • June 2009
  • May 2009
  • March 2009
  • February 2009
  • January 2009
  • October 2008
  • July 2008
  • June 2008
  • May 2008
  • January 2008
  • December 2007
  • September 2007
  • August 2007
  • July 2007
  • June 2007
  • May 2007
  • April 2007

Categories

  • Audio
  • diy
  • English
  • Français
  • Fun
  • HomeHA
  • Internet
  • Java Perls
  • Linux
  • Project_ALB0
  • Projects
  • SNMP AC
  • Tranche de vie
  • Uncategorised
  • Wii
  • Work
Proudly powered by WordPress | Theme: Sorbet by WordPress.com.