"The trainer was clearly very knowledgeable and passionate about the subject. He presented the broad range of topics clearly, especially software development patterns, which I had found previously found difficult but I now have clarity."
MO, Software Engineer, Clean Code with JavaScript, June 2021
Watch a short video about Clean Coding with JavaScript and Test Driven Development. ( TDD )
Why is some code bad?
Benefits of code standards
Quality code
Practical – given an existing piece of JavaScript code, work out what it does
Industry standards
Best practice naming standards
What to apply naming standards to
Practical – using the code you were given previously, create (and code) good naming standards for all applicable areas of the code. Swap your code with the next team, review and critique their work.
Prettifying code
Structure, why it matters
Repetition, the DRY principle
Function size and structure
Parameters (and arguments)
Practical – Using the last code you used (from the other team) redesign the code to use better format and function style. Swap your code with the next team, review and critique their work.
Benefits of commenting
Comment style
What to comment
Practical – Using the last code you used (from the other team) add any comments you feel are necessary. Swap your code with the next team, review and critique their work.
Explanation of imperative and declarative
Examples of the same code written in the two different styles
Explanation of different paradigms
Good style
Examination of example code written in the different styles
Practical – Using the last code you used (from the other team) design and build suitable object classes. Swap your code with the next team, review and critique their work.
Programming patterns introduction
JavaScript patterns
Practical – Using the last code you used (from the other team) rewrite the code so it uses the Memoisation pattern. Swap your code with the next team, review and critique their work.
Fail not fall
Write error handling first
Return values from functions
Don’t trust data
Practical – Using the last code you used (from the other team) add any error handling you feel is necessary. Swap your code with the next team, review and critique their work.
General code smells
JavaScript specific code smells
Practical – Using the last code you used (from the other team) review and critique the code to see if you can identify any remaining code smells.
TDD
Unit testing
What to test
When to test
CAST
Practical – Using the last code you used (from the other team) plan and develop (if you have time) suitable tests. Swap your code with the next team, review and critique their work.
"The trainer was clearly very knowledgeable and passionate about the subject. He presented the broad range of topics clearly, especially software development patterns, which I had found previously found difficult but I now have clarity."
MO, Software Engineer, Clean Code with JavaScript, June 2021
“JBI did a great job of customizing their syllabus to suit our business needs and also bringing our team up to speed on the current best practices. Our teams varied widely in terms of experience and the Instructor handled this particularly well - very impressive”
Brian F, Team Lead, RBS, Data Analysis Course, 20 April 2022
Sign up for the JBI Training newsletter to stay updated with world-class technology training opportunities, including Analytics, AI, ML, DevOps, Web, Backend and Security. Our Power BI Training Course is especially popular. Gain new skills, useful tips, and validate your expertise with an industry-leading organisation, all tailored to your schedule and learning preferences.
Building well structured, quality, maintainable code is a must for developers in the modern workplace. With the popularity of Agile practices where code is built in an iterative and incremental way it is important that the code fits together well and has consistency and maintainability across the board
This Javascript clean coding training course looks at ways to build good quality, maintainable code using industry standard techniques and practices to design and build new code or refactor an existing code base.
The course is based on a code sample which the attendees will work on throughout the course, redesigning and refactoring it to take away a well-structured example of maintainable code.
CONTACT
+44 (0)20 8446 7555
Copyright © 2023 JBI Training. All Rights Reserved.
JB International Training Ltd - Company Registration Number: 08458005
Registered Address: Wohl Enterprise Hub, 2B Redbourne Avenue, London, N3 2BS
Modern Slavery Statement & Corporate Policies | Terms & Conditions | Contact Us