257m@lemmy.ml to Programming@programming.dev · 2 years agoWhat are your programming hot takes?message-squaremessage-square742fedilinkarrow-up1339
arrow-up1339message-squareWhat are your programming hot takes?257m@lemmy.ml to Programming@programming.dev · 2 years agomessage-square742fedilink
minus-squareOADINC@feddit.nllinkfedilinkarrow-up56·edit-22 years 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-squareTopRamenBinLaden@sh.itjust.workslinkfedilinkEnglisharrow-up5·2 years agoI think it would be a much hotter take if you had the opposite opinion. I’ve only met a few of those.
minus-squarea Kendrick fan@lemmy.mllinkfedilinkarrow-up3·edit-22 years 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-squareicesentry@lemmy.calinkfedilinkarrow-up2·2 years 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-squareAItoothbrush@lemmy.ziplinkfedilinkEnglisharrow-up2·2 years 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 think it would be a much hotter take if you had the opposite opinion. I’ve only met a few of those.
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.
Even then - ) { on a newline.