Online Users Page


QN

Previous notifications:
4 years ago
New Blog Entry In .:A-MAN:. lists stuff!
11 years ago
Regular accepted your friend request
More..
17X27
7 years ago
Fixed my bugs, indentation and code decryption changes next week.

We have a lot of one letter variable usage and someone fell in love with short circuit operators some time ago.

// look at this reconstructed gem
"none" !== i && document.getElementById(i).innerHTML = a;

I'd prefer an if statement in that case, but it could be used as a nice elvis operator alternative.

// C#
object?.method()
// JS
object && object.method()


If there's any more bugs, @ me in the BUGS thread or pm me.
Back

Please Login To Post

70.:A-MAN:.
7 years ago
It's probably not worth the hassle at this point. It was more important when we still supported the 3ds which had very little memory and cache.
Reply
17X27
7 years ago
@.:A-MAN:. Yeah it was in jsfuncs.js, I wonder what the original was like if the minifier was smart enough to use short circuit operators so often. I'm guessing it only used those operators for one line if statements but I only cleaned a few functions.

Also wondering if we should even need minification anymore considering non-php files get cached by default.
Reply
70.:A-MAN:.
7 years ago
Fyi if you're referring to jsfuncs.js that's because it was minified a long time ago but there wasn't an unminified version to edit, so I just expanded it as-is.
Reply
v3.2