The try-catch-ignore anti-pattern (again!)

I’ve blogged about this a few times, but today I just want to highlight the frustration this causes on fellow developers. Earlier today I saw a tweet from Chris Canal that said:

Are you swallowing exceptions there?! Hold on, let me get something to break your fingers with 😐” [^]

All too often I’ve seen the just-ignore-it school of software development when it comes to error messages. It makes it very difficult to track down bugs.

If there is a valid reason for ignoring an exception then document it. State clearly in the comments exactly why you are ignoring the exception. Log the exception at the very least – I want to know when it happens, how often and why. I don’t like errors being swallowed up. I like to have them all fixed.

Incidentally, when I set up the development wiki in my company one of the first things was to put the quote on the front page “Always write software as if the person that will have to maintain it is an axe wielding maniac” – It is a very good rule to develop software by. I highly recommend it.

Scottish Developers February Newsletter

Welcome

Last week in the pub after an event I was asked why there wasn’t much non-Microsoft stuff at Scottish Developers. Fair question. We are after-all supposed to be here to cater for the entire developer community, not just one section of it. The reality is that the current committee mostly use Microsoft tools and the areas in which we happen to operate on a daily basis are within that sphere of influence. It therefore becomes easy for us just to invite speakers that we already know. Not a very good reason, and really rather a poor excuse too. But, I want to change that.

I would like to invite anyone who knows of an event that would be of interest to folks involved with non-Microsoft developer technologies to let me know and I’ll add it to the events page and announce it on the website. If you want to get more involved, such as being able to speak at an event, then we would be very interested in that too. Finally, we always welcome feedback, so if you have any other ideas then let me know. We already do joint events from time-to-time with the SQL Server User Group, so why not joint events with other organisations. All feedback, comments, suggestions, etc. can be sent to support@scottishdevelopers.com

Developer Day Scotland - 2nd May 2009Things are now moving forward quite well with Developer Day Scotland 2009. The session voting is currently open, but hurry, it closes at the end of the month. I hope you will take the opportunity to vote for the sessions that you want. It is a tough choice as we have so many excellent sessions. The delegate registration will open early during the first week of March, so keep an eye on the website for details.

As I mentioned above, we are always keen to find out what you want, so if you have any suggestions then please let us know. You can email event suggestions to support@scottishdevelopers.com

Did you know we have a twitter feed? You can follow us @scottishdevs.

As always, we are on the look out for new speakers. If you would like the opportunity to do a presentation on a software development topic from 10 minutes to 90 minutes then get in touch with me at colin@scottishdevelopers.com.

Regards,
Colin Mackay, Chairman, Scottish Developers

Events

24-February-2009 @ 18:30 in Edinburgh (Scottish Developers)
An Introduction to the Live Framework
Registration Required – Cost FREE

26-February-2009 @ 19:00 in Dundee (Linux Society)
Squid
Registration Unknown – Cost FREE

12-March-2009 @ 19:00 in Dundee (Linux Society)
OpenLDAP Replication Strategies
Registration Unknown – Cost FREE

19-March-2009 @ 18:30 in Glasgow (Scottish Developers)
Inversion of Control and Testability
Registration Optional – Cost FREE

26-March-2009 @ 19:00 in Dundee (Linux Society)
Web Penetration, Privilege Escalation and Maintenance
Registration Unknown – Cost FREE

8-April-2009 @ 19:00 in Edinburgh (Scottish Developers)
jQuery – An introduction
Registration Required – Cost FREE

14-April-2009 @ 18:30 in Glasgow (Scottish Developers & SQL Server UG)
Two DBAs walk into a room full of developers…
Registration Required – Cost FREE

Further Afield

March:
  DevWeek 2009 (London)
  SQL Bits IV (Manchester)

April:
  DDD Belfast (Belfast)
  WebDD ’09 (Reading)
  ALT.NET North (Bradford)
  ACCU 2009 Conference (Oxford)

May:
  Developer Day Scotland 2 (Glasgow)
  DDD South West (Taunton)

Sponsor’s Message

23-27 March, LondonDevWeek 2009
23-27 March
Barbican Centre, London
www.devweek.com

DevWeek is the UK’s biggest conference for software developers, IT architects and DBAs, and the 12th annual event takes place in London at the end of March.

The main three-day conference features eight concurrent tracks, and there’s also a wide choice of pre- and post-conference workshops, which can be booked in addition to or separately from the main event. /p>

Session and workshop topics include Visual Studio 2010, Ruby on Rails, .NET Framework 4.0, Cloud Computing, SQL Server 2008, Enterprise Design Patterns, Silverlight 2, Productive Programming, ASP.NET AJAX 4.0, Architecture Awareness, LINQ, and Code Metrics.

