Comments (4)
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.
It shocked me when I first saw the code without semicolons, but now I understand. Thanks for the quick answer.
from art-of-node.
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.
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)
- Time Server Problem HOT 1
- Sorry Again Wrong repo
- Remove the laser from the hard drive HOT 3
- Can we simplify the callbacks pseudocode please? HOT 7
- I get this error after running npm install learnyounode -g. Ubuntu 14.04 HOT 2
- parseInt mystery HOT 2
- Why not use GitHub pages to host this doc? HOT 5
- Question on "require" HOT 3
- CoolBear example throws a error in RequireBin HOT 3
- Link mentioned in the doc is not working/changed
- Callbacks pseudocode missing passed arguments HOT 1
- README file contains a broken link to a git/github resource HOT 2
- Can I be an admin on this repo? HOT 1
- Promises add complexity? HOT 5
- RequireBin example error HOT 2
- Wrong number?
- asynch file IO how complex it can be? HOT 3
- RequireBin Example Doesn't Work on Chromium
- Error in solution of My First Async IO lesson HOT 1
- Requirebin link domain leads to gambling website
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from art-of-node.