SlideShare a Scribd company logo
1 of 25
Javascript programming with Industry
Standards
Workshop
Register for Certificates
Our Journey
2014 - Android/IOS internship
2015 - Joined SS as Android / IOS developer
2016 - JS & Angular 2+
2017 - NodeJS & Blockchain and Won EY India
`Blockchain Hackathon`
2018-2021 - ReactJS, GoLang,
Team lead and PM
2022 - Sr. Application Architect
Index
1. Understand Web application
2. Why Javascript?
3. Javascript Fundamentals
4. Industry programming mindset
5. JS Programming as per Industry standards
6. Q&A
Understand Web application
What is Web Application?
● It is an application software that runs in a web browser, unlike software programs that run
locally and natively on the operating system of the device.
● These are delivered on the World Wide Web to users with an active network connection.
Some examples of Web Application?
● Amazon
● Flipkart
● Paytm
● CO-WIN
● And many more…..
CO-WIN: Self registration web app
CO-WIN: Department web app
High level web application architecture
High level web application architecture
High level web application architecture
Why Javascript?
● Front-end developer
(Angular, ReactJS)
● Back-end developer
(NodeJS)
● Mobile app developer
(ReactNative)
● Machine learning engineer
(Tensorflow.js)
● Web3 developer (Blockchain)
(Web3.js)
According to the Statista survey report, JavaScript is the
most used programming language among developers
worldwide, as of 2021.
Javascript Statistics
Javascript Fundamentals
● Let’s jump to VSCode editor
Industry programming mindset
While programming in software industry we :
● Think
○ End user
○ Collaborative Programmer
Outcome of above activity leads to following actions:
● Validating inputs
● Clean coding
● Optimization
● Analyse
○ Problem statement
○ Identify best approaches
○ Storage, Processing Power & Time consumption
Think
● Understand the problem/requirement thoroughly before jumping into problem.
● While developing a program always think from below 2 perspectives:
○ As an end user
■ If you are end user then what type of expectation you have & different ways you
would use the program/system
■ This thinking will help you cover most Scenarios.
○ As collaborative programmer
■ Your program must readable so that the other programmers can quickly
understand the implementation.
■ For that you can use meaningful name for the variables and functions used in
programs.
■ In some scenarios if giving meaningful names it not enough to simplify the
understanding then use comments wherever necessary to make it easier.
■ This thinking will help you design a proper Clean Code Structure.
Analyse
● Analyse following points before beginning with development:
○ Problem statement
■ Think of different test cases & note them down
■ Think of what needs to be taken into account when solving the problem
■ Clear out all the queries with leads or analyst
■ Conclude & agree on the points that should be covered in the implementation
○ Best approaches
■ Research & Brainstorm with team to identify different approaches that could be
used to solve this problem
■ Choose the best approach
○ Storage, Processing & Time consumption
■ Consumption of storage and processing power & time should as low as possible
with the implemented solution
Outcome: Input validation
Input Validation
● You must validate input variables for valid values otherwise your code can behave unexpectedly and
break it can also make debugging time consuming.
● Identify required & optional inputs and validate accordingly so the system always works as expected.
Outcome: Clean code
● Maintain uniform coding format
throughout your code
● Use proper indentation, spacing,
empty lines, semicolon etc.
● You can automate this using editor
extensions & packages.
Outcome: Clean Code - Naming Convention
● Choose descriptive and unambiguous names.
○ AVOID : let b; //available balance.
○ DO : let availableBalance;
● Use similar vocabulary for same type of functions.
○ AVOID : fetchValue() or getValue() or retrieveValue()
○ DO : fetchValue() // Use use the same concept through then
● Use pronounceable & searchable names.
○ AVOID : let genymdhms; // generation timestamp
○ DO : let generationTimeStamp;
● Replace magic numbers with named constants.
○ AVOID : let totalHours = days * 24
○ DO : const HOURS_PER_DAY = 24; let totalHours = days * HOURS_PER_DAY
● Avoid encodings. Don’t append prefixes or type information.
○ AVOID : let accountList; // Eg: Disinformation ; let nameString; // Eg: Encoding
○ DO : let accounts; let name;
Outcome: Optimization
What is Optimization?
● Removing of unnecessary code or refactoring it so that eats up less memory, processing power &
time.
What are some basic things you can do to optimize
your code?
● Remove unnecessary variables.
● Remove dead code.
● Remove duplicate code.
Outcome: Optimization
● Create reusable functions that do a single task. This will help to keep the code organized for easy
maintenance, debugging & testing. Also, the code readability will get increased to a greeter extent.
AVOID
DO
Outcome: Optimization
● Identify the right control flow statement to be used. Ex:
AVOID
DO
Outcome: Optimization
● Remove unnecessary iterations of loop.
AVOID
DO
Any Questions?
Scan for Feedback

