How to Write Better Code

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

"some random sh*t" too relatable 😭🙏

ivirius.parody
Автор

That is the best variable name

superPoppySeedMuffin

Riflyre
Автор

Do you like tabs or spaces? "Both" 😂😂😂

YetAnotherNotHacking
Автор

The opinion exists that your code should be so readable that you don't need comments to understand it.

Stray
Автор

reverse indentation has to be the most deeply infuriating thing ive seen

jademonass
Автор

“I don’t know.. but it just works”

Ahhh the Todd Howard defense

Rx_Ashes
Автор

Bro at my workplace, our flex is that we don't write comment cause your code shoulda be so readable and nice that a dev can easily read and understand what's going on

kanzanaveed
Автор

Comments don't make you code better, if there are comments in your code you screwed up something.

And of course there are the "necessaries screw ups" for fixing production, so in this case you should comment the hotfix

I took this short too serious. Here is a banana 🍌

dudu
Автор

Remind me getting into some old ode base with 0 comments and somehow, someone thought it was a good idea to call a variable "something"

carlmayer
Автор

Nobody shall understand what I am doing 😈 it's called job security 😂

Feral_Sage
Автор

My man looks like Nick Jonas and Daniel Thrasher

cschr
Автор

Writing comments doesn't mean you making code readable. It actually your are explaining your shit to others.
Clean code is the code when a developer start reading it, every line will help him what will be the next line. In short it should be the solution of a problem.


Good book is a book that make the read to imagine what actually the author wants to say. Same the case in coding.

mr.chapii
Автор

“It just works” the last time someone said that it did not go well

bccolortheif
Автор

Someone who worked for my dad would always use 1 character variables like “i” and my dad continuously told him he needed to fix the naming skills, but they guy said it was to reduce typing

Anyways, always use clear variable names that make sense

Someone_Cool
Автор

1) any enterprise codebase has code formatting standards/CI tests like prettier, 2) comments should only be used to clarify code that’s purpose isn’t immediately obvious. The variable naming joke is accurate though

BestRedditorClips
Автор

Look! It's Jake the brogrammer!!! I missed seeing you on screen buddy!

neo_lowfade
Автор

Yeah😅 like my teacher used to reproach my variable names 🤧

lur.
Автор

Nothing copilot and prettier can’t fix

RafiBarides
Автор

How do you get someone to check your work? That's genuinely cool.

nikhil
Автор

Write self explained code. And minimal comments. Too much comments mean too many things to handle on top of writing codes. And sometimes someone will change some of the code and forgot to update the comments. And make that comments useless and confusing.

hasithapriyasad