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
-
rhl24012108y@Cyanite I think it depends on the language. I know you can do it in HTML and CSS but it was just an example because I didn't knew what to name my class
-
makinet1998y@Paramite If my memory serves correctly, double underscore (__name), and underscore and capital (_Name) are reserved for standard libraries, but you can still use them, just not recommended!
-
CLassNAme!! Because my right hand is faster than my left hand!! (I use left shift!!) π€ππ
-
rhl24012108y@mohsenasm ohh happens too often to me! Sitting and trying figuring out why something doesn't work just to find out that it was two capitalized letters.
-
rayanon13608yClassName if it's a class. class-name in CSS/HTML.
@rhl2401 @Cyanite you can use -'s in identifiers of lispy languages. -
lubwn8598yFourth :D I guess no developer would use class-name since you can not doubleclick on that :D
-
tkglaser1628yClassName, MethodName (C#), functionName (JS), variableName, cool-widget.component.ts (Angular), curly on new line for C#, curly on same line for JS. It's just a mess.
-
RStrydom6868ycamelCase for variables
PascalCase for Classes
kebab-case for URLs and files
snake_case for associative array keys
lowercase for object keys
π
Classname
ClassName
Class-name
Class_name
There are four types of people. Who are you?
undefined