Click here to Skip to main content
15,894,294 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Will you send your name to the SUN? Parker Solar Probe Pin
lopatir22-Mar-18 6:48
lopatir22-Mar-18 6:48 
GeneralRe: Will you send your name to the SUN? Parker Solar Probe Pin
David O'Neil22-Mar-18 7:30
professionalDavid O'Neil22-Mar-18 7:30 
GeneralRe: Will you send your name to the SUN? Parker Solar Probe Pin
Daniel Pfeffer22-Mar-18 8:04
professionalDaniel Pfeffer22-Mar-18 8:04 
GeneralRe: Will you send your name to the SUN? Parker Solar Probe Pin
Mike Hankey22-Mar-18 7:56
mveMike Hankey22-Mar-18 7:56 
GeneralRe: Will you send your name to the SUN? Parker Solar Probe Pin
kmoorevs22-Mar-18 8:28
kmoorevs22-Mar-18 8:28 
GeneralRe: Will you send your name to the SUN? Parker Solar Probe Pin
CPallini22-Mar-18 11:25
mveCPallini22-Mar-18 11:25 
GeneralRe: Will you send your name to the SUN? Parker Solar Probe Pin
Fueled By Decaff23-Mar-18 1:18
Fueled By Decaff23-Mar-18 1:18 
GeneralJavascript PinPopular
Marc Clifton22-Mar-18 5:38
mvaMarc Clifton22-Mar-18 5:38 
So Javascript is actually pretty cool. Queue "Join the dark side, Marc".

Working with arrays and dictionaries is really easy, particularly with functions like map, reduce, and Object.entries. I still have to give our own Sander's Javascript LINQ a whirl, but for now I haven't needed it yet.

set/get is incredibly useful.

this and bind is someone's idea of hell, but once you figure it out, it works.

Being able to pass functions as parameters is incredibly useful, and creating partial functions is also really useful.
partialOnDrag(anchors, anchorElement, onDrag) {
    return (function (anchors, anchorElement, onDrag) {
        return function (dx, dy) { onDrag(anchors, anchorElement, dx, dy); }
    })(anchors, anchorElement, onDrag);
}

It let's you get away with murder. Good grief, I can create/assign a class' function to a completely different function with "=". Well, functions are functions!

It drives me nuts (as with any scripted language) to have to figure out if I wrote the code correctly by actually running it. Things like typos, forgotten this. and other stupid mistakes a compiler would catch. I need to explore some Lint apps.

Dealing with attributes, which are strings, when you want them as numbers to do math on. Ugh. And crazy workarounds, like +"1" is actually the number 1.

Classes are cool, but then there's the "class-like" hack of creating an object with key-value pairs where the key is the function "name" and the value is the function. Is that old school?

var vs. let. Riiight. That was useful to know about.

I haven't even touched what looks like the cesspool of prototype. Probably something I should learn.

But overall, I'm actually starting to get comfortable with what I'm doing. Meaning that I'm actually starting to spend more time debugging my code logic than debugging my stupid syntax mistakes or quirky Javascript behaviors.

Anyways, just thought you'd like all like to know what I've been learning writing my next article on dynamic SVG and creating a bare-bones diagramming app. Laugh | :laugh:
Latest Article - Contextual Data Explorer

Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

Artificial intelligence is the only remedy for natural stupidity. - CDP1802

GeneralRe: Javascript Pin
Gary Wheeler22-Mar-18 6:58
Gary Wheeler22-Mar-18 6:58 
GeneralRe: Javascript Pin
raddevus22-Mar-18 7:14
mvaraddevus22-Mar-18 7:14 
GeneralRe: Javascript Pin
Ryan Peden22-Mar-18 7:20
professionalRyan Peden22-Mar-18 7:20 
GeneralRe: Javascript Pin
Marc Clifton23-Mar-18 1:22
mvaMarc Clifton23-Mar-18 1:22 
GeneralRe: Javascript Pin
ddt_tdd23-Mar-18 4:10
ddt_tdd23-Mar-18 4:10 
GeneralRe: Javascript Pin
Leng Vang23-Mar-18 7:05
Leng Vang23-Mar-18 7:05 
GeneralRe: Javascript Pin
abmv22-Mar-18 7:33
professionalabmv22-Mar-18 7:33 
GeneralRe: Javascript Pin
Jörgen Andersson23-Mar-18 7:50
professionalJörgen Andersson23-Mar-18 7:50 
GeneralRe: Javascript PinPopular
#realJSOP22-Mar-18 8:11
mve#realJSOP22-Mar-18 8:11 
GeneralRe: Javascript Pin
Marc Clifton23-Mar-18 8:25
mvaMarc Clifton23-Mar-18 8:25 
GeneralRe: Javascript Pin
#realJSOP23-Mar-18 9:09
mve#realJSOP23-Mar-18 9:09 
GeneralRe: Javascript Pin
Kirk 1038982123-Mar-18 9:33
Kirk 1038982123-Mar-18 9:33 
GeneralRe: Javascript Pin
Kirk 1038982123-Mar-18 9:32
Kirk 1038982123-Mar-18 9:32 
GeneralRe: Javascript Pin
kmoorevs22-Mar-18 9:25
kmoorevs22-Mar-18 9:25 
GeneralRe: Javascript Pin
Kirk 1038982123-Mar-18 9:41
Kirk 1038982123-Mar-18 9:41 
GeneralRe: Javascript Pin
kmoorevs23-Mar-18 11:00
kmoorevs23-Mar-18 11:00 
GeneralRe: Javascript Pin
Jon McKee22-Mar-18 12:01
professionalJon McKee22-Mar-18 12:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.