Development

CUnit Tests in Hudson

Posted in Development on May 18th, 2009 by Oliver – Be the first to comment

Since I needed to parse the results of some CUnit tests in Hudson in a recent project, I came up with the following transformation which I apply to the cunit xml result file.
Hudson can then evaluate the results as if they were generated by JUnit. The same approach is basically used in the CppUnit Plugin for Hudson – which is where I got the idea.
Since I’m too lazy at the moment to write my own plugin for Hudson, I figured running xsltproc after running my tests will be good enough:

xsltproc-win32\xsltproc.exe --stringparam suitename testall -o testall_results.xml cunit-to-junit.xsl cunit_testall-Results.xml

To make CUnit produce XML results, you have to do something like this:

  CU_set_output_filename( "cunit_testall" );
  CU_list_tests_to_file();
  CU_automated_run_tests();

You can download the cunit-to-junit.xsl here.

read more »

Code Metrics: WTFs/m

Posted in Development on February 26th, 2009 by Oliver – Be the first to comment

Good metrics:

Source: WTFs/m

MDA Tools Überblick

Posted in Development on February 25th, 2009 by Oliver – Be the first to comment

Wer sucht, der findet. Leider nur ein Ausschnitt aus einem relativ alten iX Artikel über MDA Tools: iX 5/2005, S. 102: Softwareentwicklung.
Sowas müsste es öfter geben, eigentlich. Mal weiter suchen …

Dark GDK – Expand Dark GDK

Posted in Development on February 22nd, 2009 by Oliver – Be the first to comment

Mal was zum spielen, sozusagen: Dark GDK – Expand Dark GDK

Principles Of Object Oriented Design

Posted in Development on February 22nd, 2009 by Oliver – Be the first to comment

Muss man mal gelesen haben:

ArticleS.UncleBob.PrinciplesOfOod.

Vorallem die dort verlinkten PDFs zum Single Responsibility Principle, Open Closed Principle, Liskov Substitution Principle, Dependency Inversion Principle und Interface Segregation Principle sind sehr interessant.

Der Rest natürlich auch ;)

Games Convention in Köln ab 2009

Posted in Development, Games on April 1st, 2008 by Oliver – 2 Comments

Gute Nachrichten für alle Freunde des Computerspiels: Ab 2009 wird die Games Convention (GC) in Köln statt finden (Quelle).

Damit zieht der Veranstaltungsort von der Leipzige Messer auf das Gelände der KölnMesse.

Ich werde auf jeden Fall da sein, bei der kurzen Anreise mal gar keine Frage.

See you there.

Developer Sins

Posted in Development, Rants on February 21st, 2008 by Oliver – Be the first to comment

Just a quick rant. I’ve lately come to the conclusion that these are the most severe developer sins:

1. You didn’t think before you started coding
2. You didn’t rethink after you were finished coding
3. You didn’t even try to understand an already implemented concept but reinvented something youself
4. You discarded other peoples efforts and architecture for your own ‘thing’
5. You don’t even want to understand an architecture
6. You’re so full of your own solution that you don’t even see that there could be other, possibly better ways.
7. You’re raising editing an excel sheet to a process

All those sins tend to frustrate co-workers. Especially me….

Singleton Pattern in Python

Posted in Development on June 11th, 2007 by Oliver – Be the first to comment

I was looking for a smooth way to create singletons in python. Here is a metaclass solution that seems to work:

1
2
3
4
5
6
7
8
class Singleton(type):
    def __init__(cls,name,bases,dic):
        super(Singleton,cls).__init__(name,bases,dic)
        cls.instance=None
    def __call__(cls,*args,**kw):
        if cls.instance is None:
            cls.instance=super(Singleton,cls).__call__(*args,**kw)
        return cls.instance

This was originally posted by Michele Simionato as a comment on a python singleton recipe on http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/102187

You use it like this:

1
2
3
class A( object ):
  __metaclass__ = Singleton
  # here goes the rest of you class definiton ..

But you knew that anyway, didn’t you? ;)

Grails FTW

Posted in Development on June 8th, 2007 by Oliver – Be the first to comment

You might remember me ranting about Ruby on Rails some time ago. There were speed issues though and hence it never made it past the “playing around” phase.
Now there is Grails. Grails stands for Groovy on Rails I suppose and is pretty much that. It mimics the behaviour of Rails where possible.
The good thing is that you can run grails applications on pretty much any servlet container. This brings enterprise features (i.e. scalability) to your application.
Grails makes use of some pretty sophisticated libraries, namely Hibernate and Spring, just to name two.
The good thing is that this is hidden from you for the most party and you can start developing right away. If you are a little bit familiar with Groovy that is. I just ordered books on Groovy as well as on Grails (and some on Python, but that does not matter at the moment).
I’ll post more on Grails in the next few days. I really think it’s going to be big.

Custom CSS Plugin

Posted in Development on May 13th, 2007 by Oliver – Be the first to comment

As promised I’ve added a page for the “Custom CSS” plugin.
Any suggestions welcome. And let me know if you even find this usefull at all.

Get Adobe Flash playerPlugin by wpburn.com wordpress themes