nus-cs3281 / 2020

0 stars 2 forks source link

Stop using semicolons in JavaScript #21

Closed openorclose closed 4 years ago

openorclose commented 4 years ago

Summary

Semicolons, or the lack of them, can cause hard to spot bugs in your programs due to the infamous Automatic Semicolon Insertion (ASI) in JavaScript.

WIIFY

Be more confident, and avoid bugs/cryptic linter warnings in JS code.

Key Points

This lightning talk will describe some of said problems, how even popular style guides mislead on what should be a mere preference, and why it is important to learn the actual rules of ASI.

Impact

Know: ASI exists and cannot be turned off Believe: You need to know ASI rules as a JS developer Do: Start knowing them, and be a better JS developer

Slides

https://docs.google.com/presentation/d/1Gyqcty0yJZPHhn6b6HmtWsqhvjmqyeSDGx4qxZdGjEY/edit?usp=sharing