Stuck when trying to paste text from clipboard to xterm via trackpad? You are not alone, it took me a while to find out. Here is a quick how-to, tested on Mac OS X Lion (10.7.5).
Saturday, 25 May 2013
Up till now I have not come across that many projects that would truly conform to the principles of Test Driven Development. Once again, I found myself in an unenviable situation of introducing unit tests to a code which had been released to production a long time ago, completely untouched by any kind of test automation. My aim was to keep the tests simple, understandable and fast so that one could easily add more until the core business logic gets a sufficient test coverage without delaying the build time. Due to a high number of intrinsic dependencies it was a challenge to keep the tests on a unit level and not to resort to complex (and potentially much slower) integration tests. I decided to mock out most of the dependencies and stay focused to the tested classes only. Mockito helped me a great deal, though there were some pitfalls along the way. Going about static method calls was one of them. Today, I would like to a share my experience with PowerMock and static method stubbing.
Sunday, 31 March 2013
I have just started with PhoneGap. First impressions are overly positive, though I see one subtle detail worth improving - the create script. Documentation (Android) suggests to invoke the script from within the installation directory. It can obviously be called using the absolute path from any location, but either way I find it too much of a hassle. In this post, I want to share a simple solution I have created to save myself some typing.
Tuesday, 5 March 2013
In the recent Mobile World Congress I joined two sessions intended for application developers. In the OneAPI App Developer Conference both GSMA and representatives of big industry players unveiled their view on web-based ecosystems. Next, I joined the Samsung Developer Day where new APIs were presented from a high-level perspective. Despite a strong marketing overtone of both events, I found some of the presentations enjoyable and informative. Here is a brief summary.
Tuesday, 25 December 2012
As a Scala newbie I was struggling to understand the benefits of currying in a real-life scenario. Most of the examples I could find were a bit too academic for my taste. Eventually, the coin dropped and I realized that currying enables to derive specialized methods out of a general one in an elegant and concise way.
Sunday, 18 November 2012
Branching is a common practice in code versioning. To my experience, a branch is usually seen as a playground for experiments with brand new features. As far as I can tell, branches have typically been used as a natural shield against tight deadlines. Let's branch out, see how it goes and take a qualified decision of what to merge back to trunk when the worst is over (i.e. post-delivery). There are several reasons for why this is not a good idea.
Tuesday, 13 November 2012
Øredev is an annual Developer Conference that takes place in Malmo, Sweden. Since this is my first year in Sweden I was curious of what to expect. It turned out to be an exciting and highly inspirational adventure. I took part in a couple of sessions and here is what I have taken from them.