: Elsevier: Clean Code
Overview
We know that most of the time invested in a software project goes into its maintenance. As a company we have learned the value of software craftspersonship, 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 foreach-loops with foreach-Lambdas
Demo
We will look at the 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. Be prepared to a fast-paced ride through the world of Clean Code!
The Video will be online approximately 6 weeks after the talk.