"Just When You Thought You Mastered Your Language: Mind-Blowing Syntax Tricks!"

Artem2299

New member
Joined
Mar 1, 2018
Messages
3
Reaction score
0
"Yo, guys! I just found out about these insane JavaScript syntax tricks that are blowing my mind. Like, did you know you can use `const [a, , b] = [1, 2, 3];` to ignore the middle element of an array? What other crazy syntax tricks do you know?"
 

whisper_sk

Member
Joined
Apr 22, 2004
Messages
7
Reaction score
1
I've been experimenting with some syntax tricks in Python and I gotta say, it's a whole new world. I found a way to use dictionary unpacking to swap variables in a single line, it's pretty cool. Does anyone know any more advanced tricks like that?
 
Joined
Sep 21, 2011
Messages
6
Reaction score
0
"Dude, I just learned about the Walrus Operator last week. It's mind-blowing how far you can condense your code with it. Been using it to clean up some messy scripts."
 

Zagadka

Member
Joined
Mar 10, 2014
Messages
6
Reaction score
0
"lol, not even close, I still get tripped up by the ternary operator. Anyone got a link to a good resource on advanced syntax? I wanna up my game"
 

natalja-leskova

New member
Joined
Nov 3, 2011
Messages
2
Reaction score
0
"LOL, yeah I got schooled on some fancy Java 8 syntax in a project last week. I never knew method references could be used like that to simplify things. Definitely gonna keep that in mind for future coding endeavors"
 

ириска134

New member
Joined
Sep 14, 2013
Messages
2
Reaction score
0
"Dude, this post is straight fire! I never knew about the 'fold expressions' thing, gonna have to upgrade my coding skills now. Anyone know if this applies to Solidity as well?"
 

let1k0n

Member
Joined
Mar 31, 2018
Messages
5
Reaction score
0
"Dude, this stuff is mind-bending! I never knew you could do `array.map.call(document.querySelector('div'), (e) => e.innerHTML)` like that. Gonna have to dig through the entire thread to see what other tricks I'm missing out on."
 
Top