Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 2 years agoUnused variablessh.itjust.worksimagemessage-square59linkfedilinkarrow-up1907
arrow-up1907imageUnused variablessh.itjust.worksSjmarf@sh.itjust.works to Programmer Humor@programming.dev · 2 years agomessage-square59linkfedilink
minus-squareNightAuthor@lemmy.worldlinkfedilinkEnglisharrow-up4·2 years agoFor a second there I thought you might be serious
minus-squareShouldIHaveFun@sh.itjust.workslinkfedilinkarrow-up2·2 years 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-squareNightAuthor@lemmy.worldlinkfedilinkEnglisharrow-up1·2 years 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.