If you book your place by 27th February you can save up to £100.

It's community conference season

Community conference season is on us. What ever you do there is a conference to suit you somewhere in the UK in the next few months. The only problem you are going to have is fitting it all in.

Up first is SQL Bits IV on 28th March 2009 in Manchester. The delegate registration is now open – so get ’em while they’re hot!

Then on 4th April the community heads over to Belfast for DDD Belfast, the first time the DDD conference has visited Northern Ireland. Voting is currently open for that conference.

Then in May you have two choices, one at each end of the UK! On the 2nd May in Glasgow there is Developer Day Scotland where voting has recently opened. Then in Taunton there is DDD SouthWest, where the Call for Speakers is currently open.

There is lots of choice and the diverse range of locations means that you shouldn’t have to travel far to find something near you. If you are very keen it also means an opportunity to visit lots of places you may not have been before. I’m particularly looking forward to Taunton – I’ve never been down that way before!

UPDATE!

The community conferences just keep on coming. We really are spoiled for choice this year! Two more conferences announced, both on the 18th April!

It's that time of year again

It seems to be that time of year when lots of students are on forums trying to persuade people to do their homework for them. Since I’ve found difficulty in finding good quality software developers in the past there is no way I’m going to contribute to producing any more debased lazy Muppets claiming to be programmers. The rules of the forums I frequent most often are very simple, and I’d imagine that most forums will have the same set of rules. Basically the person requesting help has to show what they’ve done already then they can expect to get advice on how to fix the problem. If the question comes in and it is just a set of questions with a plea that their homework assignment is due the next day then they are likely to feel the wrath of several professional software developers that have most likely had to clean up the excrement left by previous generations of these inattentive indolent laggards.

I would like to make it perfectly clear for any student that is genuinely struggling with an assignment that forums are an excellent place to seek help. However, you must show that you’ve made an attempt yourself, that you’ve attempted to research the topic and that you are genuinely seeking help and not just a free ride. If you are willing to work through the problem yourself (with some assistance from folks on forums) then you will attain a greater understanding and you are more likely to reach that AHA! moment where everything clicks in to place in your mind. And what a joy that feeling is!

Showing progress in the Windows 7 Taskbar

I just spotted something really cool in the Windows 7 taskbar. When you download something and minimise the download window in IE to the task bar, the button for the application will continue to show the progress and have a green bar make its way across the button.

Windows 7 taskbar

Windows 7 has some pretty cool features.

New .NET User Group in Gloucester

If you live in or near Gloucester you may be interested in a new .NET User group that is just starting. GL.NET will have its first meeting in February, so watch out on their site for exactly when and where that will be.

Code Project MVP 5th Year Running

I am honoured that for the 5th year running the powers that be at Code Project decided to make me an MVP (Most Valuable Professional) once again.

The award is essentially for contributions to the community over the previous year. There is a full list of the other amazingly helpful folk which includes some other regulars to the list as well as some new faces this year.

As an example of how helpful the folks are at Code Project one of my few requests for help was answered in about 15 minutes by two people offering valuable advice. Heck, I can’t even get that level of support out of a paid service!

So, three cheers to everyone that makes Code Project such a great place, especially to Chris Maunder and his team who tirelessly keep everything running.

Statistics for 2008

It’s the end of the year and as it typical it is time to reflect over the past year. So with that in mind, what are the scores on the doors for my blog? (Stats are from 1st Jan 2008)

Visitors: 32,545 unique visitors.

Browser use: Internet Explorer (60%), Firefox (34%), Opera (2%), Chrome (2%), Safari (1%), etc.

Operating System: Windows (97%), Macintosh (2%), etc. Breaking the Windows variants down: XP (66%), Vista (27%), Server 2003 (4%), 2000 (2%), etc.

Screen resolution: 1280×1024 (27%), 1024×768 (21%), 1280×800 (14%), 1680×1050 (11%), 1440×900 (8%), 1920×1200 (5%), 1600×1200 (3%), etc.

Top ten posts of 2008:

1. Installing SQL Server 2005 on Vista

2. SQL Server / Visual Studio Install Order

3. Tip of the Day #5 (SQL Server memory usage)

4. Using PushPins with the Virtual Earth ASP.NET control

5. What’s New in Visual Studio 2008 Service Pack 1

6. Method hiding or overriding – or the difference between new and virtual

7. Finding things with Virtual Earth

8. Microsoft Surface

9. Drawing lines on the map with the Virtual Earth ASP.NET control

10. Using a different map server with the Virtual Earth ASP.NET controls.

I’ve omitted the home page in the above list, however, if you are curious, it would have come in at #5 had I included it.