18
TheOct0
6y

A teacher just gave us a complete course on JS, which already is my main language, and didn't. Put. A. Single. Semicolon.

Am I the only one to compulsorily put semicolons even of the language doesn't require you to do so? Please?

Comments
  • 7
    try to add secretly "use strict"; to his code. And watch him. 😉
  • 4
    @heyheni I add it to my projects without thinking now, so yeah, I'll do that next time :D

    Thanks for the tip :)
  • 4
    Wait, since when does JS not require semicolons?
  • 2
    Try not to put semicolons in vanilla JS, and see how lines of code are magically skippes without any notice by the browser :D
  • 1
    Try putting semicolons in python and watch PEP8 lose it's shit
  • 1
    I did, till I started using python for the backend
  • 2
    Minify his JS and watch his soul get shattered.
  • 4
    @Navigatr It's required if you intend to minify it sometime, but I was shocked myself to learn that it's not required as long as you have an EOL char... I learned it from an argument with a friend ^^'
Add Comment