Pavel Lahoda, Perpetum Design
Mobile application development is one of most dynamically expanding areas, with hundreds of thousands of applications filling virtual shelves of various application stores. There are dozens of new devices every year with new capabilities, and often with different form factors, which makes the UI development across multiple devices quite challenging. Mobile platforms, such as Android, tends to aid there by introducing concepts brought over from the web applications development, where UI elements are declared in markup language and later glued to the (Java) code. This often results in software that is difficult to comprehend, expensive to maintain, next-to-impossible to reuse and most of all : inefficient.
ObjectForms provide an alternative approach. It relies on Java language features, such as introspection to completely eliminate many layers that older approaches deemed necessary to boost both efficiency and reliability of the mobile application development. This talk will look at several myths that are tied to "traditional" approach and provide alternatives. Presentation will explain following :
- how Java can be as declarative as XML
- removing unnecessary hooks will help the productivity
- variations are best handled by polymorphism and conditional statements
- reusing code is possible with sticking to OO principles
The talk is quite compact and has several demos and examples of real, working code.
25. “The most powerful tool for detecting and revealing errors is your compiler.
No XML files should be used and code should be written in a way that gives the
compiler the opportunity of performing this task as good as possible.”
Apache.org
The principle of string-free coding
čtvrtek, 24. března 2011
31. Avoid excessive typing
chevron
noun
a line or stripe in the shape of a V or an inverted V, esp. one on the sleeve of a
uniform indicating rank or length of service.
ORIGIN late Middle English (in heraldic use): from Old French, based on
Latin caper ‘goat’ ; compare with Latin capreoli (diminutive of caper) used
to mean ‘pair of rafters.’
-itis
suffix
forming names of inflammatory diseases : cystitis | hepatitis.
• informal used with reference to a tendency or state of mind that is compared
to a disease : creditcarditis.
ORIGIN from Greek feminine form of adjectives ending in -itēs (combined
with nosos ‘disease’ implied).
chevronitis
noun
a a disease characterized by obsessive typing of strange characters on the
computer keyboard, such as chevrons.
ORIGIN late 20th century fell in love of typing enormous amounts of
chevrons and other strange characters while “programming”, causing a lot of
weird injuries to fingers and hands.
čtvrtek, 24. března 2011
120. Credits
Some of the images are from Flickr using Creative Commons License, all credit goes to their authors.
Entire presentation can be freely distributed under Creative Commons license as well.
Chevron definition taken from Dictionary application by Apple, Inc.
ObjectForms is property of PerpetumDesign.
Original idea of Java Bean introspection and UI generation came from BeanView by Will Iverson of CTG
Current GWT version uses wonderful reflection package Gwittir from Robert “kebernet” Cooper
All other products and trademarks are property of their respective owners.
No chevrons were destroyed during preparing this presentation.
čtvrtek, 24. března 2011