Andromxda 🇺🇦🇵🇸🇹🇼@lemmy.dbzer0.com to Programmer Humor@programming.devEnglish · 1 month agoHow programmers comment their codelemmy.dbzer0.comimagemessage-square144fedilinkarrow-up11.54Karrow-down19file-text
arrow-up11.53Karrow-down1imageHow programmers comment their codelemmy.dbzer0.comAndromxda 🇺🇦🇵🇸🇹🇼@lemmy.dbzer0.com to Programmer Humor@programming.devEnglish · 1 month agomessage-square144fedilinkfile-text
minus-squareyetAnotherUser@discuss.tchncs.delinkfedilinkarrow-up114arrow-down1·1 month ago/* * Gets stupidFuckingInteger * * @returns stupidFuckingInteger */ public double getStupidFuckingInteger() { return stupidFuckingInteger; }
minus-squaremrpants@midwest.sociallinkfedilinkEnglisharrow-up41arrow-down4·edit-21 month agoThe lack of a return type declaration makes this sooo good.
minus-squareexpr@programming.devlinkfedilinkarrow-up30·edit-21 month agoIt has the return type declared to be double.
minus-squaremrpants@midwest.sociallinkfedilinkEnglisharrow-up18·1 month agoI cannot read. Even better.
minus-squareILikeBoobies@lemmy.calinkfedilinkarrow-up15·1 month agoMakes sense, people looking for int would find a double
minus-squareAdNecrias@lemmy.ptlinkfedilinkarrow-up4·1 month agoReminds me of a job I had where c# summaries were mandatory and people used a documentation generator just like that. /// Ages the Category. public int AgeCategory (…)
minus-squareschnurrito@discuss.tchncs.delinkfedilinkarrow-up2·1 month agoplenty of APIs in Java have documentation like that and it is worst when I read the documentation in order to find out the definition of the nouns and verbs used there and then it is just like that
/* * Gets stupidFuckingInteger * * @returns stupidFuckingInteger */ public double getStupidFuckingInteger() { return stupidFuckingInteger; }
The lack of a return type declaration makes this sooo good.
It has the return type declared to be
double
.I cannot read. Even better.
This being a double physically hurts
Makes sense, people looking for int would find a double
Happy cake day!
Reminds me of a job I had where c# summaries were mandatory and people used a documentation generator just like that.
/// Ages the Category. public int AgeCategory (…)
plenty of APIs in Java have documentation like that and it is worst when I read the documentation in order to find out the definition of the nouns and verbs used there and then it is just like that