re: Is Commenting Code that necessary? VIEW POST


Css isn't a programing language, but I find it important to comment in it, as often people will write hacky styles that aren't immediately obvious


It is a programming language, but for a very specific domain. 🙂


yes! comments in CSS should be describing which part of HTML is being styled.


shouldn't this be done by using BEM?

It can be ! Using BEM we can have good naming rules that help understand the design.

But I'm saying that if we have 6-7 classes designing header tag of HTML then we can leave a comment header and then all these classes can be kept under that ! It would be good for reference .

code of conduct - report abuse