More Related Content

Similar to Javascript Programming according to Industry Standards.pptx

OutSystems Tips and Tricks
OutSystems Tips and TricksOutSystems Tips and Tricks
OutSystems Tips and TricksOutSystems
 
Software Craftmanship - Cours Polytech
Software Craftmanship - Cours PolytechSoftware Craftmanship - Cours Polytech
Software Craftmanship - Cours Polytechyannick grenzinger
 
Software development best practices & coding guidelines
Software development best practices & coding guidelinesSoftware development best practices & coding guidelines
Software development best practices & coding guidelinesAnkur Goyal
 
HOW TO START (ANYTHING ABOUT CODE).pptx
HOW TO START (ANYTHING ABOUT CODE).pptxHOW TO START (ANYTHING ABOUT CODE).pptx
HOW TO START (ANYTHING ABOUT CODE).pptxssuser62b2da
 
Programming terms & concepts - Using Java
Programming terms & concepts - Using JavaProgramming terms & concepts - Using Java
Programming terms & concepts - Using JavaRebecca DuPont, PhD
 
Taming the Legacy Beast: Turning wild old code into a sleak new thoroughbread.
Taming the Legacy Beast: Turning wild old code into a sleak new thoroughbread.Taming the Legacy Beast: Turning wild old code into a sleak new thoroughbread.
Taming the Legacy Beast: Turning wild old code into a sleak new thoroughbread.Chris Laning
 
Code Smells and Refactoring - Satyajit Dey & Ashif Iqbal
Code Smells and Refactoring - Satyajit Dey & Ashif IqbalCode Smells and Refactoring - Satyajit Dey & Ashif Iqbal
Code Smells and Refactoring - Satyajit Dey & Ashif IqbalCefalo
 
Hexagonal Architecture.pdf
Hexagonal Architecture.pdfHexagonal Architecture.pdf
Hexagonal Architecture.pdfVladimirRadzivil
 
Keeping code clean
Keeping code cleanKeeping code clean
Keeping code cleanBrett Child
 
Evolving to Cloud-Native - Anand Rao
Evolving to Cloud-Native - Anand RaoEvolving to Cloud-Native - Anand Rao
Evolving to Cloud-Native - Anand RaoVMware Tanzu
 
The Testers' Secret Weapon - Code Reviews
The Testers' Secret Weapon - Code ReviewsThe Testers' Secret Weapon - Code Reviews
The Testers' Secret Weapon - Code ReviewsBertold Kolics
 
Coding standards
Coding standardsCoding standards
Coding standardsMimoh Ojha
 
APIDays SF 2019: Managing multiple api stacks on serverless
APIDays SF 2019: Managing multiple api stacks on serverlessAPIDays SF 2019: Managing multiple api stacks on serverless
APIDays SF 2019: Managing multiple api stacks on serverlessAlexander Graebe
 
From class to architecture
From class to architectureFrom class to architecture
From class to architectureMarcin Hawraniak
 
Design Like a Pro: Scripting Best Practices
Design Like a Pro: Scripting Best PracticesDesign Like a Pro: Scripting Best Practices
Design Like a Pro: Scripting Best PracticesInductive Automation
 

Similar to Javascript Programming according to Industry Standards.pptx (20)

OutSystems Tips and Tricks
OutSystems Tips and TricksOutSystems Tips and Tricks
OutSystems Tips and Tricks
 
