From 64cab43cebc32595426a0842c5f0037f2e4c814a Mon Sep 17 00:00:00 2001 From: Morgan Date: Mon, 6 Nov 2017 11:06:20 +0100 Subject: [PATCH] clean code tips by Victor Rentea --- PRINCIPLES.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PRINCIPLES.md b/PRINCIPLES.md index ac6d4c6..a098816 100644 --- a/PRINCIPLES.md +++ b/PRINCIPLES.md @@ -68,6 +68,11 @@ * The Art Of Clean Code by [Victor Rentea](https://www.youtube.com/watch?v=J4OIo4T7I_E) * Make it more readable even if it makes writing harder : We read 10x more times than we write * Boy scout rule : always check in code cleaner than you found it + * Functions are verbs + * Boolean names should always answer yes/no + * Classes are nouns. Avoid meaningless names (OrderInfo, OrderData vs Order) + * Delete the interfaces : except for Remoting/API client jars and strategy pattern implementation. + * Make the name speak for itself ## personal thoughts * [MorganGeek](https://twitter.com/MorganGeek/statuses/420907517934178304) - Problem solving / Productivity : Good programmers write code after they found the solution. Un bon programmeur ne commence à coder qu'après avoir trouvé une solution.