« May 2005 | June 2005 Archives | July 2005 »

Code Generation

| 3 Comments | 1 TrackBack
I've spent much of this week moving from a hand crafted prototype to a code generated version of the same code. The code is all repetitive boiler plate, sort of like the stuff that MIDL generates for you. The code generated version is considerably better code and has evolved faster than the hand written code because I was free to adapt and improve the code at the "single entity" level whereas when I was prototyping the code all improvements needed to be made to all of the entities involved. Now that the code generator knows how to generate each of…

Catching my breath

| 2 Comments
I've had a busy few weeks. I'm waiting for a client to come back to me about a quote for some work and whilst I'm waiting I'm putting together a prototype for a product that I'm interested in producing. The prototype has been going well but since I know I have a limited amount of time to work on the system I've been working to a very tight deadline. Still, at least it's of my own making and at least there's a reason for it. Today I'm doing a bit of house-keeping work (making sure all of the source is…

Working on the borders

| 4 Comments
As anyone who has downloaded any of my code from here, or my company site or CodeProject will know, I have a particular way of doing things. The code I write tends to follow a particular style and as such assumes particular dependencies. The approach that I tend to take when I'm making stuff available on the web is that if you want to use the code I'm giving away, then you need to adjust your code in whatever ways you need to be able to consume what I provide. The code I'm currently working on is a bit different…

0xFF 0xFE -> CVS -> 0xEF 0xBB 0xBF

| 1 Comment
My project house-keeping yesterday ended up with a rather strange discovery. I have some test log files that contain Unicode characters and are stored on disk as UTF-16 with the correct 2 byte 'byte order mark' (BOM) header of 0xFF 0xFE. When I discovered that I needed to save some test logs as Unicode I hacked together some code that dealt with the UTF-16 BOM and did the right thing. Yesterday's mammoth CVS checkin and test was obviously the first time that I'd checked these files out of CVS and run my tests. The tests failed in very strange ways…
My Unicode Byte Order Mark hassles yesterday were brought to light by one of my mock objects. It was the expected output log for the object that had been converted from UTF-16 to UTF-8 by CVS without asking... Whilst writing that piece I realised that I probably needed to write this piece. You see, I spend most of my time in C++ and I write most of my Mock objects myself rather than having some framework do it for me and something that I found very useful and simple is the idea that my mock objects create simple logs of…
Last week I posted an entry about the simple, hand built, mocks that I use for testing in C++. Whilst I stand by my previous assertion that writing the mocks yourself gives you an further insight into your design from a client perspective I think the discussion that I had with Roy Osherove after last week's posting has made me appreciate the power of having mocks that support the programmatic specification of 'expected' behaviour.…

Is bloglines always slow?

| 4 Comments
I've been using SharpReader as my RSS reader for ages. I downloaded a version of it way back when I first got into blog reading and stuck with it because it worked, to a fashion. I ignored the bloaty .Netness of it and the fact that sometimes it disapeared from my task tray yet was still running, and that sometimes it ran really slowly, and that the way it presented new postings was a bit crap... Yesterday I decided to try bloglines instead. I quite fancied the idea of a web based reader so that I could read stuff from…

And now for something completely different

| 2 Comments
One of my clients has asked me to do some investigative work for them in relation to Linux running on a Vortex86-6071LV (a PC/104 format PC which is 386 PC on a board that's around 6" x 4" x 1/2"). Should be fun.…

2.4.31 Kernel build is go...

| 0 Comments
As I mentioned yesterday I'm currently playing around with Linux on an embedded PC. Stage 0: was to get a build environmet set up. That's complete now and I have a build of the 2.4.31 kernel running whilst I type this.…

Travelling at the speed of a floppy drive

| 2 Comments
This afternoon has been "one of those" afternoons. It started innocently enough when I checked my mail and my cables had arrived. I plugged a floppy drive into the Vortex86 and checked that I could boot off of it into DOS. All was well, if you ignore the fact that the only way I could get a) a floppy drive and b) a power supply to power it was to take the cover off of a 1U server box that I had laying around and use the PSU and floppy drive from that. What makes that even worse is the…

Showstopper?

| 0 Comments
Today was "get the Vortex86's SiS 550 graphics card working in graphics mode" day. In summary, I didn't and it's because the LCD is a DSTN one and the current Linux SiS drivers don't support it yet...…

Linux's Dll hell?

| 3 Comments
I've been playing with Linux this week. The last time I played with Linux was back when it fitted on 15 floppy disks; I think I still have the 15 floppy disks in Dad's office somewhere. It's come a long way but I can't help thinking that, much like Windows, it still has a long way to go... Bear in mind I'm writing this from the point of view of someone who knows enough to get by and do some development work on the platform fairly quickly but not someone who knows, or wants to know, all the nitty gritty.…

So, where's the Unix version of CodeProject?

| 6 Comments
Software development is hard. Lots of details that are hard to get your head around and harder to simplify. CodeProject is a wonderful resource for Windows programmers where programmers try and make the complicated more simple for others; I view it as giving something back. If I've spent several weeks fighting to understand a problem and now I do it's nice to write up and article and post it, either here, or on CodeProject, so that others don't have to fight so hard. Where's the similar resource for Unix?…
« May 2005 | June 2005 Archives | July 2005 »

About this Archive

This page is an archive of entries from June 2005 listed from newest to oldest.

May 2005 is the previous archive.

July 2005 is the next archive.

I usually write about C++ development on Windows platforms, but I often ramble on about other less technical stuff...

Find recent content on the main index or look in the archives to find all content.

I have other blogs...

Subscribe to feed The Server Framework - high performance server development
Subscribe to feed Lock Explorer - deadlock detection and multi-threaded performance tools
Subscribe to feed l'Hexapod - embedded electronics and robotics
Subscribe to feed MegèveSki - skiing