Recent submissions

Comment · 1 month ago
Try turning off slide to type. It's under Settings > General > Keyboard.

I did it earlier this year. It seems to be much more accurate and confident with which key it thinks I want. I do occasionally miss the sliding but it's worth it overall.

Comment · 1 year ago
Yeah, we've had it for at least 30 years, probably longer
Comment · 1 year ago
It won't override global scope, it's just a hint the layout engine that your container's paint and/or size won't change, and thus it can optimise it's performance.

Wholly agree with your second point, it's something I see from a lot of junior devs. They just reach straight for flex/grid, and tbh I don't blame them. They are more predictable layout algorithms that are largely unshackled from legacy layout decisions.

Comment · 2 years ago
Depends - do you want screen readers to hear something? If so, add a `aria-label="heart"` or similar. If not, add `role="presentation"` to remove it from the accessibility tree altogether.

You might also want to change the element from a `header` to something else, like a `div` or a `span` or even a `figure` instead. Then put "potato.cheap is home of the... The "Cheap" Web" inside the `header` instead.

Comment · 3 years ago
That's absolutely not the case for the most part, depending on the bar and the time. Go out to a city centre on an evening, especially Friday or Saturday. Most bars and pubs will be busy, noisy, and definitely playing music.

There are absolutely quieter pubs available, but you need to know where to go.

Comment · 3 years ago
We have layers now: https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_...

I’d recommend this article on recent CSS developments: https://developer.chrome.com/blog/whats-new-css-ui-2023/

Be aware of the support of each of them, it’s not 100%, especially depending on your use case.

Comment · 3 years ago
You're mixing metaphors there! It might be lightweight but it's still a flavour.

It's still not part of the common browser API, so yes it's easy to add, but no, it's not vanilla.

Comment · 4 years ago
"stole a kiss" wtf is this minimising bullshit? According to the article, he forced himself on someone, grabbing them by the throat. They feared for their life.

According to the article, he also literally had sex with his partner while she was under the influence, without her consent.

Please don't minimise victims trauma.

Comment · 5 years ago
Comment · 5 years ago
He'd been a scientologist since the 60s IIRC.
Comment · 6 years ago
This has been my go-to placeholder site for the best part of a decade. Not because it necessarily works the best, but just because I always remember it.
Comment · 6 years ago
I think this is really nice and smart. I would suggest left-aligning the text in the edit/view mode for a few reasons:

1) It's a bit easier to read for longer text sources 2) It makes writing/reading JSON/YAML/other data sources much easier 3) lists are much easier to parse

Comment · 6 years ago
Comment · 7 years ago
Elm is lovely, and I'd definitely encourage people to take a look at it from an education point of view at the least. However, I think that's a disingenous comparison.

TypeScript is a superset of JavaScript, which means any JS dev already knows most of TypeScript. They're effectively just learning the type system and best practices on implementing it.

The syntax of Elm is extremely different, which would effectively require developers to learn an entirely new language. It's also a completely different proposition. It's a whole framework, which means complete buy-in on a project. I know there are some interop packages, but you would normally use it instead of React/Vue/Angular etc. This means it's only suitable for new projects.

It's a very nice framework (imo) but it's not a true comparison.

Comment · 7 years ago
I can only assume that you're trying to run before you can walk. Remember that you're just defining a set of layout rules. You're not giving the browser specific instructions to follow. It seems that there's the temptation to assume that CSS is easy and simple, because it's for the web and isn't a proper programming language.

That is clearly not true. CSS describes a complex set of interactions which evolved over many years. You'll have to refer to MDN, experiment in your browser dev tools, etc.

Start in small and isolated chunks. Open a codepen with just a couple of divs and work out how their layout interacts.

I firmly believe that you can write beautiful CSS. Your list of languages shows that you are clearly interested in learning, and in expressing your needs in varied ways.

As an aside, I would recommend having a design on paper/on screen to implement before starting to write your CSS. Until you become relatively fluent with it, I think CSS relatively counter-productive as a design tool. Thinking about the target result as a separate step from implementing that result is going to be a much better approach.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton