Hacker News new | ask | show | jobs
by trixie_ 3031 days ago
Address address = contract.getAddress();

Not sure how this helps. I pretty much knew 'getAddress' would return some sort of Address structure. It's not like knowing the type name tells you what properties are on it. So what's the point?

1 comments

With an IDE (or even most code editors) you can ctrl+click on Address to go straight to its definition.
So you agree with me? IDEs are smart enough to take you to the right type def straight from var.
`var address` you can also in a short matter of clicks get to the definition of address's type, whatever it is, if you have an IDE.
And what if you don't?

When did programming suddenly shift away from "the programmer should be aware of what they are doing?"

Hell, I can't count the number of times I've had to troubleshoot bad imports/classpath management brought about by some genius letting his IDE do his thinking for him.

Making it harder to program is not synonymous with making the programmer 'more aware'. I'd argue the opposite. It's much harder to figure out the source of or find all references of something without an IDE. An IDE with intellisense makes the programmer much more aware of what his/her options and navigate large code bases quickly.

String searching text files for definitions or references is just crude.

> When did programming suddenly shift away from "the programmer should be aware of what they are doing?"

When Javascript became ubiquitous.