multipart/mixed is Josh Carter's home on the net. Latest Updates:
Coming to a Bookstore Near You (Mar 01)
Quality: Beginning vs. Afterward (Dec 01)
Quality is Job 0.99999 (Nov 30)
.
Articles on design, patterns, and other programming topics. I've been in this crazy industry for ten years now, and I hope to pass on some things I've learned.
Photography articles and software tools. Discover the joys of external flash, autofocus woes, and IPTC meta-info.
Selections from my latest photography, art, and graphic design work.
A collection of resources for Magic Cap, the operating system for handheld computers. Includes software downloads, a history of MC hardware (including prototypes!), and more.
Topics revolving around productivity and Getting Things Done. Home to office supply geekery and impassioned articles on notebooks.
Mini-reviews and pondering on books I'm reading or have finished recently.
Articles on electronic drumming including Reason and Live software, KAT hardware, and other fun stuff.
Craziness with iron, wheels, and whatnot.
The bucket for "everything else."
Coming to a Bookstore Near You
By Josh Carter |
March 1, 2010 |
Permalink
| Comments (1)
First, thanks to all the readers who followed my PragProWriMo 2009 writing--your support was invaluable. I'm happy to announce that Pragmatic Bookshelf picked up my book in December and I'm busy finishing the first draft. I'm not sure how long the whole process will take, the optimist in me wants to believe I can finish by the end of the year. Either way I'm very excited to bring this book to fruition and the folks at Pragmatic are fantastic to work with.
Quality: Beginning vs. Afterward
By Josh Carter |
December 1, 2009 |
Permalink
| Comments (1)
Yes, PragProWriMo 2009 was over yesterday. However, I can’t introduce the topic of quality and then just stop there, can I? After this it’s time to start working on my book proposal.
There are two approaches to building a quality product: build it in from the beginning, or beat it in afterward. The former approach requires a lot of discipline and effort from the engineering team. The latter requires a lot of testing and, again, effort from the engineering team.
Continue reading "Quality: Beginning vs. Afterward" »
Quality is Job 0.99999
By Josh Carter |
November 30, 2009 |
Permalink
| Comments (1)
This is intended to introduce a chapter on quality. There’s a myriad of topics here; this post is merely setting the stage.
I take it as a given that any product should be a high-quality product. Why bother making it otherwise? This seems like a straightforward goal, but the technology industry has had a hell of a time figuring out how to build quality software. There’s a joke that’s been around for at least a decade:
There’s word in business circles that the computer industry likes to measure itself against the Big Three auto-makers. The comparison goes this way: If automotive technology had kept pace with Silicon Valley, motorists could buy a V-32 engine that goes 10,000 m.p.h. or a 30-pound car that gets 1,000 miles to the gallon—either one at a sticker price of less than $50. Detroit’s response: “OK. But who would want a car that crashes twice a day?”
Any good joke has an element of truth to it—this one especially so. Auto makers can build cars that’ll drive hundreds of thousands of miles, but Windows 95 would crash after 49.7 days of continuous operation—a bug that took four years to discover 1 because other bugs would crash Windows 95 long before 49.7 days could pass.
Continue reading "Quality is Job 0.99999" »
Millie Berger
By Josh Carter |
November 28, 2009 |
Permalink
| Comments (0)
Portrait of my grandmother. I don't consider myself a portrait artist but I do get lucky once in a while. On-site lighting was two flashes bounced off the ceiling. Photo toned to black-and-white using Exposure 2 and vignetted with Bokeh.
Platforms
By Josh Carter |
November 27, 2009 |
Permalink
| Comments (0)
It used to be that the “user interface” for a computer was assembly language and its “user manual” was the programming manual. Back in those days, the distinction between the physical machine and its programming interface was somewhat academic.
These days, there’s a lot more layers involved. Taking the “simple” example of C++, the layers could look like this:

