What are your programming hot takes? 257m ( @257m@lemmy.ml ) Programming@programming.dev • 1 year ago message-square373fedilinkarrow-up1222
arrow-up1222message-squareWhat are your programming hot takes? 257m ( @257m@lemmy.ml ) Programming@programming.dev • 1 year ago message-square373fedilink
minus-square OADINC ( @OADINC@feddit.nl ) linkfedilink43•edit-21 year agoThis is the only way; if (condition) { code } Not if (condition) { code } Also because of my dyslexia I prefer variable & function names like this; ‘File_Acces’ I find it easier to read than ‘fileAcces’
minus-square a Kendrick fan ( @greywolf0x1@lemmy.ml ) linkfedilink2•edit-21 year agoI’ve only seen the second type in C#, to be fair it makes code neater but i’m glad I left it for Java.
minus-square icesentry ( @icesentry@lemmy.ca ) linkfedilink2•1 year agoHow does it make code neater? All it does is add a ton of empty vertical space. It makes files arbitrarily longer at essentially no benefit.
minus-square AItoothbrush ( @AI_toothbrush@lemmy.zip ) linkfedilinkEnglish2•1 year agoIt depends for me. If the condition is some goofy ahh multiline syntax hell i like to use the second option.
This is the only way;
Not
Also because of my dyslexia I prefer variable & function names like this; ‘File_Acces’ I find it easier to read than ‘fileAcces’
I’ve only seen the second type in C#, to be fair it makes code neater but i’m glad I left it for Java.
How does it make code neater? All it does is add a ton of empty vertical space. It makes files arbitrarily longer at essentially no benefit.
It depends for me. If the condition is some goofy ahh multiline syntax hell i like to use the second option.