So now I’m in the midst of adding ssh to my iPhone app. I fount this fantastic project: DropBear SSH implementation
I will post the HOWTO and code when done. Is is coming along great.
Next, I am working on a cross-platform project involving a program that works under: Linux, Solaris, OSX and Windows. How’s that for crazy?
Needless to say, the program is filled with:
#if defined(ENVIRONMENT_LINUX)
#elif defined(ENVIRONMENT_OSX)
...
...
Madness. But it works!
Next… Ok, this is something that has been bothering me for a while now: “Pre-processor Keyword Indentation”
Old C/C++/Objective-C compilers insisted that pre-processor keywords started on column one(1). That was like a million years ago (in compiler design).
Today, pre-processor keywords can start at any column! So can we stop with this stupid programming already:
#if defined(MYDEFINE)
#if defined(MYDEFINE2)
#define XTRA2
#endif
#endif
And switch to modern-day programming:
#if defined(MYDEFINE)
#if defined(MYDEFINE2)
#define XTRA2
#endif
#endif
Thank you!!!!
And last, this is a story I picked up: Russian Developer vs idiot hacker I wish everyone thought like this guy. Enjoy the article!