Software Craftmanship - Cours Polytech
Software Craftmanship - Cours PolytechSoftware Craftmanship - Cours Polytech
Software Craftmanship - Cours Polytech
 
Software development best practices & coding guidelines
Software development best practices & coding guidelinesSoftware development best practices & coding guidelines
Software development best practices & coding guidelines
 
HOW TO START (ANYTHING ABOUT CODE).pptx
HOW TO START (ANYTHING ABOUT CODE).pptxHOW TO START (ANYTHING ABOUT CODE).pptx
HOW TO START (ANYTHING ABOUT CODE).pptx
 
04-JS.pptx
04-JS.pptx04-JS.pptx
04-JS.pptx
 
04-JS.pptx
04-JS.pptx04-JS.pptx
04-JS.pptx
 
04-JS.pptx
04-JS.pptx04-JS.pptx
04-JS.pptx
 
Programming terms & concepts - Using Java
Programming terms & concepts - Using JavaProgramming terms & concepts - Using Java
Programming terms & concepts - Using Java
 
Taming the Legacy Beast: Turning wild old code into a sleak new thoroughbread.
Taming the Legacy Beast: Turning wild old code into a sleak new thoroughbread.Taming the Legacy Beast: Turning wild old code into a sleak new thoroughbread.
Taming the Legacy Beast: Turning wild old code into a sleak new thoroughbread.
 
Code Smells and Refactoring - Satyajit Dey & Ashif Iqbal
Code Smells and Refactoring - Satyajit Dey & Ashif IqbalCode Smells and Refactoring - Satyajit Dey & Ashif Iqbal
Code Smells and Refactoring - Satyajit Dey & Ashif Iqbal
 
Hexagonal Architecture.pdf
Hexagonal Architecture.pdfHexagonal Architecture.pdf
Hexagonal Architecture.pdf
 
Keeping code clean
Keeping code cleanKeeping code clean
Keeping code clean
 
Evolving to Cloud-Native - Anand Rao
Evolving to Cloud-Native - Anand RaoEvolving to Cloud-Native - Anand Rao
Evolving to Cloud-Native - Anand Rao
 
The Testers' Secret Weapon - Code Reviews
The Testers' Secret Weapon - Code ReviewsThe Testers' Secret Weapon - Code Reviews
The Testers' Secret Weapon - Code Reviews
 
DDD with Behat
DDD with BehatDDD with Behat
DDD with Behat
 
Coding standards
Coding standardsCoding standards
Coding standards
 
APIDays SF 2019: Managing multiple api stacks on serverless
APIDays SF 2019: Managing multiple api stacks on serverlessAPIDays SF 2019: Managing multiple api stacks on serverless
APIDays SF 2019: Managing multiple api stacks on serverless
 
Dust.js
Dust.jsDust.js
Dust.js
 
From class to architecture
From class to architectureFrom class to architecture
From class to architecture
 
Design Like a Pro: Scripting Best Practices
Design Like a Pro: Scripting Best PracticesDesign Like a Pro: Scripting Best Practices
Design Like a Pro: Scripting Best Practices
 

Recently uploaded

Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 

Recently uploaded (20)

Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 

