Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Zuckerberg’s gray T-shirt and coding guidelines - AgileTourSophia2019

37 views

Published on

Why coding guidelines are beneficial for readers of the code, writers of the code and fore managers. Plus a little bit of psychology.

Published in: Technology

Zuckerberg’s gray T-shirt and coding guidelines - AgileTourSophia2019

  1. 1. 20/09/2019 #AgileTourSophia (par @AgileTourSophia) 1 Zuckerberg’s gray T-shirt and coding guidelines Sandor DARGO Agile Tour Sophia Antipolis 9ème édition – 20 septembre 2019
  2. 2. 20/09/2019 #AgileTourSophia (par @AgileTourSophia) 2 Merci aux Sponsors !
  3. 3. 20/09/2019 #AgileTourSophia (par @AgileTourSophia) 3 Agenda What are guidelines? Why are they beneficial for readers? How do they help coders? What is in it for managers? What do they have to do with psychology? What to bring back?
  4. 4. 20/09/2019 #AgileTourSophia (par @AgileTourSophia) 4 Who am I? Sándor DARGÓ Software developer in Amadeus Enthusiastic blogger http://sandordargo.com Passionate traveller Curious home baker and cook (@sourdad.baker) Happy father of two
  5. 5. 20/09/2019 #AgileTourSophia (par @AgileTourSophia) 5 What are coding guidelines? More than a set of formatting criteria: ● Accepted style ● Practices ● Methods ● Methodologies ● Acceptance criteria
  6. 6. 20/09/2019 #AgileTourSophia (par @AgileTourSophia) 6 Guidelines are good for the reader
  7. 7. 20/09/2019 #AgileTourSophia (par @AgileTourSophia) 7 Focus on the inner beauty or ugliness Establishes expectations Makes it easier to review One can focus on what is important
  8. 8. 20/09/2019 #AgileTourSophia (par @AgileTourSophia) 8 A quick reminder on the Maslow hierarchy
  9. 9. 20/09/2019 #AgileTourSophia (par @AgileTourSophia) 9 Code is written for people to read “Programs are meant to be read by humans and only incidentally for computers to execute.” – H. Abelson and G. Sussman
  10. 10. 20/09/2019 #AgileTourSophia (par @AgileTourSophia) 10 Code is written once, read all the time “The ratio of time spent reading (code) versus writing is well over 10 to 1 ... (therefore) making it easy to read makes it easier to write.” - Uncle Bob
  11. 11. 20/09/2019 #AgileTourSophia (par @AgileTourSophia) 11 How does a poorly formatted code read?
  12. 12. 20/09/2019 #AgileTourSophia (par @AgileTourSophia) 12 How does a well-formatted code read?
  13. 13. 20/09/2019 #AgileTourSophia (par @AgileTourSophia) 13 Guidelines are good for the developer
  14. 14. 20/09/2019 #AgileTourSophia (par @AgileTourSophia) 14 A tool for longevity Less comments on style Less questions on variable names Better perception as a coder Less time to re-read your code. Better quality => higher satisfaction => happier life
  15. 15. 20/09/2019 #AgileTourSophia (par @AgileTourSophia) 15 Guidelines are good for the manager
  16. 16. 20/09/2019 #AgileTourSophia (par @AgileTourSophia) 16 Happy employees will take care of customers well Better quality Satisfied employees Satisfied clients Shorter onboarding time for newcomers Sometimes are part of audit…
  17. 17. 20/09/2019 #AgileTourSophia (par @AgileTourSophia) 17 Maintenance costs are part of the equation D=(Pv∗Vi)/(Ei+Em) Pv: Probability of Value Vi: Implementation value Ei: Implementation Efforts Em: Maintenance Efforts
  18. 18. 20/09/2019 #AgileTourSophia (par @AgileTourSophia) 18 Maintenance costs are part of the equation The Desirability of Implementation is directly proportional to the Probability of Value and the Potential Value of Implementation, and inversely proportional to the total effort, consisting of the Effort of Implementation plus the Effort of Maintenance.
  19. 19. 20/09/2019 #AgileTourSophia (par @AgileTourSophia) 19 Is it worth to rush and save a few cents? Day Effort Value 1 € 1000 € 1000 2 € 2000 € 2000 3 € 4000 € 3000 4 € 8000 € 4000 5 € 16000 € 5000 Total € 31000 € 15000 Day Effort Value 1 € 2000 € 1000 2 € 200 € 2000 3 € 20 € 3000 4 € 0 € 4000 5 € 0 € 5000 Total € 2220 € 15000 Investing in maintainabilityFocusing only on short term costs
  20. 20. 20/09/2019 #AgileTourSophia (par @AgileTourSophia) 20 Where is that T-shirt?
  21. 21. 20/09/2019 #AgileTourSophia (par @AgileTourSophia) 21 Find the similarities
  22. 22. 20/09/2019 #AgileTourSophia (par @AgileTourSophia) 22 What is decision fatigue? Willpower doesn’t work! Each decision has a cost Willpower has its limits Only limited number of decision can be made No no-brainers
  23. 23. 20/09/2019 #AgileTourSophia (par @AgileTourSophia) 23 Guidelines against decision fatigue Small decisions are already made Follow the guidelines Invest your energy in activities with high added value
  24. 24. 20/09/2019 #AgileTourSophia (par @AgileTourSophia) 24 Conclusion Use guidelines to: ● Avoid decision fatigue ● Increase readability ● Upgrade quality ● Improve satisfaction ● Reduce long term costs
  25. 25. 20/09/2019 #AgileTourSophia (par @AgileTourSophia) 25 Call for actions Use industry guidelines Add your extra rules Enforce the rules Automate formatting Always test and refactor
  26. 26. 20/09/2019 #AgileTourSophia (par @AgileTourSophia) 26 Zuckerberg’s gray T-shirt and coding guidelines Sandor DARGO Agile Tour Sophia Antipolis 9ème édition – 20 septembre 2019

×