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
-
@halfflat "Simply_wrong_and_clearly_the_product_of_a_diseased_mind"
Well... This is quite a long class name.
The shorter, the better! 😇 -
p100sch13635yHaving to think about your classes name is proof that it is not Data and that you should take a step back and wonder if OOP is worth the effort in your case.
Sorry, the C programmer in me got the better of me. Btw, in Go, I never had to ask myself that question, too. -
@10Dev JS has had classes for a long time. And even longer without the syntactical sugar
-
@p100sch yeah I've never had much of an issue with class names. Maybe function names sometimes (the Boolean ones are the worst. Choosing is/can/should/etc to make it read like English can be hard) but classes usually are just modelled after the real world object they represent.
-
I found that, if the name for a class doesn't jump into my head right away, I'll end up redesigning that part at some point later
Related Rants

Stackoverflow.
What only relying on JavaScript for HTML form input validation looks like
I have got so much of free time that this Quarantine has got me thinking What Should I Name my Class?
How Long do You take to name your class?
joke/meme
jokes
coding meme
funny
programming meme
programming jokes
programming
programmer