Ask Lemmy
A Fediverse community for open-ended, thought provoking questions
Rules: (interactive)
1) Be nice and; have fun
Doxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them
2) All posts must end with a '?'
This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?
3) No spam
Please do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.
4) NSFW is okay, within reason
Just remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either !asklemmyafterdark@lemmy.world or !asklemmynsfw@lemmynsfw.com.
NSFW comments should be restricted to posts tagged [NSFW].
5) This is not a support community.
It is not a place for 'how do I?', type questions.
If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email info@lemmy.world. For other questions check our partnered communities list, or use the search function.
6) No US Politics.
Please don't post about current US Politics. If you need to do this, try !politicaldiscussion@lemmy.world or !askusa@discuss.online
Reminder: The terms of service apply here too.
Partnered Communities:
Logo design credit goes to: tubbadu
view the rest of the comments
I feel like I was there at the genesis of this one. Originally, people used tables for layout because there was nothing else. Dreamweaver and similar wysiwyg editors that code-o-phobes used those days produced table hellish markup that looked reasonable to people on screens with fixed resolutions, but was absolutely abysmal as far as legibility and maintenance.
Then, over time, people righteously hated that and called it an anti-pattern. The original people that wanted semantic layouts and championed CSS in the early days had nuance, but the kiddos learning from them did not. So they thought it was "tables bad!" and they rushed off to please their senior devs by putting tabular data into complicated bullshit elements that were already semantically correct as tables.
I think that's a small part of it, the lack of nuance from new coders, but the origins weren't so cut and dry, IMO. It was really how poorly things were supported by browsers. Tables became used for styling because they were the only way to achieve some layouts that would have any hope of calculating correctly in the browser. JavaScript became used for active elements because html/css originally couldn't do anything dynamic or responsive. Many things became divs simply because they were the only building block that didn't come saddled with tons of preconditions and assumptions. etc, etc, etc.
HTML5 and ECMA2015 are when it started to turn around. Browsers finally got their shit together and supported a proper, useful baseline set of features that could cover most use cases, and the resulting standardizations made a HUGE difference. If it stayed going the way it was pre-HTML5, I wouldn't be surprised if we'd be wrestling with some popular framework trying to wedge a new standard in next to HTML in the browsers... Heck, that probably would've happened anyways if HTML weren't just glorified XML (meaning it's already nearly infinitely extensible)!