Java Sutra is the holy bible of all Java Developers. We did a talk about the Java Sutra at Devoxx Mars and had a lot of audience questions. This talk is about answering all those questions. Come join us dissecting a bunch of patterns and practices that at first sight look extremely great and interesting to try out, but will inevitability break your bones if you try to put them into practice.
8. @nickvdh @Hypernation#Devoxx #junior2professional
Comments
In order to make people read your comments
● Give them nonsense names, like a(), execute() or doSomething()
● Use a lot of html and images in them
● Use self invented javadoc annotations like @Pre en @Post
The pattern is called comments by obfuscation
10. @nickvdh @Hypernation#Devoxx #junior2professional
Agile velocity
Do the estimations after the story is developed
● That way you are always sure the velocity is maintained
If the velocity is 2 mandays / storypoint
● If you are ready after 1 day
● You have a day left to drink coffee
14. @nickvdh @Hypernation#Devoxx #junior2professional
The stablest build
● Push max twice per sprint
● Push when no other devs are around
● If it fails fix it fast and remove the failed jenkins build
○ Are you sure you want to delete this permanently >> YES
16. @nickvdh @Hypernation#Devoxx #junior2professional
Newbies FTW
You had one job
● 1 junior for merging branches
● 1 junior for writing javadoc
● 1 junior for writing tests for my code
● 1 junior for fixing bugs
They can choose a new role every sprint
18. @nickvdh @Hypernation#Devoxx #junior2professional
My Code is not for sharing
Obfuscation is again your friend
● Self invented patterns
● Extreme use of lambdas, optional and self invented function interfaces
● Functions returning
○ functions returning
■ streams of functions
● of optionals
○ of streams
■ of functions