Groovy Developer Manifesto
Published in
1 min readJul 27, 2018
Groovy is not an excuse to write sh***ty code.
As a Groovy Developer I hereby promise:
- I will write code in Java unless writing in Groovy would add some value; removing semicolon does not add value
- I will follow Effective Java rules even when I am writing Groovy code
- I will use
@CompileStatic
annotation by default unless I really need dynamic language features - I will never ever use
def
keyword - I will never use
Map
as an excuse not to create meaningful class - I will use
@NamedParam
,@NamedDelegate
and@NamedVariant
instead of rawMap
method parameters - I will never use raw
Closure
without a type parameter - I will use
@ClosureParams
for everyClosure
method parameter - I will use
@DelegatesTo
for everyClosure
method parameter with altered delegate - CodeNarc is my best friend forever
Do you have your own statement to add? Please, leave it in the comments. I may update the list in the future.
You can sign this manifest using the hand icon bellow.