: Codewords Pune: May 2016 - Clean Code booked up - wait list!
Clean Code
Time:
Speaker: Christian Hujer
Location: Red Panda Pvt Ltd, 305,
Konark Icon, Magarpatta Road,
Kirntane Baug, Hadapsar,
Pune, India
Map
Overview
We know that most of the time invested in a software project is into its maintenance. As one of the world's leading companies in software craftsmanship, we have been applying Clean Code principles in our projects to minimize the cost & efforts on maintenance. In this session, we will share some of the basics and our experience of Clean Code in a Java example small enough to understand but big enough to relate to real-world projects.
Learning for Participants
- What is Clean Code and why is it needed.
- The two values of Software.
- The four big design smells and what's causing them.
- Clean Code principles - Symbol Naming, Method Length, TDD, Red-Green-Refactor Cycle, The Three Laws of TDD, SOLID Principles.
- Refactoring - Rename symbol, Extract Method, Replace
switch
-case
with polymorphism. - Dealing with Legacy Code - Characterization Tests.
- A glimpse on Java 8 - How to replace
for
each-loops withforeach
-Lambdas.
Demo
We will look at the Expense Report example in Java 8, understand why its design smells, demonstrate the problems with legacy code, clean it up to make it maintainable and support some specific new requirements to be implemented.
In case you already know the Expense Report example from cleancoders.com, there's a surprise for you - The solution presented here will be different from the solution by Robert C. Martin…
Be prepared to a fast paced ride through the world of Clean Code!