Javascript Programming according to Industry Standards.pptx

  • 1. Javascript programming with Industry Standards Workshop
  • 3. Our Journey 2014 - Android/IOS internship 2015 - Joined SS as Android / IOS developer 2016 - JS & Angular 2+ 2017 - NodeJS & Blockchain and Won EY India `Blockchain Hackathon` 2018-2021 - ReactJS, GoLang, Team lead and PM 2022 - Sr. Application Architect
  • 4. Index 1. Understand Web application 2. Why Javascript? 3. Javascript Fundamentals 4. Industry programming mindset 5. JS Programming as per Industry standards 6. Q&A
  • 5. Understand Web application What is Web Application? ● It is an application software that runs in a web browser, unlike software programs that run locally and natively on the operating system of the device. ● These are delivered on the World Wide Web to users with an active network connection. Some examples of Web Application? ● Amazon ● Flipkart ● Paytm ● CO-WIN ● And many more…..
  • 8. High level web application architecture
  • 9. High level web application architecture
  • 10. High level web application architecture
  • 11. Why Javascript? ● Front-end developer (Angular, ReactJS) ● Back-end developer (NodeJS) ● Mobile app developer (ReactNative) ● Machine learning engineer (Tensorflow.js) ● Web3 developer (Blockchain) (Web3.js)
  • 12. According to the Statista survey report, JavaScript is the most used programming language among developers worldwide, as of 2021. Javascript Statistics
  • 13. Javascript Fundamentals ● Let’s jump to VSCode editor
  • 14. Industry programming mindset While programming in software industry we : ● Think ○ End user ○ Collaborative Programmer Outcome of above activity leads to following actions: ● Validating inputs ● Clean coding ● Optimization ● Analyse ○ Problem statement ○ Identify best approaches ○ Storage, Processing Power & Time consumption
  • 15. Think ● Understand the problem/requirement thoroughly before jumping into problem. ● While developing a program always think from below 2 perspectives: ○ As an end user ■ If you are end user then what type of expectation you have & different ways you would use the program/system ■ This thinking will help you cover most Scenarios. ○ As collaborative programmer ■ Your program must readable so that the other programmers can quickly understand the implementation. ■ For that you can use meaningful name for the variables and functions used in programs. ■ In some scenarios if giving meaningful names it not enough to simplify the understanding then use comments wherever necessary to make it easier. ■ This thinking will help you design a proper Clean Code Structure.
  • 16. Analyse ● Analyse following points before beginning with development: ○ Problem statement ■ Think of different test cases & note them down ■ Think of what needs to be taken into account when solving the problem ■ Clear out all the queries with leads or analyst ■ Conclude & agree on the points that should be covered in the implementation ○ Best approaches ■ Research & Brainstorm with team to identify different approaches that could be used to solve this problem ■ Choose the best approach ○ Storage, Processing & Time consumption ■ Consumption of storage and processing power & time should as low as possible with the implemented solution
  • 17. Outcome: Input validation Input Validation ● You must validate input variables for valid values otherwise your code can behave unexpectedly and break it can also make debugging time consuming. ● Identify required & optional inputs and validate accordingly so the system always works as expected.
  • 18. Outcome: Clean code ● Maintain uniform coding format throughout your code ● Use proper indentation, spacing, empty lines, semicolon etc. ● You can automate this using editor extensions & packages.
  • 19. Outcome: Clean Code - Naming Convention ● Choose descriptive and unambiguous names. ○ AVOID : let b; //available balance. ○ DO : let availableBalance; ● Use similar vocabulary for same type of functions. ○ AVOID : fetchValue() or getValue() or retrieveValue() ○ DO : fetchValue() // Use use the same concept through then ● Use pronounceable & searchable names. ○ AVOID : let genymdhms; // generation timestamp ○ DO : let generationTimeStamp; ● Replace magic numbers with named constants. ○ AVOID : let totalHours = days * 24 ○ DO : const HOURS_PER_DAY = 24; let totalHours = days * HOURS_PER_DAY ● Avoid encodings. Don’t append prefixes or type information. ○ AVOID : let accountList; // Eg: Disinformation ; let nameString; // Eg: Encoding ○ DO : let accounts; let name;
  • 20. Outcome: Optimization What is Optimization? ● Removing of unnecessary code or refactoring it so that eats up less memory, processing power & time. What are some basic things you can do to optimize your code? ● Remove unnecessary variables. ● Remove dead code. ● Remove duplicate code.
  • 21. Outcome: Optimization ● Create reusable functions that do a single task. This will help to keep the code organized for easy maintenance, debugging & testing. Also, the code readability will get increased to a greeter extent. AVOID DO
  • 22. Outcome: Optimization ● Identify the right control flow statement to be used. Ex: AVOID DO
  • 23. Outcome: Optimization ● Remove unnecessary iterations of loop. AVOID DO

Editor's Notes

  1. https://github.com/ryanmcdermott/clean-code-javascript#variables