Click here to Skip to main content

Articles by WebBiscuit (Articles: 2, Technical Blogs: 8, Tip/Trick: 1)

Articles: 2, Technical Blogs: 8, Tip/Trick: 1

RSS Feed

Average article rating: 4.83

Design and Architecture

Design Patterns Part 1 - The Strategy Pattern
Posted: 17 Jan 2010   Updated: 17 Jan 2010   Views: 48,527   Rating: 4.96/5    Votes: 66   Popularity: 9.02
Licence: The Code Project Open License (CPOL)      Bookmarked: 138   Downloaded: 0
An article exploring the Strategy Pattern as part of the Design Patterns series. We look at an example using MD5/SHA256 hashing algorithms for strings.
Design Patterns Part 2 - The Factory Pattern
Posted: 8 Feb 2010   Updated: 8 Feb 2010   Views: 45,203   Rating: 4.71/5    Votes: 55   Popularity: 8.19
Licence: The Code Project Open License (CPOL)      Bookmarked: 113   Downloaded: 580
The second part in WebBiscuit's design pattern series, this one examining the factory pattern. We look at an example of coping with ever-changing requirements by programming to interfaces and allowing the factory pattern to decide on the implementation.

Average blogs rating: 3.99

Audio and Video

No RAII to copy [Technical Blog]
Posted: 20 Jun 2010   Updated: 20 Jun 2010   Views: 5,741   Rating: 3.33/5    Votes: 3   Popularity: 1.59
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
A hidden danger of wrapping using RAII rears its head when we start copying the object around. Let's look at why and what we can do.
The Resource in RAII [Technical Blog]
Posted: 3 Jul 2010   Updated: 3 Jul 2010   Views: 3,835   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
So far we have concentrated on the 'AII!' part of RAII, so now let's look at the important bit, the R, the Resource.
Getting in the RAII [Technical Blog]
Posted: 17 Jun 2010   Updated: 17 Jun 2010   Views: 5,733   Rating: 3.80/5    Votes: 4   Popularity: 2.29
Licence: The Code Project Open License (CPOL)      Bookmarked: 5   Downloaded: 0
Looking at a simple MIDI handle wrapping class

C / C++ Language

Base64 Encoder and Boost [Technical Blog]
Posted: 3 Apr 2012   Updated: 3 Apr 2012   Views: 4,854   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
Well, I was looking for a Base64 library recently, and I thought, "I know, I bet it is in Boost, I have Boost, and Boost has EVERYTHING." And it turns out that it does! Kind of. But it's a bit odd and sadly incomplete.

COM / COM+

Your ADO is broken [Technical Blog]
Posted: 13 Jul 2011   Updated: 17 Jul 2011   Views: 33,609   Rating: 4.82/5    Votes: 14   Popularity: 5.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 15   Downloaded: 0
Microsoft has violated the holy rules of COM and broken their msado15.dll. The violation occurs after the installation of Windows 7 Service Pack 1 (version 6.1.7601.17514).

Macros and Add-ins

A macro to flip between the source and header file (and back again) [Technical Blog]
Posted: 4 Dec 2011   Updated: 5 Dec 2011   Views: 10,277   Rating: 4.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 27
The macro journey begins here, moving a function from a header file into its source file. The first problem presents itself as this: how can I get at the source file from the header file? I have never known why this functionality has not been present in Visual Studio, perhaps it is harder than it.
An introduction to three VC++ Macros: How they came to be [Technical Blog]
Posted: 25 Nov 2011   Updated: 7 Dec 2011   Views: 19,842   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
An introduction to three VC++ Macros: How they came to be
A macro to create a C++ implementation from a header declaration [Technical Blog]
Posted: 17 Dec 2011   Updated: 19 Dec 2011   Views: 8,868   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 40
From the header declaration, this macro opens up the .cpp file and creates the skeleton so you can begin to add the implementation. This makes adding functions a breeze, so now there really is no excuse for having horribly unfactored code.

Average tips rating: 3.00

Programming Tips

Swaping values of two variable without temporary variable [Tip/Trick]
Posted: 17 Mar 2010   Updated: 17 Mar 2010   Views: 1,097   Rating: 3.00/5    Votes: 2   Popularity: 0.90
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
There is also InterlockedExchange (or your operating system's equivalent).long a = 1;long b = 2;b = InterlockedExchange(&a, b);

WebBiscuit
Software Developer Web Biscuit
United Kingdom United Kingdom
Member
At Web Biscuit, you can find software, articles, a good dollop of quality and an unhealthy obsession over biscuits.
Website: http://www.webbiscuit.co.uk
Twitter Watch: http://twitter.com/WebBiscuitCoUk


Advertise | Privacy | Mobile
Web02 | 2.6.130516.1 | Last Updated 23 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid