Archive for the ‘Development’ Category

Getting started with googletest – the Google C++ Testing Framework

Friday, October 23rd, 2009

So, I’ve just recorded a second screencast at screenr, this time about googletest – the Google C++ Testing Framework. I had a couple of issues getting things up and running so I thought it might be beneficial to show I got going.

I’ve been more used to unit testing in a C# environment, particularly NUnit and MS Unit, so googletest was a fresh look at unit testing for C++. Note that the screenr title is incorrect, it should read ‘Getting started with googletest – the Google C++ Testing Framework :)

5 things you may not know about ASP.NET

Tuesday, March 31st, 2009

Since its release in early 2002, Microsoft’s ASP.NET platform has gone from strength to strength. Despite its strong uptake from Microsoft-centric software houses, there may be a few people who have hesitated in adopting ASP.NET for their web development platform. Here I present some things you might not know about ASP.NET. Perhaps it’ll encourage you to take a look at it.

Cost

There once was a time when the standard IDE for developing ASP.NET apps, Visual Studio, was prohibitively expensive for the average Joe. In late 2007, Microsoft released its first versions of ‘Express’ software, aimed at students and hobbyists. Though Express incarnations have fewer features than their full version cousins, they do offer the possibility of exploring ASP.NET. The Microsoft website offers a download page for Visual Web Developer 2008 Express Edition. An express version of SQL Server is also available, and can be downloaded from the SQL Server 2008 download page.

MVC Support

The MVC pattern is an established and well-recognised way of building web applications, and is familiar to RoR, Java and PHP developers. For many years, MVC was not available as a standard approach to developing ASP.NET websites, but Microsoft has recognised the deficiency and have (at the time of writing) released version 1.0 Release Candidate of ASP.NET MVC. The release has had a mixed response from the ASP.NET community, many of whom are used to the traditional code-behind model. Despite the inevitable squabbles as to which way is best, many have welcomed the MVC approach for its separation of concerns and finer control over JavaScript and markup. To find out more about the release candidate, head over to Scott Guthrie’s blog post.

Learning Resources

A big advantage for anybody learning a new technology is the wealth of learning material that is available. Although you can rely on a large number of books, the ASP.NET learn website contains many videos on both traditional and MVC ASP.NET as well as data access.

Intrinsic jQuery Support

The lightweight open source JavaScript library that’s taken the web by storm is now fully supported by Microsoft. As well as full intellisense support in Visual Studio, Microsoft will be using the library as-is, without forking or changing the code from the main jQuery branch. What’s more, Microsoft will be using jQuery as a basis for future ASP.NET and ASP.NET AJAX features. I feel this counters the argument of Microsoft not supporting open-source software.

Career Prospects

Microsoft’s ubiquity means that learning ASP.NET and supporting technologies will do no harm to your career prospects. .NET skills are ranked as some of the most in-demand in the UK.

Professional CodeIgniter Book Review

Tuesday, December 30th, 2008

With all the furore surrounding Ruby on Rails, you’d be forgiven for forgetting that any other web application framework ever existed. The fact is, of course, that there are many to choose from, and one leading PHP-based framework is MVC-based CodeIgniter.

The CodeIgniter website is a great place to start for newcomers and more experienced developers alike, but I still like a good book, that I can hold in my hand and digest. Wrox’s Professional CodeIgniter is such a book, and presents a good overview of the framework that’s getting deserved attention in the web development community.

Programmatic impersonation in C#

Thursday, November 27th, 2008

Impersonation

I recently deployed a WPF app on a server that allowed the user to stop and start some application-related services. The purpose of the app was to allow users with administrative rights an easy way to manage the services that they needed to manage. Granted, they could manage the services through the services MMC, but the little WPF app was a requirement, and it’s our job as developers to make things easier for our clients – right?

All went well until a change of requirements meant that a user without administrative rights needed to use the program to stop and start the required services. When I tried to use the app, I got an exception – quite rightly, stopping and starting the services required admin rights. We needed the restricted user to be able to log on and use the app, but still needed to restrict their permissions.

So – step in programmatic impersonation in C# – a way to give restricted users the power that that’s required, all within the confines of your application.

Google Chrome – A First Impression, or two

Wednesday, September 3rd, 2008

Google Chrome resembles the Simple Simon memory game

I can’t quite remember there ever being this much furore about the release of a web browser. Together with a large number of blogs mentioning the release of Google’s new Chrome browser, the BBC and Sky have carried large reports on their news programmes, and people at work, unconcerned with IE8 or Firefox 3 releases, have asked me about it. Even my wife, who normally couldn’t give a hoot about web browsers, has mentioned it. So, I downloaded and installed it. Here I present a first impression, or two.

When in Rome, code as the Romans do

Friday, January 25th, 2008

No doubt most developers are in favour of coding standards, but something that has annoyed me of late is ‘coding baggage’. For example, former Visual Basic programmers using VB style in C#. Such style pollutes the purity of a language that has its own style for a particular reason.