About comments:
Please please please, do not always write comments. Try to write code that does not need comments whenever possible. Proper variable, class and method names go a long way. If you think a block of code needs a comment, turn it into a method and give it a proper name instead.
Comments should be a last resort for cases where making the code self explanatory is not possible, and those should be rare.
About optimization:
Optimal code is code that fulfills it’s purpose without observable issues.
If you try to make something faster without any prior complaints or measurements indicating that it being slow is an actual issue, you are not optimizing, you are just engaging in mental masturbation.
impossible_silver@programming.dev 1 year ago
Is the Pic AI generated? Lol
Cat@kbin.social 1 year ago
Yes it is. Look at the eyes on the ducks. Also the guy's hands and nose. Dead giveaways.
cake@lemmings.world 1 year ago
Alien ducks
BluesF@lemmy.world 1 year ago
I wouldn’t be surprised if the whole meme was. What on earth does the picture have to do with the text lol
Zorque@kbin.social 1 year ago
Have you not heard of rubber duck debugging?
VigilantQuasar@lemmy.world 1 year ago
The image is definitely AI, but I assume the rubber duckies are in reference to this en.m.wikipedia.org/wiki/Rubber_duck_debugging
TheGreenGolem@lemm.ee 1 year ago
Rubber duck debugging
name_NULL111653@pawb.social 1 year ago
‘Rubber duck’ debugging is a thing…
icepuncher69@sh.itjust.works 1 year ago
Ir just looks silly
mriormro@lemmy.world 1 year ago
Why tf does someone need ai to make memes?! Jesus Christ…
Sotuanduso@lemm.ee 1 year ago
You expect a meme maker to photograph that themselves?