|
|
|
|
|
by paleite
1604 days ago
|
|
Couldn’t agree more! Explain the differences in the following to a new developer: something - a regular variable $something - just another regular variable with a fancy char #something - now that’s a private variable !something - this is… uhm… a regular variable cast to… eh… boolean, then inverted… ~something - type cast blah blah bit flipping magic !!something - same as !something except inverted again, because using Boolean(something) is not 1337 //something - a comment Yeah… personally, I much prefer the more explicit ways to write code. it’s cryptic enough as it is, why make it harder for your peers |
|