Sjmarf to Programmer [email protected] • 1 year agoUnused variablessh.itjust.worksimagemessage-square52fedilinkarrow-up1901
arrow-up1901imageUnused variablessh.itjust.worksSjmarf to Programmer [email protected] • 1 year agomessage-square52fedilink
minus-square@[email protected]linkfedilinkEnglish4•1 year agoFor a second there I thought you might be serious
minus-square@[email protected]linkfedilink2•1 year agoI do actually use variables before I declare them most of the time. IDEs make it so easy to then generate the declaration with the correct type.
minus-square@[email protected]linkfedilinkEnglish1•1 year agoThat’s true, in fact I’ve started doing that myself. Same with methods, instead of going and writing the method and then coming back to use it, I’ll write the invocation first.
For a second there I thought you might be serious
I do actually use variables before I declare them most of the time. IDEs make it so easy to then generate the declaration with the correct type.
That’s true, in fact I’ve started doing that myself. Same with methods, instead of going and writing the method and then coming back to use it, I’ll write the invocation first.