Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Ask HN: What are your favorite developer-efficiency tips?. Parent comment
What I’ve done is switch whatever I work with to Hungarian Notation.
You know what the variable can hold. You can easily add a test for it. Someone that comes after will be able to know what it is.
It won’t complain, but since you know the type, you can add a quick if to validate that it is what you expect it to be.
It‘s actually working for us.
There are no comments on this comment yet.
What I’ve done is switch whatever I work with to Hungarian Notation.
You know what the variable can hold. You can easily add a test for it. Someone that comes after will be able to know what it is.
It won’t complain, but since you know the type, you can add a quick if to validate that it is what you expect it to be.
It‘s actually working for us.