3 ms·
> But, at this point, there is no abstraction gain from > <div class="floating_figure">...</div> > over floating_figure(...) There is no abstraction gain,
by rimantas 12y ago
> But, at this point, there is no abstraction gain from
> <div class="floating_figure">...</div>
> over floating_figure(...)
There is no abstraction gain, because you are using a presentational class name.
It should not be "floating_figure", "big_red_text" or anything of the kind.
What it could probably be is "feynman_diagram" or something simmilar describing what's so special about this particular element, not the looks or placement of it.
And then it is up to your CSS to decide should it be floated, fixed, or hidden altogateher.
- rbehrends 12y agoSame difference. s/floating_figure/feynman_diagram/, and nothing about the story changes.
- baddox 12y agoThe idea of semantic class names is reasonable, but even that ends up needing to be ridiculously contrived with things like "feynman-diagram-wrapper."
- pornel 12y agoThere's proposal for ::outer pseudo-element to eliminate all such wrappers.