News for hackers. Stuff that matters.
Re:Things People Eventually Learn About JavaScript Projects by FlipperBucket on Monday August 20, 2018 @03:52PM (#17803306)
I prefer a convention of semantically relevant variable names prefixed/suffixed by a letter indicating type.
Re:Things People Eventually Learn About JavaScript Projects by Sharlin on Monday August 20, 2018 @03:59PM (#17803375)
Didn't we already collectively decide that Hungarian notation is a bad idea? About 20 years ago?
Re:Things People Eventually Learn About JavaScript Projects by FlipperBucket on Monday August 20, 2018 @06:57PM (#17804862)
No. It's alive and particularly pragmatic in dynamic languages. The type of sigil, @ or $ or I or Array(space) are all equal to the interpreter. The difference is how offended you might be that type annotations are semantically identical.
Re:Things People Eventually Learn About JavaScript Projects by jetrink on Monday August 20, 2018 @04:02PM (#17803394)
To be clear, the above examples are used when the function is designed to accept any such argument and only relevant info is the type.