In this example, the physical machine is a x86, 64 bit. The machine’s architecture has various ramifications, for example a 64 bit machine can allow a single process to address much more memory than a 32 bit machine. The operating system has numerous implications; any “system call” like accessing a file goes through the operating system. Then there’s the libraries, for example the C standard library which provides functions like printf() for formatted output. Then there’s the programming language itself.
Continue reading "Platforms" »
Programming Languages
By Josh Carter |
November 20, 2009 |
Permalink
| Comments (4)
There are few topics that can get programmers riled up more than programming languages. Language flame-wars have been raging on Usenet since about the dawn of Usenet. They’ll continue burning until, as best I can tell, the end of time. Why? The programming language is your most-used tool (second only to your text editor) and it takes a long time to master, so it’s reasonable that people get attached to their languages.
In college you likely focused on one “do it all” language like Java. There’s nothing wrong with Java, in fact it’s a great language. The problem is the “do it all” part—no language does it all, at least not well. You simply cannot be productive and versatile without knowing a couple programming languages.
Continue reading "Programming Languages" »
Optimism
By Josh Carter |
November 19, 2009 |
Permalink
| Comments (1)
In the 90’s Bare Bones Software released a text editor called BBEdit with the tagline “It Doesn’t Suck.” It retains the tagline to this day. Truly brilliant marketing. Who’s their market? Programmers.
Programmers are pessimistic and sarcastic lot. The vast majority will tell you about a hundred things that suck for every one thing that doesn’t. The highest praise a programmer will give a product is, “it doesn’t suck.”
Pessimist programmers are in good company. I’ve read various reports saying the vast majority of projects fail. 80 or 90 percent. Adding insult to injury, it’s not the good 10 or 20 percent that succeed, it’s some hodgepodge of good and bad. It almost seems that bland to downright crappy products are more successful, on average, than really good ones. When a programmer says such-and-such sucks, chances are he’s right.
Continue reading "Optimism" »
Corporate Myths
By Josh Carter |
November 18, 2009 |
Permalink
| Comments (2)
Author’s Note: it’s really hard coming up with good examples for the assembly language discussion. Either I make something meaningful that compiles into pages of assembly, or I make something too trivial that compiles into nice snippets. I’ve tried three times to write about pointers and the balance still isn’t right. So today I’m flipping back to corporate life.
Executives and managers like to think they’ve got it all together. Walk with some swagger, put on the game face, don’t show weakness. Just as you learned about your parents, your management doesn’t always know as much as they say they do. I’m a manager, I’d know.
So let’s take a tour of myths you’ll probably hear in the corporate world. When you hear these, make a mental note: this guy is a bozo.
Continue reading "Corporate Myths" »
Functions and Parameters
By Josh Carter |
November 17, 2009 |
Permalink
| Comments (0)
This entry is a day late because I started writing about pointers, but I realized I needed to discuss function calls first.
Now that we’ve got the foundation of stack frames and the debugger for exploring them, we can use the stack for more than just local variables. The stack is also used for passing and receiving parameters to functions.
Let’s say I’ve got this very-nearly-useless function:
int sum3(int a, int b, int c)
{
return a + b + c;
}
int main()
{
sum3(1, 2, 3);
return 0;
}
Continue reading "Functions and Parameters" »
Investigating The Stack With the Debugger
By Josh Carter |
November 13, 2009 |
Permalink
| Comments (0)
This section assumes I already covered some basics of GDB earlier in the book, which I plan to do.
Once you have some concept of registers and the stack, it’s time to play. Take our original example and save this as stack.c:
int main()
{
int i = 0x11223344;
char s[4];
s[0] = 'f';
s[1] = 'o';
s[2] = 'o';
s[3] = '\0';
return 0;
}
Continue reading "Investigating The Stack With the Debugger" »
All material copyright © 1999-2009 Josh Carter, unless a separate author is listed. All rights reserved.
RSS feed |
Atom Feed |
|