Hacker News new | ask | show | jobs
by remram 736 days ago
Please please don't put that in your head or your notepad. This is what code comments are for!
1 comments

You definitely should "annotate" arrays with their expected sizes, but if you're doing a lot of broadcasting operations it can get pretty verbose to write out those tables over and over.

That said, yes, you definitely should at least make an attempt to clarify your broadcasting logic if you want to be able to read your own scripts in a month from now, let alone write maintainable production code.