SlideShare a Scribd company logo
1       © 2005  Nokia 	V1-Filename.ppt / yyyy-mm-dd / Initials Why do we need coding standards?
2       © 2005  Nokia 	V1-Filename.ppt / yyyy-mm-dd / Initials Broken windows theory.“One broken window, left unrepaired for any substantial length of time, instills in the inhabitants of the building a sense of abandonment—a sense that the powers that be don’t care about the building. So another window gets broken. People start littering. Graffiti appears. Serious structural damage begins. In a relatively short space of time, the building becomes damaged beyond the owner’s desire to fix it, and the sense of abandonment becomes reality.”
3       © 2005  Nokia 	V1-Filename.ppt / yyyy-mm-dd / Initials Examples of broken windows in javascript :Missing semi-colons.Missing commas.Undefined variablesConsole & alert debug statementsExplicit equality checksAs a matter of priority we need to make sure these basic errors are not checked in to the codebase.
4       © 2005  Nokia 	V1-Filename.ppt / yyyy-mm-dd / Initials How to test before you check-in?Run “mvn validate” at the command line Play with the JSLintconfig./static-resources/jslint.xmlLet’s clean house and then organically adjust our coding standards as needed.

More Related Content

PPTX
Software development best practices & coding guidelines
PPT
Js ppt
PDF
Managing technical debt
PDF
A Scalable Software Build Accelerator
PDF
Mockito 2.x Migration - Droidcon UK 2018
PDF
Mist: the why, how and what
PDF
Cloud adoption fails - 5 ways deployments go wrong and 5 solutions
Software development best practices & coding guidelines
Js ppt
Managing technical debt
A Scalable Software Build Accelerator
Mockito 2.x Migration - Droidcon UK 2018
Mist: the why, how and what
Cloud adoption fails - 5 ways deployments go wrong and 5 solutions

Similar to Js coding standards (20)

PDF
Cloud malfunction up11
PDF
DEVOPS & THE DEATH AND REBIRTH OF CHILDHOOD INNOCENCE
PDF
103 Understanding Technical Debt
PDF
Understanding Technical Debt: A Primer for Product Owners and Founders
PDF
TDD with Spring MVC
PDF
PPTX
10 Reasons You MUST Consider Pattern-Aware Programming
PDF
CQRS recepies
PPTX
Operational Costs of Technical Debt
PPTX
Citrix XenMobile and ShareFile Performance - 5 Steps for a Better BYOD Experi...
PPTX
Microsoft, Citrix and SCOM: EOL or a New Beginning ?
PDF
Docker?!?! But I'm a SysAdmin
PPTX
Azug BE Session Nov 2018 Wim Van den Broeck
PPTX
VMworld 2015 San Francisco - INF5432 - Infrastructure as Code - Ban Snowflake...
PPT
SMTAI PowerPoint: Blockchain for High Tech
PDF
100% Code Coverage in Symfony applications
PPTX
Cross-Platform Agile DevOps with Visual Studio Team Services
PPTX
Tips and tricks for optimizing windows virtual desktops final - Jeff Stokes
PDF
Cloud Love Conference: Kubernetes is awesome, but...
PDF
UContracts a DSL to document and validate structural requirements of frameworks
Cloud malfunction up11
DEVOPS & THE DEATH AND REBIRTH OF CHILDHOOD INNOCENCE
103 Understanding Technical Debt
Understanding Technical Debt: A Primer for Product Owners and Founders
TDD with Spring MVC
10 Reasons You MUST Consider Pattern-Aware Programming
CQRS recepies
Operational Costs of Technical Debt
Citrix XenMobile and ShareFile Performance - 5 Steps for a Better BYOD Experi...
Microsoft, Citrix and SCOM: EOL or a New Beginning ?
Docker?!?! But I'm a SysAdmin
Azug BE Session Nov 2018 Wim Van den Broeck
VMworld 2015 San Francisco - INF5432 - Infrastructure as Code - Ban Snowflake...
SMTAI PowerPoint: Blockchain for High Tech
100% Code Coverage in Symfony applications
Cross-Platform Agile DevOps with Visual Studio Team Services
Tips and tricks for optimizing windows virtual desktops final - Jeff Stokes
Cloud Love Conference: Kubernetes is awesome, but...
UContracts a DSL to document and validate structural requirements of frameworks
Ad

Recently uploaded (20)

PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
PPTX
Spectroscopy.pptx food analysis technology
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Machine learning based COVID-19 study performance prediction
PDF
cuic standard and advanced reporting.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Big Data Technologies - Introduction.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPT
Teaching material agriculture food technology
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Advanced IT Governance
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PPTX
Cloud computing and distributed systems.
PDF
Spectral efficient network and resource selection model in 5G networks
Chapter 3 Spatial Domain Image Processing.pdf
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
Spectroscopy.pptx food analysis technology
Review of recent advances in non-invasive hemoglobin estimation
Machine learning based COVID-19 study performance prediction
cuic standard and advanced reporting.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
“AI and Expert System Decision Support & Business Intelligence Systems”
Empathic Computing: Creating Shared Understanding
Big Data Technologies - Introduction.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
GamePlan Trading System Review: Professional Trader's Honest Take
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Teaching material agriculture food technology
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Advanced IT Governance
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
Cloud computing and distributed systems.
Spectral efficient network and resource selection model in 5G networks
Ad

Js coding standards

  • 1. 1 © 2005 Nokia V1-Filename.ppt / yyyy-mm-dd / Initials Why do we need coding standards?
  • 2. 2 © 2005 Nokia V1-Filename.ppt / yyyy-mm-dd / Initials Broken windows theory.“One broken window, left unrepaired for any substantial length of time, instills in the inhabitants of the building a sense of abandonment—a sense that the powers that be don’t care about the building. So another window gets broken. People start littering. Graffiti appears. Serious structural damage begins. In a relatively short space of time, the building becomes damaged beyond the owner’s desire to fix it, and the sense of abandonment becomes reality.”
  • 3. 3 © 2005 Nokia V1-Filename.ppt / yyyy-mm-dd / Initials Examples of broken windows in javascript :Missing semi-colons.Missing commas.Undefined variablesConsole & alert debug statementsExplicit equality checksAs a matter of priority we need to make sure these basic errors are not checked in to the codebase.
  • 4. 4 © 2005 Nokia V1-Filename.ppt / yyyy-mm-dd / Initials How to test before you check-in?Run “mvn validate” at the command line Play with the JSLintconfig./static-resources/jslint.xmlLet’s clean house and then organically adjust our coding standards as needed.