Don't sweat the small stuff... unless you are writing JavaScript, in which case, absolutely sweat the small stuff.
Mike
Don't sweat the small stuff... unless you are writing JavaScript, in which case, absolutely sweat the small stuff.
Mike
It sounds like someone is struggling a bit with Javascript...
Bob Worsley
203-249-2633
rlworsley at gmail.com
Do or do not. There is no try. — Yoda
Haven't you been paying attention? He has been Since 1995.
Michael Mullan.
Danes Bridge Enterprises.
++++++++++++++++++++++++++++
There is just today. Tomorrow is a concept
that is mostly theoretical. -- GM Wylie
++++++++++++++++++++++++++++
Yes, and I have been writing JavaScript almost as long (since before 2000 at least).
But, although it is one of my favourite languages, it still trips me up...
- Make a syntax error and the browser just refuses to load it - you can't even see it in the browser's debugger to work out what you have f**ked up; block comments are your friend in that situation, so you can binary-chop through the script to home in on the mistake (which is why I never use block-comments in the body of the script, 'coz that mucks up their debugging utility)
- Other typos just cause it to stop working at that point - you have to step through to spot where in the midst of some function you have written this.eCircles, or this._ecircles instead of this._eCircles
Mike
RE: Make a syntax error and the browser just refuses to load it
browser will show syntax errors in the console. Never had an issue like this
Also why not use a javascript aware IDE such as VSCode, Atom or WebStorm.
then you use a code quality tool such as JSLint/ESLint or similar which will make sure your code is good and clean and show all these issues as well
our code is forced through a linter before it is allowed to be merged. but we also have the linter hooked into the IDE as well
Michael Salzlechner
StarZen Technologies, Inc
http.://www.starzen.com
IT Director at Balloons Everywhere
Development Blog
http://www.salzlechner.com/dev
DataFlex Package Manager (aka Nuget for DataFlex)
http://windowsdeveloper.com/dfPackage
A howto on this would be a great presentation at a conference. Just Sayin'.
Michael Mullan.
Danes Bridge Enterprises.
++++++++++++++++++++++++++++
There is just today. Tomorrow is a concept
that is mostly theoretical. -- GM Wylie
++++++++++++++++++++++++++++
Totally agree.
I could not write error free JavaScript without it.
I use VSCode for JavaScript. I have also used WebStorm, but it seems to run much slower... I have not used Atom.
Todd Forsberg
Idealease, Inc.
Senior Programmer
Web and Mobile Development: Think Outside the <DIV>