tapetransfer

Even though my good tape decks are broken at the moment I have started on the software to transfer my techno and house mix tapes to the computer. I have written the software before in C++. It basically waits for a sound on the input and then writes the music to a file until it notices a long quiet section at the end of the tape and stops writing. The software was using threads and used the lame lib to do on the fly mp3 encoding, to make it even quicker to digitize tape. It also notified the user of any buffer underflows and clipped samples. ...

October 31, 2008 · 2 min · Christof Damian

comparing class syntax in C++, Java, PHP, Perl and Python

As I recently started learning Python one of the things I noticed which I didn’t like is the class syntax. So I wrote some minimal hello world programs in the languages I recently used to show the difference: C++ hello.cc #include <iostream> class Hello { private: char *value; public: Hello(char *newvalue) { value = newvalue; } void hello() { std::cout << this->value; } }; int main() { Hello hello("hello\n"); hello.hello(); } I like the C++ syntax, it is the language which introduced me to OOP and it clearly states what bits are what without too wordy syntax. ...

September 29, 2008 · 2 min · Christof Damian