February 21st, 2010 • Comments Off on Striking Lufthansa Pilots??
Okay the Lufthansa pilots are going on strike starting tomorrow for 4 days. I’m flying Lufthansa…But that is no issue. I fly with Augsburg Airways which is part of the Lufthansa organization. Weird is that Lufthansa uses the Augsburg Airways brand to pay pilots less then they have to when they would work for Lufthansa. Now guess what: The Lufthansa pilots (salaries between 60.000 and 240000 Euro annually) are going on strike. Those pilots working for Augsburg Airways whom earn less are not going to strike…something is wrong here…
Categories: Personal • Tags: Travel • Permalink for this article
February 19th, 2010 • Comments Off on A pythonic note to myself
How to find the unique elements of two lists:
def unique(self, a, b):
return [item for item in a if item not in b]
Categories: Personal • Tags: Python • Permalink for this article
December 17th, 2009 • 1 Comment
It doesn’t mater which programming language you are using Java, Python, or something else. Writing cool kick-ass Unit-tests is a must. So here are some thoughts and Ideas:
- Design first & design to test. But do not add extra methods just for testing!
- Always write your unit-test first; It will start small (just checking the public methods) and eventually grow with your code.
- Design and spend time writing test environments with mocks etc.
- Each method should be at least tested by 3 test methods in your unit-test:
- test for success – Test if the method behaves correctly when given parameters in range; this is were the Test-Driven-Development starts.
- test for failure – Test if the method behaves correctly when given invalid parameters, wrong environment etc.
- test for sanity – Test with a set of input parameters and compare results with expected output parameters.
Next to this I would encourage all developers to use Agile development methodologies like Scrum or similar. And also: please tweet and blog to give your users an insight of what is going on with your product/software.
Blog post is also available here
Categories: Personal, Work • Tags: Software Engineering • Permalink for this article