Lee Packham’s Corner
The rants of a software busy body
  • Home
  • Gallery
  • About
  • dtrace Stuff

Programming Category

CRY vs. DRY

Programming, Random Rants No Comments »

A work colleague coined a fantastic term for code that just isn’t DRY:

Constantly Repeating Yourself - CRY

Not only does it describe one’s reaction to amazingly shoddy code, that just oozes of a developer spending all day using Copy and Paste, but seems an appropriate opposite.

Back to refactoring CRY code with me!


December 17th, 2008 |



The importance of tabs

Programming No Comments »

This sort of thing drives me barmy - why can’t people set a standard on tabs?

The above snippet is taken from eJabberd (a Jabber Server written in Erlang). Notice how some lines are soft tabs, others are hard. The causes havoc when dealing with merging in source control (I don’t care if you use a new fangled Git approach). Whitespace (both tabs and line endings) must be consistent on programming projects. Much pain ensues if they are not!

Personally I set rules in SVN commit hooks. This means that if a developer has anything ‘bad’ like Windows Line Endings on a Python project, then it is dealt with accordingly.

Saves a lot of merge pain!


September 27th, 2008 |



Visual Studio 2008 SP1

Programming No Comments »

Yay! The new service pack for Visual Studio 2008 is available for download. Cool, so let’s go download it… Oh wait it says in the Release Notes that:

During installation of Visual Studio 2008 SP1, MSDN Library for Visual Studio 2008 SP1 will not be installed on your computer.
       

To resolve this issue:

MSDN Library for Visual Studio 2008 SP1 is available as a separate download. See
       
Microsoft Download Center.

Cool - not only is the Download Center link incorrect… There is NO MSDN Library for Visual Studio 2008 SP1 download available. Good game.

       


August 12th, 2008 |



Poetic Prophet (AKA The SEO Rapper)

Programming No Comments »


April 23rd, 2008 |



DTrace with Postgres on OSX

Programming 1 Comment »

I have posted a patch for enabling DTrace on Postgresql 8.2.5 on OSX. The way DTrace works in Postgres wasn’t compatible with how Apple broke DTrace at all. I’ll be submitting the patch to MacPorts when I can actually use their site… until then you can grab it here.

DTrace with Postgres on OSX


October 26th, 2007 |



DTrace with PHP on OSX

Programming 1 Comment »

Linked below is the page I have added to this site which details a patch I have made to fix the DTrace extension for PHP to work with OSX Leopard after Apple appear to have broken a reasonable amount of functionality with DTrace *sigh*.

DTrace with PHP on OSX


October 24th, 2007 |



  • Friend's Blogs/Sites

    • David Rickard
    • Lloyd Pick
    • Michael Smith
  • Recent Posts

    • Is it any wonder the world is infested with spam?
    • The Wowhead Christmas Wallpaper
    • Unibody Macbook Pro constantly waking up
    • How Warcraft reigned supreme in 2008
    • CRY vs. DRY
  • Archives

    • January 2009
    • December 2008
    • November 2008
    • October 2008
    • September 2008
    • August 2008
    • July 2008
    • June 2008
    • May 2008
    • April 2008
    • March 2008
    • November 2007
    • October 2007
    • August 2007
    • July 2007
    • June 2007
    • May 2007
    • January 2007
    • December 2006
    • October 2006
    • September 2006
  • Recent Tracks (last.fm)

    • Nickelback – Gotta Be Somebody 16 hours ago
    • Nickelback – Burn It to the Ground 16 hours ago
    • Nickelback – Something in Your Mouth 16 hours ago
    • Lisa Miskovsky – Still Alive (The Theme from Mirror's Edge) (Paul Van Dyk Mix) 16 hours ago
    • The Prodigy – Charly 20 hours ago
  • Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org
Copyright © 2009 Lee Packham’s Corner All Rights Reserved
RSS XHTML CSS Log in
Wp Theme by n Graphic Design
Powered by Wordpress