News for hackers. Stuff that matters.
Re:Twitter urges users to change passwords after computer 'g... by lawl on Thursday May 03, 2018 @10:16PM (#16991735)
In this specific case DEBUGLEVEL should be a constant anyways, and thus assignment should fail, no? Also kind of denoted by being all caps.
Re:Twitter urges users to change passwords after computer 'g... by stan_rogers on Thursday May 03, 2018 @11:16PM (#16991966)
Conventions cause assumptions.
Re:Twitter urges users to change passwords after computer 'g... by anyzen on Friday May 04, 2018 @02:45AM (#16992665)
There are always assumptions being made, no matter what you do. But "uppercase -> constant" is such a generic and cross-platform convention that it should always be followed. This code should never have passed code review for this glitch alone.
Re:Twitter urges users to change passwords after computer 'g... by onion2k on Friday May 04, 2018 @01:26AM (#16992382)
Which language would stop/warn you assigning the value of a constant to a variable? Doesn't "var = const" just work in most languages?
Re:Twitter urges users to change passwords after computer 'g... by eloff on Friday May 04, 2018 @02:28AM (#16992605)
It's yoda condition, so const = var would fail.