Cocoa is pretty amazing. Here’s a quick sample that does a simple text layout (with styles!) inside a NSTextView. This is an AwakeFromNib method that was instantiated inside Interface Builder and connected to Main Window’s Content area.
I’ve been developing on Mac OS X last few weeks. The tool of choice on this platform is Xcode. While it’s still possible to use Vim (all of the compilation tools are command line based) I’m trying to use the IDE — for general education. There’s still too much mouse interaction for my liking; I’d [...]
Back in university we were taught a simple rule, “0, 1, ∞”. In other words if you are writing a function (library, framework) it must operate on 0, 1 of infinite number of elements (parameters, objects). I had no problems understanding that rule. Requirements are ever-changing; today you might want to handle 2 objects, tomorrow [...]
I’m starting to play with SDL again so I’ve embarked on finding a nice GUI library that builds on top of SDL. This process is made somewhat more difficult by the fact that I’m living on OS X now. My environment consists of OS X 10.5 (that would be Leopard) and the standard development tools [...]
I think I’m a fan of code reviews. “I think” because I’ve never actually been a part of one. In theory, they are good, right? A diverse group of your peers looking at your code and providing constructive criticisms. This is basically what open source community does.
Yesterday, I read a paper called “Seven Truths About [...]
¶
Posted 18 December 2007
† Dmitry
§
‡
°
Skimmed through an interesting article on Bazaar vs Git. It claims bazaar is way more user friendly but doesn’t seem to challenge git on any technical merits. Git is fantastic in it’s own way; clearly it works well for Linus and the team but it’s terribly arcane. It looks like Bazaar offers some friendly features [...]
I found a fascinating article by Rob Pike (of Unix/Plan9 fame), “System Software Research is Irrelevant“. He claims that there has been very little innovation in software (OS and computer languages specifically) since the 70s and that most of the stuff that we have today is simply a repackaged/copied/ripped off version from yesteryear. The following [...]
GNU make has a -j switch, to parallelize compilation. In other words, if you have two CPUs you should run “make -j 2″ so that two jobs are launched at the same time. I have a P4 2.8 with hyperthreading (I guess this box is quite old now). Hyperthreading shows up as two CPUs so [...]
OK, earlier in the year I was complaining about how I need to write a versioning scheme for my little project. In truth I was indirectly whining about the autotools suite. It’s a terribly confusing piece of software, what with the shell magick and the M4 macro language. I’ve been using it for years for [...]
Des Traynor posted a puzzle his buddy got at an interview the other day. Briefly, from a list of integers, find N integers such that they add up to zero. I think most people will agree that it’s an easy programming problem. I remember doing something similar either in second or third year university. The [...]