1,690 karma · joined Apr 1, 2013 (13y ago) · 1,001 submissions
comment 1y ago · link · parent
But this article isn't an example of Chrome-only CSS, this is about a change to the standard select element to make it customizeable in a standard way. It's not fully frozen yet, so they're seeking feedback and still working on it, so if you have input to give about this feature I think they'd welcome it. This blog post was about Chrome introducing experimental support for it, likely so developers can experiment with it and provide more valuable feedback towards its standardization!
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
We use this to great effect exploring and sifting through data in web browsers, where many different pieces of software may be storing various things globally, but you don't always know where to look.
(The advantage to this approach is that both XML and XPath are specified standards)
comment 1y ago · link · parent
Here's what the HTML spec[1] says about data-* attributes:
Custom data attributes are intended to store custom data, state, annotations, and similar, private to the page or application, for which there are no more appropriate attributes or elements.
Doesn't sound like this would be an abuse of even their specified intended purpose, sounds totally within the realm of why the feature exists in the first place: author-defined extensibility within the language.1: https://html.spec.whatwg.org/multipage/dom.html#embedding-cu...
comment 1y ago · link · parent
Authors are free to either create any data-* attributes they wish for any purpose, so long as the custom attributes are prefixed with "data-".
Authors are also free to create any (valid) HTML custom element, and to invent custom attributes for those elements.
But this appears to require authors to write invalid HTML.
comment 1y ago · link · parent
comment 2y ago · link · parent
And the second type of AI fatigue isn't even about the AI technology itself, but it seems like at the same time that people adopt AI in their workflows they often seem to raise their tolerance for made up nonsense. That's not really a problem with AI because we ought to maintain quality standards no matter what tools we use, but so many people were willing to forfeit quality for volume and convenience at the same time as using AI.
comment 2y ago · link · parent
comment 2y ago · link · parent
Let this be a lesson to all of us - if you rely on a service provided by another organization external to your organization, get an SLA! Get a contract that guarantees you the provision of services you depend on.
comment 2y ago · link · parent
- Node is still around and still used, so there's less room for Deno unless Node decreases
- Deno fills a slightly different position than Node, in that it's a TypeScript engine and is more aligned with modern JavaScript how it runs in browsers, allowing you to share more code between browsers and Deno than you can between browsers and Node
- Deno users are probably almost all also Node users, while not all Node users may be Deno users
- Some of the people who might be interested in Deno compared to Node may also be interested in other runtimes like Bun and QuickJS
I don't think the size or popularity of Deno are a problem and I think more and more people will enjoy it in the future as time goes on.
comment 2y ago · link · parent
comment 2y ago · link · parent
Then something changed, and now I am sensitive to it like a normal person. It does wake me up after a sip or two I can feel it, and I can easily have 'too much' if I have 2-3 cups in too short of a timespan, so I've had to learn to slow down.
Having said all of this, my personal 'last call' is 6pm, with the idea that I will be able to sleep at 12-1am. But if I drink coffee after 6pm I might be delaying that bedtime a little.
It will be interesting to learn more about the effects of how much, and how long. Should I be tapering off hours before 'last call'? What is the best 'last call' time in the day and should it be earlier? I'll have to track some of this and figure this out!
comment 2y ago · link · parent
There's nothing wrong with choosing PHP, and also nothing wrong with other alternatives too.
comment 2y ago · link · parent
"Deep in the browser’s privacy settings, Firefox introduced an experimental “privacy-preserving ad measurement” toggle, enabling it by default without explanation or disclosure."
This isn't even the first time Firefox has collaborated with an ad or marketing company, rolled out a feature behind a checkbox that users didn't know about, turned it on by default. See the case of the 'Alternate Reality Game' ad campaign for Mr Robot a few years ago: https://news.ycombinator.com/item?id=15940144I stopped hearing when Mozilla talks about privacy or caring about users. Most companies that treat their users like Mozilla just do it, but it actually adds insult to injury that Mozilla tells you they care, tells you you're important while they do the same things. It's gaslighting or manipulation or lying or something but I'm not going to listen to them any more.
comment 2y ago · link · parent
comment 2y ago · link · parent
Note: Because CSS gives considerable power to the "class" attribute, authors could conceivably design their own "document language" based on elements with almost no associated presentation (such as div and span in HTML) and assigning style information through the "class" attribute. Authors should avoid this practice since the structural elements of a document language often have recognized and accepted meanings and author-defined classes may not.
https://www.w3.org/TR/selectors-4/#example-f9c08b5b