Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
That's something my CS professor steesses; proper naming.
Hell even my frontend web dev professor stresses relevant naming for classes so others can understand it.
Why is it so difficult for people to grasp this concept?
I'll sometimes have variable named like this: user_input_mathquestion just so it's clearly known what it is lol -
Well I don't think it's that bad..same naming conventions at least, making it easier to figure out.
-
Brolls31557yAside from a couple, most of them are fairly self explanatory from the context.
The T C S ones are tan cos and sine results etc.
Probably a little too contracted admittedly, but once you work out what they are, give them a bit of love and rename them a touch. -
@Pseudonymous Yes. And it's' funny so many people upvoted the comment without noticing my mistake.
-
@telephantasm Idk about others, but simple things like that, my brain autocorrects.
And even if others didn't, we all know what you mean when the words "clean" and "code" are together in some arrangement lol -
@jhh2450 I read both these books: "Clean Code" and "Code Complete". Your brain autocorrects and mine automixes @__@
-
enoon4317y@Shardj the function parameters have explicit types (numbers, whatever that is in this context).
it’s something that’s usually not done in plain js, since everything is explicitly just a var.
i don’t have enough exposure to js to have seen it written this way. and as I suspected, there are hints of typescript.
Related Rants
This is what I have to deal with right now... 🙂🔫
Why?
Why would you not comment or name your variables so someone else can understand wtf is going on here?
Why!?
rant
comment ffs
dafuq is this shit
omfg