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 10 months ago
Is the Pic AI generated? Lol
Cat@kbin.social 10 months ago
Yes it is. Look at the eyes on the ducks. Also the guy's hands and nose. Dead giveaways.
cake@lemmings.world 10 months ago
Alien ducks
BluesF@lemmy.world 10 months 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 10 months ago
Have you not heard of rubber duck debugging?
VigilantQuasar@lemmy.world 10 months 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 10 months ago
Rubber duck debugging
name_NULL111653@pawb.social 10 months ago
‘Rubber duck’ debugging is a thing…
icepuncher69@sh.itjust.works 10 months ago
Ir just looks silly
mriormro@lemmy.world 10 months ago
Why tf does someone need ai to make memes?! Jesus Christ…
Sotuanduso@lemm.ee 10 months ago
You expect a meme maker to photograph that themselves?