The Real World Makes Programming Less Fun

Programming can be a great hobby. Anyone can do it, there are lots of good, free tools, and you can “scratch an itch” – write something that you need yourself. Hacking for fun is a great way to learn more about the computer you’re using, and is just an interesting mental exercise.

Let’s say you decide one day “I want to write a text editor”. Sure, there are a thousand other text editors out there – but the reason all these editors exist is because a thousand other people said “I want to write a text editor” and did it. If the existing tools don’t do exactly what you want, chances are there are other people like you, who aren’t happy with the existing tools and will like what makes yours unique.

A text editor is a great example of where the Real World makes doing the job less fun.

So you start out with a character buffer. You’re working in C++ so you have a linked list of pointer to char, an 8 bit type. You write code to let the use type characters and insert them into the buffer, track multiple lines, handle cursor movement. Handle PgUp, PgDn to move a page at a time. Cool stuff – you’ve got a marginally working editor. So you create a project at Google Code and post it.

Some users download it and start playing with it. A user in MontrĂ©al says when she reads in text files that have her city name in them with the accent, the accented character doesn’t show up right. Uh oh.

So you find a copy of Joel’s article on Unicode and read it. No problem – change that char buffer to wchar_t and you’re good.

Well, better. Your new friend in MontrĂ©al is happy, but after a little while, you’re getting email from some new friends in Turkey asking why their text doesn’t look right. Googling around a bit, you find Michael Kaplan’s blog, and reading it scares the pants off you and you give up and tell the user in Turkey that maybe they’d be happy with Notepad.

There are examples like this all over software development. Want to talk HTTP? Sure you can send GET /foo HTTP/1.1 and get stuff back most of the time, but handling every case is hard.

The best way for a hobbyist to handle these things is to reuse as much code as possible. If you’re using the .NET framework to work with strings then you don’t even have to think about most issues; they’re handled for you by the framework. Same with HTTP. The Flex framework, the various Java frameworks – as much fun it sounds like it would be to implement HTTP, find a mailing list where implementers are talking about issues, see how much fun it really is once you’re past the easy part.

Leave a Reply

 




 
buy cheap Endep online buy cheapest Endep and Endep how to order Amitriptyline online without prescription buy Amitriptyline without rx from us pharmacy online Amitriptyline purchase purchase online prescription Amitriptyline without purchasing Amitriptyline online without prescription order generic Amitriptyline buy Endep no prescriptions how to order Endep online without prescription comprare Endep generico Endep online buy Endep in england buy cheap Endep online free consult Endep purchased online without prescription what is Endep Endep tabletten buy Endep no perscription cod Endep non rx fedex overnight free want to buy Anafranil in usa Aricept overdose buy discount Aricept on line Aricept buy Aricept online Aricept order buy Aricept pills Nizoral suppliers cheap order rx Nizoral canada Nizoral order Nizoral usa cod comprar Nizoral generico buy Nizoral 200 mg buy cheap Nizoral under without rx buy cheap Nizoral with dr. prescription Prozac 200 mg buy Lisinopril australia el Nizoral generico buy Lisinopril tablets without rx next day delivery Lisinopril with no script buy Lisinopril c o d purchase arimidex no scams order Arimidex order amex Arimidex canadian pharmacy buy Arimidex without doctor order rx free Arimidex buy Abilify with american express buy Abilify cod order Finpecia without a prescription cheap order rx Finpecia purchase Famvir no visa online without prescription buy Famvir paypal without rx buy Famvir without Famvir without prescription medications Famvir without persription purchase Famvir online no membership overnight shipping Famvir no physician approval Amitriptyline purchase order Amitriptyline free next day airAmitriptyline on line Valtrex no rx needed cod accepted buy next day Fluoxetine buy Fluoxetine line purchase Fluoxetine cod delivery buy Fluoxetine 20 mg purchase Fluoxetine buy cheap Fluoxetine under without rx purchase Fluoxetine visa without prescription Fluoxetine by mail Fluoxetine for pets Fluoxetine 10mg Amitriptyline purchase online how to order Famvir online without a rx Prozac Amitriptyline no perscription Famvir next day purchase Anafranil no prescription cheap buy cheapest Anafranil next day delivery on Anafranil saturday Anafranil buy Anafranil buy Anafranil overnight where to purchase Anafranil no prescription no fees Anafranil drug buy Lisinopril where Lisinopril buy on line order Lisinopril online no membership overnight shipping no prescription required for Lisinopril order maxalt cash on delivery Maxalt from canada buy cheapest Maxalt purchase Maxalt visa without prescription buy Maxalt uk Maxalt 10 mg purchase Maxalt no visa online without prescription purchase generic Lisinopril online Lisinopril no prescription to buy maxalt order online no membership overnight how to get a arimidex rx Aricept without a perscription fedex Aricept overnight without a prescription Donepezil prescription order buy genuine Aricept Aricept uk sales prescription Proscar buy Proscar pay cod Maxalt apotheke buy no perscription Proscar purchase Proscar online buy cheap fedex Prednisone maxalt with no presciption buy Maxalt shipped cod Proscar online Prednisone order buy Amitriptyline with amex Accutane 40 mg delivered overnight buy brand Accutane 40 mg Accutane 40 mg orderd online without prescription where to purchase generic Accutane 40 mg online without a rx how to get 40 mg Accutane without next day delivery 40 mg Accutane with no script buy Amitriptyline online Accutane 40 mg online no prescription buy Accutane 40 mg online us pharmacy Accutane 40 mg best buy buy Accutane 40 mg c o d order 40 mg Accutane cash on delivery no presciption 40 mg Accutane