don't you find that comments are taking a lot of space more than the actual code or do you think this is what a takes to avoid confusion. I found that single line comments are much better, compact and enough to explain what is happening as opposed to those multiline comments that take so much space.
for the "common basis" part I'm referring to commenting code/ using descriptive variable names/ breaking mega large files into smaller ones...
things that developer do not agree on include choosing between (object-oriented, procedural or functional code)
the debate of isolating small bits of code regardless of the paradigm used.
how many "code components" can be created without making the follow references game so crazy that you can't even understand the code flow and where you even started reading the code.
are small code duplicates really that bad or over componentizing is a bigger issue that tries to solve the first one?
things like that...
I didn't work for large company before so was wondering if you saw any consensus/ agreement patterns between senior developers in these type of debatable things especially when writing JS because of it's huge flexibility.
it's more like a CSS reset file than a framework. in that case I don't see adding 4kb is necessary.
I'm more a fan from styling everything from scratch rather than using any CSS framework.
we just need better tooling to write better CSS faster not necessarily including prewritten CSS.
I deeply believe this is where CSS going and this why I'm building https://intab.io to push towards that direction myself.
the title is a bit clickbaty, it should be written as: where to use margins when building web components.
you are just saying that you have to place margin in the container of the component not inside it. that's it!
Anyways, I think the answer is "it depends" and there's no silver bullet when it comes to micro CSS details.
CSS is always controversial when it comes to how structure it and I don't think this type conversations are useful or add anything to front end. it's just a waste of time as the end result only matters.
we can argue for days to both sides on where to place margins and we will never find the "perfect" way.
I am a big believer front end developers will move to low code tools for CSS such as https://intab.io to style their CSS in the near future and focus more on the end result rather than waste time arguing on this micro details. take a way, focus on the end result rather than these trivial things!