Verbose Logging

software development with some really amazing hair

17 May 09

03:00 PM MDT

Posted in Programming

Stubs vs Mocks

I keep coming back to asking myself what the difference between stub and mock objects are and I have it figured out, so here it is: Stubs just return whatever you tell them do, and that’s it. Mocks have expectations and cause tests to fail if those expectations aren’t met.


Read the full article

Comments

17 May 09

01:58 PM MDT

Posted in Editorial

Up in the Cloud: People Missing the Point

You’ll hear the phrase “the cloud is the future” a lot floating around the tubes, and a lot of people seem to dismiss it. I came across this from my RSS feeds, and one comment in particular caught my eye. I can get 1.5 tb hard drives for less than 70 Euros and they are accessible even if my net connection is down. I didn’t quote the entire comment, since the poor grammar caused my head to hurt… This person is clearly missing the point. They’...


Read the full article

Comments

16 May 09

08:00 AM MDT

Posted in Programming

Compiling ruby 1.9.1 alongside ruby 1.8.7

I almost threw my laptop out the window figuring this out, but if you want to install ruby 1.9.1 alongside ruby 1.8.7 (whether the prefix is the same or not), you have to give ruby 1.9 a program suffix, but also a baseruby. So you need something like this: ./configure --prefix=$HOME/local --program-suffix=1.9 --with-baseruby=ruby --enable-pthread


Read the full article

Comments

16 May 09

12:41 AM MDT

Posted in Software

Scribes, an editor for Gnome

I checked out Scribes this week, and I must say it has potential. It has a slick yet simple interface and look, and a few nice features. It has word completion and template support, so you can setup snippets, and tell the cursor to tab through sections, so for example, you can have a ruby snippet to make a do end block, which will create the code, put the cursor in the block variable section, then a tab puts you in the block so you can write t...


Read the full article

Comments

14 May 09

08:00 AM MDT

Posted in Programming

Better ASM output from gcc

I always find myself needing this but never remember. -fverbose-asm Throw that at gcc when you are outputting asm (-S flag) and you’ll get some useful comments to see what some of the code is actually working on.


Read the full article

Comments

12 May 09

11:38 PM MDT

Posted in Entertainment

12 May 09

10:32 PM MDT

Posted in Programming

Pascal case to human readable with C# extension methods

I wrote this a while ago on my old blog, so I’m just reposting here. It’s useful since you can have an enum of error codes, which also, when converted to human readable text, are useful messages. Here’s how I did it.


Read the full article

Comments

12 May 09

10:29 PM MDT

Posted in Software

git on Windows

Speaking of git, you can get it on Windows, using msysgit. It works pretty well, in that I haven’t had any problems with it, except some minor line ending things. msysgit Getting Started with Git and GitHub on Windows – Kyle Cordes


Read the full article

Comments

12 May 09

10:17 PM MDT

Posted in Programming

Design Patterns

The good thing about design pattern writings is that they never really go out of date. Hence this link. It actually doesn’t have a date, but I found it a long time ago. Anyway, here it is. Use them already! Design Patterns


Read the full article

Comments

12 May 09

10:10 PM MDT

Posted in Design

8 Web Design Mistakes That Developers Make

I guess I should probably read this again, since my web development world is expanding immensely. 8 Web Design Mistakes That Developers Make


Read the full article

Comments