If you need to direct output into the void in your program on a *NIX system you simply pipe or redirect it to the null device /dev/null.
Needing a similar functionality today in a C# .NET project I found the following equivalent:

Stream.Null

Seemed fairly useful to me 😉

First make sure you’re collaboratively editing the same document.
Preferably on different positions in a very long (and unbelievably ugly coded) file.
Let the fun begin:

  1. Open up a multi line comment and never close it.
  2. Repeatedly press Cmd+A to highlight _everything_ so the screen for all the others starts to flash in your editing color
  3. Simply paste in A LOT of blank lines so the functions, the others are currently working on, scroll out of their view
  4. Sneak in some nasty syntax errors and wait for someone to save the file to test their newest edits

Some more ideas? 🙂

CakePHPLately I’m totally amazed by the beauty that is CakePHP. It’s one of those hyped »rapid webdevelopment frameworks« …and boy, it really enables you to work fast!
At least compared to what I was used to previously in my PHP development.

  • endless procedural code
  • crafting DB queries by hand
  • no MVC
  • no ORM
  • composing my own “frameworks” to encapsulate DB and HTML output
  • simple OO code with no real application structure

…well, you get the spin.

Basically, it meant ugly, unmaintainable code that needed hours of work before there was something to see for the client (or myself) not even talking about being finished.

During the last four days I got myself to sit down and dive into the CakePHP Manual and learn the framework. It was really enlightening and suddenly PHP coding is fun again 🙂
I was able to put together the whole structure of a new app, I’m working on, just by cleverly planning the DB layout and mapping this structure to the models. From there it was just a few simple commands on the shell to let Cake generate the controllers and views. After deleting the ones I didn’t need, I could immediately start tweaking the business logic and fine tune the views. It’s a really good feeling seeing how fast the development is progressing.

Yesterday I took a quick glimpse at Ruby On Rails, just to see where it all came from. The CakePHP developers claimed to have built their framework like RoR but, oh my god – it is just exactly like RoR. The concept of convention over configuration is perfectly migrated from Ruby to PHP.
I kinda like that, because it means if I know Cake I can quickly and very easily learn Ruby On Rails, just by learning a bit of different Ruby syntax, all the other concepts are already in my head 🙂

I’m excited to see where it goes from here, it really looks like my productive output could get a serious boost from now on!

Panic today announced a great new application called Coda.
It is a fully integrated web development IDE consisting of several parts.

  1. A licensed SubEthaEdit (my absolute favourite) as text editor
  2. Their awesome Transmit as integrated tool to transfer files back and forth
  3. A dedicated CSS editor
  4. Reference Books for HTML, CSS, JavaScript and PHP. Fully searchable and integrated with the app
  5. A Terminal Application for the occasional SQL work or tailing a logfile

This app looks really promising, I can’t wait to try it out and see if it suits my workflow.

For a long time Mac OS X was the one platform left out when it comes to developing MIDlets. There where soultions from SUN for Windows, Linux & obviously Solaris. There was no official build for the amazing NetBeans Mobility Pack for the Mac … well, there still isn’t one but I looked around a bit in the gathered knowledge of mankind which is the WWW and found the blog of Lukas Hasik. He has a fairly well written documentation of how to achieve a working development environment on Mac OS X.

In this post I’d like to summarize the nessecary steps as well as make a few annotations where I ran into difficulties while following the described steps.

Continue reading