1 points · by bytearcher · 10y ago · 1 comment
To a junior developer, "if (typeof request.session !== 'undefined') {var sessionId = request.session.id;}" is going to be more readable. It's hard to mistake the intention.
Most people in this industry speak English. It's easier to take advantage of that than to rely on your peers understanding &&||@(#*$((())) or whatever.
..unless you're taking part in an obfuscated code contest, in which case you should use these techniques as a basic building block.