The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 2,867 other followers

Archive for January 24th, 2013

Best 404 page ever.

Posted by jpluimers on 2013/01/24

Very distracting: 404.

Thanks Julian (I just found out you also own a Dutch domain for pointing to it (boy, some unproductive days ahead) and the cheat (in your browser, Open the JavaScript console, then paste and run the cheat code).

Thanks Romain for developing it.

When you read through his java script code files, remember that these french-english translations:

  • etat == state
  • tombe == fall
  • paraOpen == opened parachute
  • mort == dead
  • flocon == flake
  • taille == size
  • vitesse == speed
  • écrase == crash
  • marche == walk
  • neige == snow


via: Développeur Web sur Lille (59), Romain Brasier.

Posted in Development, JavaScript/ECMAScript, Power User, Scripting, Software Development, Web Development | Tagged: , , , , , , | Leave a Comment »

.NET/C#: do not do “if (!Directory.Exists(path)) Directory.CreateDirectory(path))”

Posted by jpluimers on 2013/01/24

During code reviews, I often see people do things like this:

if (!Directory.Exists(directoryPath))

or this:

DirectoryInfo directoryInfo = new DirectoryInfo(directoryPath);
if (!directoryInfo.Exists)

You don’t need the if statements here. Read the rest of this entry »

Posted in .NET, .NET 1.x, .NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, C#, C# 1.0, C# 2.0, C# 3.0, C# 4.0, C# 5.0, Development, Software Development | 1 Comment »

%d bloggers like this: