Tecnologia do Blogger.
RSS

Re: [androidbrasil-dev] Google Java Style

Esse aqui é específico pra Android: https://source.android.com/source/code-style.html

Com relação ao ponto que o Douglas comentou, realmente a recomendação pra Android é outra:

Follow Field Naming Conventions

  • Non-public, non-static field names start with m.

  • Static field names start with s.

  • Other fields start with a lower case letter.

  • Public static final fields (constants) are ALL_CAPS_WITH_UNDERSCORES.


Att,

Thiago Resek


On Wed, Feb 26, 2014 at 2:47 AM, Douglas Drumond <drumond.douglas@gmail.com> wrote:
Android não segue tanto o estilo do Google.

5.1 Rules common to all identifiers 
Identifiers use only ASCII letters and digits, and in two cases noted below, underscores. Thus each valid identifier name is matched by the regular expression \w+ .
In Google Style special prefixes or suffixes, like those seen in the examples name_, mName, s_name and kName, are not used.

AOSP usa mName.

Outro ponto que aparece no documento: indentação de 2 espaços. AOSP usa 4.






2014-02-25 19:37 GMT-03:00 Dragão Heremita <dragaoheremita@gmail.com>:
Muito brigado, documentação fundamental.


2014-02-25 18:24 GMT-03:00 Andre Souza <deh.osouza@gmail.com>:

Bacana Diego!!


2014-02-25 16:47 GMT-03:00 Diego Ampessan <ampessann@gmail.com>:

http://google-styleguide.googlecode.com/svn/trunk/javaguide.html

--
Att.
Diego Ampessan
Microsoft MTA

www.diegoampessan.com.br


Os computadores são incrivelmente rápidos, precisos e burros; Os homens são incrivelmente lentos, imprecisos e brilhantes; Juntos, seu poder ultrapassa os limites da imaginação  - "Albert Einstein "

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
André Luiz de Oliveira Souza
Engenheiro da Computação
Pós-graduado em Desenvolvimento de Software com ênfase em Java Corporativo

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Grato:
Daniel Castro 
--------------------------------------------------


--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Thiago Resek Fabri dos Anjos
Computer Engineer

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

0 comentários:

Postar um comentário