Giter VIP home page Giter VIP logo

Comments (4)

max-mapper avatar max-mapper commented on July 26, 2024

Hi, good question. Semicolons, comma placement, indenting, capitalization
etc are all cosmetic, like an accent for code. My style can be summarized
as something like "no semicolon 2 space indent camelCase", but there are
many other styles too.

As long as you know where you need semicolons (for loops, multiple
statements on one line, etc) then they are pretty easy to leave out. I
haven't had ever had a semicolon related bug and I've been writing for a
couple years now without them.

On Monday, July 8, 2013, Erica Xu wrote:

Curious to know. Thanks!


Reply to this email directly or view it on GitHubhttps://github.com//issues/18
.

from art-of-node.

ericaxu avatar ericaxu commented on July 26, 2024

It shocked me when I first saw the code without semicolons, but now I understand. Thanks for the quick answer.

from art-of-node.

yadakhov avatar yadakhov commented on July 26, 2024

Starting to learn Node this week. I had to google to make sure if semicolon was required or not.

It really should be there just to be consistent with the node style guide. We don't want to teach beginners bad habits.
https://github.com/felixge/node-style-guide#use-semicolons

from art-of-node.

max-mapper avatar max-mapper commented on July 26, 2024

You should choose the style you like. Just like wearing clothes. One style
is not better than another. I personally prefer
https://github.com/feross/standard

On Tue, Mar 24, 2015 at 9:33 AM, yadakhov [email protected] wrote:

Starting to learn Node this week. I had to google to make sure if
semicolon was required or not.

It really should be there just to be consistent with the node style guide.
We don't want to teach beginners bad habits.
https://github.com/felixge/node-style-guide#use-semicolons


Reply to this email directly or view it on GitHub
#18 (comment).

from art-of-node.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.