Se ha denunciado esta presentación.
Se está descargando tu SlideShare. ×

Code quality and its business value, Nikita Belov

Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio

Eche un vistazo a continuación

1 de 32 Anuncio

Code quality and its business value, Nikita Belov

Descargar para leer sin conexión

Very often the importance of the code quality is underestimated especially by business people who usually don’t see the business value of it. In this session we will try to discover all the advantages of well written code and discuss how coding standards, code reviews and static code analyzer can help to maintain the level of quality and bring the business value.

Very often the importance of the code quality is underestimated especially by business people who usually don’t see the business value of it. In this session we will try to discover all the advantages of well written code and discuss how coding standards, code reviews and static code analyzer can help to maintain the level of quality and bring the business value.

Anuncio
Anuncio

Más Contenido Relacionado

Similares a Code quality and its business value, Nikita Belov (20)

Más de CzechDreamin (20)

Anuncio

Más reciente (20)

Code quality and its business value, Nikita Belov

  1. 1. Code quality and its business value by Nikita Belov
  2. 2. #CD22 ● Born in Uzbekistan, live in Prague ● Graduated from Computer Physics ● Working with Salesforce since 2016 ● 4,5 years in consultancy ● 4x Salesforce certified ● Passionate about code quality Nikita Belov Salesforce Technical Lead
  3. 3. #CD22 ● What is code quality? ○ Low quality origin ○ Low quality issues ● Why it is important? ● How to improve it? ○ Coding standards ○ Code review ○ Static code analyzer ● What is business value? ● Q&A Agenda
  4. 4. #CD22 ● Good code or bad code? ○ no unified definition ● Good code ○ Simple ○ Readable ○ Performant ○ Secure ○ Reliable ○ Well tested ○ Bug-free ○ Scalable ○ Documented What is code quality?
  5. 5. #CD22 What is code quality?
  6. 6. #CD22 Low quality origin ● Many origins ● The most common – lack of time
  7. 7. #CD22 Low quality origin ● We need it yesterday!
  8. 8. #CD22 Low quality origin ● We need it yesterday! ● Less time, same scope and resources!
  9. 9. #CD22 Low quality origin ● We need it yesterday! ● Less time, same scope and resources! Result?
  10. 10. #CD22 Low quality issues – front-end vs back-end
  11. 11. #CD22 Low quality issues – front-end vs back-end
  12. 12. #CD22 Low quality issues – front-end vs back-end
  13. 13. #CD22 Low quality issues – unstructured code
  14. 14. #CD22 Low quality issues – readability
  15. 15. #CD22 Low quality issues – duplicate code
  16. 16. #CD22 Low quality issues – duplicate code
  17. 17. #CD22 Low quality issues – duplicate code
  18. 18. #CD22 Low quality issues – duplicate code
  19. 19. #CD22 Low quality issues – fixing bugs
  20. 20. #CD22 ● Hidden bugs and security vulnerabilities ● Lack of good tests ● Unstable code base for new features ● Salesforce governor limits exceeding ● Data issues ● Unreadable and confusing code ● Higher maintenance efforts ● Longer delivery time of new features ● Demotivated developers ● Performance impacts Why it is important?
  21. 21. #CD22 A set of rules, techniques, and best practices to create cleaner, more readable, more efficient code with minimal errors. Benefits ● Uniform format ● Easier to detect errors ● Reusable code ● Easier to maintain ● Developer efficiency How to improve it? – Coding standards
  22. 22. #CD22 How to improve it? – Code review A quality assurance activity where someone other than the author of a code reviews that code Benefits ● Quality of code ● Finding bugs and security vulnerabilities ● Knowledge sharing ● Collective ownership
  23. 23. #CD22 How to improve it? – Code review
  24. 24. #CD22 ● Scans your code to detect common bad practices, catch bugs, find vulnerabilities and make sure development adheres to coding standards. ● Analyzers for Salesforce ○ PMD ○ SonarQube ○ CodeScan ○ Veracode ○ Salesforce Code Analyzer ● IDE plugins or part of CI/CD pipelines How to improve it? – Static code analyzer
  25. 25. #CD22 What is business value? ● Stable and secured code base ● Less maintenance efforts ● Faster delivery of new features ● Optimized performance ● Easier migrations or upgrades ● Less time for developer on- boarding ● Highly motivated development team
  26. 26. #CD22 What is business value? ● Stable and secured code base ● Less maintenance efforts ● Faster delivery of new features ● Optimized performance ● Easier migrations or upgrades ● Less time for developer on- boarding ● Highly motivated development team Does it still bring no business value?
  27. 27. #CD22 Q&A Q&A
  28. 28. #CD22 ● How many Salesforce developers does it take to change a light bulb? Bonus
  29. 29. #CD22 ● How many Salesforce developers does it take to change a light bulb? ● As many as you want! It doesn’t count against Salesforce governor limits. Bonus
  30. 30. Thank you! #CD22
  31. 31. #CD22 ● https://www.codescan.io/ ● https://www.sonarqube.org/ ● https://forcedotcom.github.io/sfdx-scanner/ ● https://pmd.github.io/ ● https://lvivity.com/how-to-write-good-code ● https://www.browserstack.com/guide/coding-standards-best-practices ● https://en.wikipedia.org/wiki/Coding_conventions ● https://www.codegrip.tech/productivity/why-is-code-quality-important/ ● https://www.perforce.com/blog/sca/what-code-quality-overview-how-improve-code-quality ● https://www.atlassian.com/blog/add-ons/4-tips-to-improve-code-quality ● https://smartbear.com/learn/code-review/what-is-code-review/ ● https://about.gitlab.com/topics/version-control/what-is-code-review/ ● https://www.atlassian.com/agile/software-development/code-reviews ● https://en.wikipedia.org/wiki/Code_review References
  32. 32. #CD22 ● Very often the importance of the code quality is underestimated especially by business people who usually don’t see the business value of it. In this session we will try to discover all the advantages of well written code and discuss how coding standards, code reviews and static code analyzer can help to maintain the level of quality and bring the business value. Abstract

×