A few quick thoughts:

On Wed, Mar 19, 2014 at 4:07 AM, rakesh mailgroups <
rakesh.mailgro...@gmail.com> wrote:

>
> c. whats with the instance variable prefixed with 'm' e.g. mTextView?
>

We had some very extensive discussions in the early days when we were
writing the style guide and this is by far the convention that dominated
across the team. Everyone agreed that a convention to tell fields from
local variables was important and also that an underscore (m_foo) was
un-Java like, so I went with mFoo.


> 4. Poor support for DI built in.
>
> Without DI (dependency injection) its very difficult to write testable
> code. I was surprised to see that achieving DI on Android without the help
> of external libraries was not easy (in fact, its not easy WITH external
> libraries!).
>
> There's no mention of DI as a good thing to do in the docs either, leading
> devs to just wire everything up with 'new' and not bother unit testing.
>

I use Dagger, which is more limited than Guice but much more performant and
a great match for Android (close to zero runtime penalty as opposed to
Guice). The injection process is a bit more manual but besides that, it
offers a lot of benefits, such as being able to simulate entire network
stacks with the use of a module in debug mode (which allows you to simulate
latency, spotty networks, etc...).

-- 
Cédric

-- 
You received this message because you are subscribed to the Google Groups "Java 
Posse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to javaposse+unsubscr...@googlegroups.com.
To post to this group, send email to javaposse@googlegroups.com.
Visit this group at http://groups.google.com/group/javaposse.
For more options, visit https://groups.google.com/d/optout.

Reply via email to