Category Archives: Code & Craft

Hands-on practice: testing, debugging, builds, documentation and tooling.

Is TDD Dead? My questions

These are my questions for parts 5 and 6 of Is TDD Dead?. I’d like to start by thanking the panellists for publishing their discussions. TDD the Principle Kent and Martin, why is it that you practise test-driven development? What … Continue reading →

Posted in Code & Craft | Leave a comment

I use mocks and I’m happy with that

Both Kent Beck and Martin Fowler have said that they don’t use mock objects in their test-driven development. I do. I use them mostly for the sense described first in my BNR blog post on Mock Objects, namely to stand … Continue reading →

Posted in Code & Craft | Tagged | 1 Comment

How much programming language is enough?

Many programmers have opinions on programming languages. Maybe, if I present an opinion on programming languages, I can pass off as a programmer. An old debate in psychology and anthropology is that of nature vs nurture, the discussion over which … Continue reading →

Posted in Code & Craft | Leave a comment

Replacing the language

Over the last few years, people have used the ObjC frameworks from TCL, Python, Perl and WebScript, Perl again, Perl, more Python, Ruby, Ruby, Ruby, Ruby, Java, Java, AppleScript, Smalltalk, C++, Pascal, Object Pascal, CLIPS, Common LISP, Nu, Eero, Modula-2, … Continue reading →

Posted in Code & Craft | Comments Off on Replacing the language

ClassBrowser: warts and all

I previously gave a sneak peak of ClassBrowser, a dynamic execution environment for Objective-C. It’s not anything like ready for general use (in fact it can’t really do ObjC very well at all), but it’s at the point where you … Continue reading →

Posted in Code & Craft | Tagged , | Leave a comment

Updating my ObjC web app on git push

I look at SignUp.woa running on my Ubuntu server, and it looks like this. That title text doesn’t quite look right. $ open -a TextWrangler Main.wo/Main.html $ make $ make check $ git add -A $ git commit -m “Use … Continue reading →

Posted in Code & Craft | Tagged , , | Leave a comment

Automated tests with the GNUstep test framework

Setup Of course, it’d be rude not to use a temperature converter as the sample project in a testing blog post. The only permitted alternative is a flawed bank account model. I’ll create a folder for my project, then inside … Continue reading →

Posted in Code & Craft | Tagged | Leave a comment

On what makes a “good” comment

I have previously discussed the readability of code: The author must decide who will read the code, and how to convey the important information to those readers. The reader must analyse the code in terms of how it satisfies this … Continue reading →

Posted in Code & Craft | 1 Comment

How I got root on my University’s UNIX network

Back when I was a student, the way you talked to other people on the internet was via Usenet. The language we used, while still called “English”, was slightly different from the language we use today. One small example of … Continue reading →

Posted in Code & Craft | Tagged | Comments Off on How I got root on my University’s UNIX network

AJAX via jQuery in an Objective-C WebObjects app

As with using jQuery for DHTML, this was surprisingly easy. To make it simple to follow along I’ve published the source code to SignUp, a sample app. SignUp’s default page is comprised of two WebObjects components: Main is the top-level … Continue reading →

Posted in Code & Craft | Tagged , | Comments Off on AJAX via jQuery in an Objective-C WebObjects app