Apr 23 2009

Once upon a time

Christoph

// Let me explain a history about OrenetaDataInputStream.
// Once upon a time, there was a java programmer (aka Abel),
// who extended DataInputStream Class to support reading of
// complex data structures, as Inet4 and Inet6 address.
// He used the ‘read’ method of DataInput Stream, and told
// him to read ‘x’ bytes of data, as ‘x’ was the size of the
// data he wanted to read. But sometimes, extrange data
// appeared in the java application. He wondered from
// where it came, but he didn’t discovered until debugged
// the C server, captured the network packets and finally
// debugged the OrenetaDataInputStream Class. He spent
// many days and many hairs, but finally he knowed tha he
// must use the method ‘readFully’, that blocks until it read
// ‘x’ bytes. He congratulated himself and enjoyed it with
// cheers of red wine with his friends. (22-07-2003).

Source: Direct link to the source code
Software: Oreneta
Programming language: Java

1 Star2 Stars3 Stars4 Stars5 Stars (6 Bewertungen, Durchschnitt: 3,67 von 5)
Loading ... Loading ...

Apr 22 2009

I’m an old IBM programmer

Christoph

// i know one can make it with fewer code but i don’t have
// the time to do it; just imagine i’m an old IBM programmer
// getting paid per ten lines of code ;)

Source: Direct link to the source code
Software: Predoc
Programming language: Java

1 Star2 Stars3 Stars4 Stars5 Stars (5 Bewertungen, Durchschnitt: 5,00 von 5)
Loading ... Loading ...

Apr 2 2009

The worlds worst sorting routine

Christoph

// Ok, here we go, the holy grail of programmers,
// a sorting routine!! Why have I chosen the worlds
// worst sorting routine? Its easy and fast enough….
// THE BUBBLE SORT (OH NO!!!!)

Source: Direct link to the source code
Software: Lazy Eight Data HB
Programming language: Java

1 Star2 Stars3 Stars4 Stars5 Stars (6 Bewertungen, Durchschnitt: 4,50 von 5)
Loading ... Loading ...

Mrz 18 2009

Manchmal hilft nur noch beten

Christoph

/***********************************************************
* And so I saw the wicked buried, who had come and gone from
* the place of the holy, and they were forgotten in the city
* where they had so done: this is also vanity. (Eccl 8:10)
*/

Source: Direct link to the source code
Package / Software: Sun Solaris
Programming language: C

1 Star2 Stars3 Stars4 Stars5 Stars (3 Bewertungen, Durchschnitt: 4,67 von 5)
Loading ... Loading ...

Feb 25 2009

Halbschwanger

Christoph

// irgendwie ist das ziemlich mühsam :-(
// aber anders geht es nicht, die Grösse des arrays ist vorab
// nicht bekannt und einfach ein array mit z. B. 10 Elementen
// anlegen und ggf. einige Komponenten leer lassen will ich
// auch nicht. das produziert auch Folgefehler :-((
// und den Typ nachträglich in List ändern, und damit alle
// Stellen, wo er benötigt wird dazu habe ich jetzt auch
// keine Lust :-(((
// ——————-
// was haben sich die Java-Designer eigentlich dabei gedacht,
// arrays zwar mutable zu machen, aber ihre Grösse von
// nicht?? das ist doch halbschwanger.
// entweder immutable, oder alles mutable – auch die Anzahl
// der Elemente. aber ich bin sicher nicht die erste, die
// sich darüber ärgert.

Source: Direct link to the source code
Software: vjcompiler
Programming language: Java

1 Star2 Stars3 Stars4 Stars5 Stars (4 Bewertungen, Durchschnitt: 4,25 von 5)
Loading ... Loading ...