CAREER OPEN HOUSE | 31st Jan, 7pm

We’re hiring Java and .NET Craftspeople in London & Barcelona. Come and meet us at our Career Open House on 31st January to learn more.

4 Rules of Simple Design

4 Rules of Simple Design

Quoting @jbrains, “A design is simple to the extent that it:

Passes its tests Minimizes duplication Maximizes clarity Has fewer elements" Object-oriented principles can only get you so far in simplifying your design. Starting with a clean yet completely imperative code base written in Java, In this video, Codurance co-founder Sandro Mancuso will explain how to improve code by applying functional principles, primarily extracting functions as objects and passing them around.

He will be pointing out how each refactor simplifies the code according to one or more of the four rules.

He will start by removing duplication, even where duplication isn’t apparent from an OO point of view, before making the code clearer by replacing the language of the system by the language of our domain. Along the way, he'll reduce the number of moving parts and increase test coverage.

He will also explain how existing libraries in Java and C# can help you refactor your own code to be smaller and more understandable.

Codurance Hiring

We're hiring!

We are hiring Java and .NET Craftspeople in London and Barcelona

Enjoying this article?

Sign up to our monthly newsletter to get content like this in your inbox!

Codurance Logo

Software is our passion.

We are software craftspeople. We build well-crafted software for our clients, we help developers to get better at their craft through training, coaching and mentoring, and we help companies get better at delivering software.

Latest Blogs




Contact Us

15 Northburgh Street
London EC1V 0JR

Phone: +44 207 4902967

Carrer Aragó, 208
08011, Barcelona

Phone: +34 689 723 737

Email: hello@codurance.com