The beauty of Cocoa

Date Arrow  July 8, 2008

(Highly geeky post ahead. You’ve been warned!)
I have found the very message that summarizes the beauty of Cocoa in a single word; see by yourselves, hereunder in line 47:

#import

// The interface of a person
@interface Person : NSObject {
NSString* firstName;
NSString* lastName;
int age;
}
@end

// The [...]

Tagged   Apple · Cocoa · Code · Humour · Opinion · SoftwareComments  Add Your Comment (4)

Playing with HTTP libraries

Date Arrow  March 26, 2008

It’s fun to find out how to tackle the same task in different programming languages; in this case, it’s all about doing HTTP requests over a network: fortunately, there are networking libraries in virtually all major programming languages. In my current project, I’m generating wrappers easing the access to the core of the project itself, [...]

Tagged   Code · How to?Comments  Add Your Comment (5)

Flash Screen Saver (Objective-C, 2008)

Date Arrow  March 18, 2008

Version: 1.0
Author: Adrian Kosmaczewski
Date: March 18th, 2008
Programming Languages: Objective-C
Tools: Xcode, PackageMaker
Platforms: Mac OS X 10.4 “Tiger” and 10.5 “Leopard” (PowerPC & Intel)
Downloads: FlashSaver Installer and Source Code.
Licence: MIT License
The FlashSaver is a Universal Binary screen saver that loads an HTML page, itself loading a Flash movie inside. The whole is bundled as an installer, [...]

Tagged   WhateverComments  Comments Off 

Templates

Date Arrow  March 13, 2008

Did you knew this is possible in C++? I didn’t.

void Fun()
{
class Local
{
//… member variables …
//… member functions …
};

// … code using Local …
}

This [...]

Tagged   Code · OpinionComments  Add Your Comment (5)

Blow your mind

Date Arrow  March 11, 2008

Take a careful look at this:

#include

class Gadget
{
public:
void sayHello() const
{
std::cout

Tagged   Books · CodeComments  Add Your Comment 

Now this is ridiculous

Date Arrow  March 3, 2008

Generics in JavaScript.
Who came up with this? Let’s put things in context: JavaScript is a dynamic language. It turns out that this characteristics deeply upsets many people, particularly those who prefer to rely on a compiler to check their code for them before running it. It turns out that these guys also have a hard [...]

Tagged   Code · OpinionComments  Add Your Comment (12)

That nice freedom of modifying software

Date Arrow  January 29, 2008

One of the best learning tools I have found in my career is to take someone else’s code, and to modify it slightly to see what happens, to play with it, and eventually to release that code in this blog, or send it to the original author, fixing it somehow or adding some feature:

I fixed [...]

Tagged   Code · Open Source · OpinionComments  Add Your Comment 

About Operating Systems, Abstractions and APIs

Date Arrow  December 15, 2007

Introduction
Charles Petzold, in its book “Code”, states the following:
In theory, application programs are supposed to access the hardware of the computer only through the interfaces provided by the operating system. But many application programmers who dealt with small computer operating systems of the 1970s and early 1980s often bypassed the operating system, particularly in dealing [...]

Tagged   Architecture · Papers · SoftwareComments  Add Your Comment 

Deliver. Now.

Date Arrow  November 11, 2007

Every time I talk with people about Ruby on Rails in Switzerland, I almost always get the same comments, no matter what is the background of the person I’m talking to:
Yes but… what about [scalability / performance]? [I'm sure / I've read / I think / I believe / I have dreamt] that Ruby on [...]

Tagged   Opinion · Ruby on RailsComments  Add Your Comment (2)

Reducing Code Entropy

Date Arrow  March 18, 2007

This is a rant: I am tired of seeing virtual methods implemented in child classes that, at some point or another, call the method of the same name in the base class. For me this is a sign of poor architecture. A bad, bad smell in code.
Let’s say that you have a base class, called, [...]

Tagged   Architecture · OpinionComments  Add Your Comment