• Google Closure Templates integration with Spring MVC

    by Mateusz Szczap

    Have you ever heard of a Google Closure Templates library? It's a logic-less templates library from Google. Having experimented with this in a few minor projects at mobile - we like this libray and have previously used Freemarker templates when our templates code became very complex. We were looking for a simpler solution that would effectively prevent us from leaking business logic to our templates. We had complex logic in our view layer, which over time became a nightmare to maintain. While this logic should have been coded in the backend and frontend so it would just show the view, this kind of discipline was not always maintained. As we use Spring MVC in a number of projects we found that every team came up with its own solution. This blog post is about integrating Google's Closure Templates library and Spring MVC.

    Continue Reading ›
  • Money is...

    by Robert Kosten
    in My Two Cents

    …not a floating point value

    If you’re not familiar with the common pitfalls of floating point arithmetic you may think that money can be represented in ways similar to

    $amount = 0.1;

    for 10 cents. It looks intuitive, right? After all, that is how most of our programming languages (in this article I’m going to focus on PHP, because a surprising amount amount of software dealing with money on the Internet is written in it and that need not be a bad thing) deal with decimals and it seems to work most of the time. Sadly, it will cause a lot of hard to debug problems down the road, once you run into enough calculations to encounter the corner cases and the accounting department comes with a stack of off-by-one-cent issues. You’ll find this in more legacy code than anyone cares to think about. And these corner cases are not as rare as you might think either, have a look at this real-life example:

    Continue Reading ›
  • Exception testing pitfalls

    by Manuel Kaufmann
    in How We Do It

    Exceptions are an essential part of modern Java applications. Whether they communicate errors to users of an API or bubble up through the layers of code and are translated by the GUI layer into human readable error notifications. Exceptions are important business logic and thus worth testing, even when they are sometimes just tested to ensure the magic 100% test coverage is reached.

    Continue Reading ›
  • Integrating Grunt into Your Maven Build

    by Florian Semrau
    in Tutorials

    Maven and GruntAt ebay Kleinanzeigen, we use many maven plugins during our build to improve the loading time of our page. This includes for example a minification plugin for CSS and JavaScript as well as creating sprites from images in order to lower the number of browser requests.

    Many plugins with similar features recently became very popular for Grunt, and a lot of these plugins even go far beyond the features that are currently available from a maven build. At ebay Kleinanzeigen the frontend team was curious to try some of the plugins from the Grunt world, however we did not want to break the existing maven build chain. Luckily there is a maven plugin, that closes the gap between maven and Grunt: The frontend-maven-plugin.

    Continue Reading ›
  • Creating a Cards UI on Android

    by Yasin Yildirim
    in Tutorials

    Since Google introduced the Cards UI for the first time in the Google+ app, it started to become more and more popular in the Android community. Everybody liked it and started to use the same concept in their apps. It's not only used for the stylish look it has, but also for the functionality it provides. Each card has its own content and own action items which performs some actions on the content of it's own. In other words, each card has a content management of its own.

    When we started to think about feature booking in the eBay Kleinanzeigen Android app, the biggest problem was where to place the entry point to that functionality. Finally we decided that the best way to do it in the user's ads list would be using the Cards UI. So that each Ad would have its own capability to be enhanced with features using the "Promote" action button.

    In this article I will try to explain how to create a Cards UI with only using a normal ListView and Adapter logic.

    Continue Reading ›
1 2 3 4 5 6 7 8 9 10 13 14 15