Syntactic sugar is the one I picked out as the obscure one
I have a hard time understanding how anyone wouldn't automatically know what syntactic sugar means. It's a combination of 2 common words, clearly it means sweetening the syntax aka making it more palatable.
It means a "syntax shortcut" sort of. An alternative syntax to write something that is faster / cleaner. Like in JavaScript default arguments function foo(a=1) {...} are basically syntactic sugar over the old way of manually checking if each argument was given and setting the proper value: function foo(a) { if (a === undefined) a = 1; ... }
Alternative possible meanings if I didn't know what it meant, off the top of my head.
Where the code suddenly goes hyperactive with its complex features, like "wow, it was pretty simple til they dropped a bunch of ternary statements and lambdas, syntax sugar much?"
Where a piece of syntax has no real nutritional substance and could easily be skipped, ie, extra parens or a return statement at thr end of a line in Scala or Rust.
Syntax that looks nice, but will make your code unhealthy if you overuse it, like operator overloading.
There is a real problem with empathy in teaching programming; learning was hard, and just cause you know something now doesn't mean everyone can learn it easily.
-3
u/trelltron Feb 06 '18
I have a hard time understanding how anyone wouldn't automatically know what syntactic sugar means. It's a combination of 2 common words, clearly it means sweetening the syntax aka making it more palatable.