3 ms·
I split my time between Java and less-typed languages, and what always annoys me is: messagesByUser = {} Is the key a user id, username, a user object, so
by stickfigure 11y ago
I split my time between Java and less-typed languages, and what always annoys me is:
messagesByUser = {}
Is the key a user id, username, a user object, some sort of stripped down user hash, what? What about the messages? If you try to cram all this information into the variable name then you've invented a perverse form of hungarian notation. And of course you lose all that precious type information every time you pass it off to a function.
Python is my go-to crutch for quickie projects that will never grow beyond a few hundred lines of code. Anything more complicated needs a typechecker. I only wish Java's was more robust.
- aryamaan 11y agoWhat do you mean by more robust?