PokeVideoPlayer v23.9-app.js-020924_
0143ab93_videojs8_1563605_YT_2d24ba15 licensed under gpl3-or-later
Views : 990,124
Genre: Entertainment
License: Standard YouTube License
Uploaded At Nov 20, 2024 ^^
warning: returnyoutubedislikes may not be accurate, this is just an estiment ehe :3
Rating : 4.981 (359/76,369 LTDR)
99.53% of the users lieked the video!!
0.47% of the users dislieked the video!!
User score: 99.30- Masterpiece Video
RYD date created : 2024-11-25T03:31:44.82549Z
See in json
Top Comments of this video!! :3
In my work, I like to think of it like this: any comments or details left must be able to clearly explain a given thing to someone who knows little about what they're looking at.
I do this with my emails, my invoices, and my client interactions... usually helps to prevent a lot of questions or mess-ups down the line.
569 |
I would augment this by noting that a lot of the reason people write those bad comments is to remind themselves of how the programming language works cause they’re juggling too much of the system in their brain. Plotting down some design context as part of your ‘why’ is often more helpful. In the video, I’d refer to enchant too, something as follows:
Unbreakable is an item enchant property that prevents this item from disappearing when used if set. 1 is the default value.
Then you can in theory extend and/or move this to code documentation later if you have to cause ya did enough of the work when it hurt your brain the most.
21 |
I try to live by this quite a good bit. When I tell people at work about how I might do things or what different safety rules are I try to tell them WHY I/we do that/have it as a rule. Becuase most of the time people seem to be more receptive to things when they know the reason behind it, not just “hey (don’t) do that thing!”
55 |
I appreciate the drive in recent years to write code that uses thoughtful naming that strives to be self documenting. I certainly don’t miss variables in longish methods named “x”.
But I do think we should write more of these sorts of comments to explain what we were thinking when we wrote code.
187 |
@CheeseTako
4 days ago
"I don't remember what this does, but deleting it breaks everything"
8K |