Results 1 to 7 of 7

Thread: OT: Small Stuff

  1. #1
    Join Date
    Mar 2009
    Location
    Beech Hill - a village near Reading in the UK
    Posts
    2,812

    Default OT: Small Stuff

    Don't sweat the small stuff... unless you are writing JavaScript, in which case, absolutely sweat the small stuff.

    Mike

  2. #2
    Join Date
    Feb 2009
    Location
    SW Connecticut/NY area
    Posts
    9,181

    Default Re: OT: Small Stuff

    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

  3. #3
    Join Date
    Feb 2009
    Location
    Queens, NY, NY
    Posts
    7,429

    Default Re: OT: Small Stuff

    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
    ++++++++++++++++++++++++++++

  4. #4
    Join Date
    Mar 2009
    Location
    Beech Hill - a village near Reading in the UK
    Posts
    2,812

    Default Re: OT: Small Stuff

    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

  5. #5
    Join Date
    Feb 2009
    Location
    Stuart, FL
    Posts
    5,321

    Default Re: OT: Small Stuff

    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

  6. #6
    Join Date
    Feb 2009
    Location
    Queens, NY, NY
    Posts
    7,429

    Default Re: OT: Small Stuff

    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
    ++++++++++++++++++++++++++++

  7. #7
    Join Date
    Feb 2009
    Location
    Round Lake, IL
    Posts
    1,882

    Default Re: OT: Small Stuff

    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>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •