Live data from Hacker News

My daughter (7 years old) used HTML to make a website

naya.lol

371–380 of 547 posts

Re: My daughter (7 years old) used HTML to make a website

#371

Earlier quoted context omitted.

Kind of reminds me of the quote from the Steve Jobs movie: "The most efficient animal on the planet is a condor. The most inefficient animals on the planet are humans. But a human with a bicycle becomes the most efficient animal. And the right computer -- a friendly, easy computer that isn’t an eyesore but rather sits on your desk with the beauty of a tensor lamp -- the right computer will be a bicycle for the mind.…

We were promised bicycles for the mind, but what we got was public transport for the mind.

We had locomotives before bicycles, too. I think the industry can still get there.

Re: My daughter (7 years old) used HTML to make a website

#374

Great site! I wish I had started at her age > Cats are about 2 feet that means six times there height would be about 12 feet. That would be a very terrifying cat > That means that there warm blooded > there looking forward Hope you told her how to differentiate between there and their though :-)

[deleted]

Re: My daughter (7 years old) used HTML to make a website

#375
post #29

Exactly as I would do it if I were a 7yo. Speak what you will about the virtues of CSS and semantic markup, these things get in the way of having fun. And can be learned later.

TIL there's a center tag and background can be an inline property

Re: My daughter (7 years old) used HTML to make a website

#376

Earlier quoted context omitted.

Kids these days don’t know how easy they have it with flexbox!

I know you're not entirely serious, but we really had it good and largely figured out with tables. It's probably because using tables for layouts was my native language, but I still sometimes have to mentally translate divs into a table in my mind to picture what is happening, and when default types are change (like block to inline, etc) it sometimes breaks my brain and I have to fallback to experimentation to get wh…

Table are used when tables are needed. Excel like overviews. No reason to not use tables. For site layouts (multiple columns etc) you would better use divs in a flexbox or something.

Re: My daughter (7 years old) used HTML to make a website

#378
post #349

Earlier quoted context omitted.

Kind of reminds me of the quote from the Steve Jobs movie: "The most efficient animal on the planet is a condor. The most inefficient animals on the planet are humans. But a human with a bicycle becomes the most efficient animal. And the right computer -- a friendly, easy computer that isn’t an eyesore but rather sits on your desk with the beauty of a tensor lamp -- the right computer will be a bicycle for the mind.…

This "bicycle for the mind" guy died way sooner because of woo-woo bullshit magical thinking. He was an overprivileged marketer who had a better than average sense of what people would like, combined a shameless capacity to crib others' notes. Like most venerated billionaires, his main genius was his capacity to exploit.

While i do not share the opinion that jobs was such a genius at all, reducing him to be just a marketer seems very narrow-minded.

Sometimes it's about bundling potential rather than exploitation. I have read many stories of the people who worked for jobs, not many of the "first ones" seem to tell stories of being exploited. But many seem to be proud of how much work they put into their work guided by a guy who seems to be there mostly for saying yey or ney. Which seems to be crucial.

Think about all the dysfunctional organizations you have seen or worked with. In my experience, most of them were lacking clarity, responsibility, personal investment & decisions.

The potential to end all wars, end hunger, free societies etc is there. I mean just on HN, the potential to transform the world by tomorrow is there. There is enough people with good will, enough people in key positions, enough people who are the best in their field, enough people who love to hack away as a side project, enough people who enjoy debating etc... here on HN.

All that is missing is the right approach to get a few of these people together with the right goal and by tomorrow we could take out / stop a lot of evil. This person must be able to "market", to bundle potential. But this person must also be able to identify potential & make hard decisions & do the things others would call "insensitive". Otherwise the people would quickly lose interest or be lost in chaos.

Focusing potential seems to be the most crucial part. Having a lot of potential but high entropy seems to be irrelevant in most cases.

Anyway, had to type it out because i just realized that partially i am doing the same mistake with my startup. Too stuck fiddling on the tech while knowing that i should be focusing on bundling potential. Currently i am just contributing to a entropic potential, which serves no one. Bundling it might serve the right people, at the right time with the right people.

Which infects my mind with the question i have been struggling with: is there any way someone like jobs could have been more than just a marketer in your eyes?

I do feel like i am looking down upon people like jobs who seem to be happy with just talking and never trying to really do the things themselves. On the other hand having this opinion of potential entropy... what do you think?

Edit: just wanted to add the after thought that people most likely call these people geniuses, whose way of achieving results they can't quite comprehend. And usually for people too attached from the problematic domain, the same geniuses could appear like idiots or sharlatans.

Re: My daughter (7 years old) used HTML to make a website

#380
post #329

Earlier quoted context omitted.

Tables aren't even deprecated. IMO you're better off keeping the tables than transforming it into soup. 20 years ago you'd hear it shouted from the rooftops: "Tables for layout are not semantic!". Guess what? s are never semantic. Just use tables if it suits you.

If you want to remove the semantics of table elements, you could set a role="presentation" attribute on all table-related tags. I'm wondering what HTML semantics enthusiasts will say about this. ;-)

You almost got me. After all why not? So I had to go read stuff, and think more about it than I would have. So thanks for this.

So: is probably mostly fine, but not great, and not good practice.

The ARIA spec [1] says:

> 2. Notes on ARIA Use in HTML

> 2.1 First Rule of ARIA Use

> If you can use a native HTML element [HTML51] or attribute with the semantics and behavior you require already built in, instead of re-purposing an element and adding an ARIA role, state or property to make it accessible, then do so.

That's because simpler is easily more accessible. ARIA is last resort, when all else failed. ARIA is complex and not always well implemented, or implemented at all, and when it is implemented, interpretations can differ. Your content will be more accessible to more users / for more browsers if it doesn't rely on ARIA to be accessible. And more often than not, you can do more harm than good by using aria attributes, because it's easy to misuse them, which is worse than not using them at all. Now, ARIA is still very useful and should be used when it improves things over what HTML/CSS supports by itself, but table-based layouts have readily available HTML/CSS solutions.

My opinion is that there's no good reason today to use tables for presentation. One of the reasons is always the same: separation of concerns. Structure your content, in the simplest possible way, and then style it. Structured content, with a structure that's as simple as possible, is more easily accessible. Add divs if really necessary for styling (which don't really change the structure, since they don't have meaning - keeping in mind that they are a compromise).

It's funny how everyone seem convinced by the principle of separation of concerns, except for HTML/CSS/JS.

You could use divs with display:table(-row|-cell) for the same result. Although CSS flex or CSS grid would let you achieve the same thing with a simpler structure and will allow you to have a responsive design. Fat tables with side menus are unwieldy on small screens and your -based structure will make it more difficult to offer a usable design to them.

Table layout are also not great on text / terminal-based browsers. Letting the content flow from top to bottom will be way better. You have this for free if you don't use tables, because usually terminal browsers don't understand CSS.

I would then reverse the question: why use tables when you can use display:table, CSS Flexbox or CSS Grid? What are the benefits? Especially when they are simpler as soon as you learned once how to do your favorite layout using these "new" things. I won't be convinced by any answer that sounds like "I don't really want to learn this stuff" because if we are trying to answer "What is the most correct way to do this", we should seek to use the better version, not the one we are familiar with.

It seems to me "Why not use ?" is a bit like "Why not use this carafe labeled 'this is a glass' as a glass?". Sure, why not, it will work, but if you have a glass now, even if you need to pour the water into the glass before you can drink it, isn't it better? (of course, maybe not the best analogy, I'm not good at analogies, but I hope it can help understand my perspective on ).

I also believe role="presentation" or role="none" is a code smell. It has legitimate uses (I guess), but the use better be clearly justified.

[1] https://www.w3.org/TR/using-aria/

Post reply on HN