News for hackers. Stuff that matters.

tisc

It does not _need_ it, that’s the thing. It has become a custom to import a dependency for a lot of things. Especially for JavaScript.
Re:Replacing JavaScript with Just HTML on Sunday December 28, 2025 @02:47AM (#46409255)
Why would you build a switch instead of relying on the user’s system settings? The only reason I can imagine is that your dark/light mode is not usable/readable so it forces the user to switch
Re:Customizable HTML Select on Thursday February 20, 2025 @03:00PM (#43119411)
Imo it’s not html, it’s browser vendors. There’s a decent specification for the `autocomplete` attribute: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes...
Maybe they use AI to monitor traffic, but it is still learning :)
Because everytime I perform NPM operations I'm slapped in the face with `This version is no longer supported.`.
Eslint version 9 has been causing some headaches, as it broke all existing plugins.
Re:Everyone Has JavaScript, Right? on Sunday April 21, 2024 @06:47AM (#40104619)
> Have they switched of JavaScript? Because people still do.

As an experiment I tend to disable JavaScript periodically. It is amazing how fast and responsive applications become. The amount of cruft that is downloaded is insane! Typically my experiments end after a month or so, because a lot of website don’t work _at all_ with JavaScript disabled.

Re:Serverless Horrors on Wednesday February 28, 2024 @02:12AM (#39534965)
Costing money is one thing, but not throttling a queue consuming serverless function and effectively DDOSsing yourself is the true horror story working with serverless :)
Re:Tailwind CSS marketing and misinformation engine on Monday February 19, 2024 @01:36AM (#39426773)
I am curious what you - and with you more proponents of Tailwind in this thread - mean with “component” and “component framework”? I’m also Zen-garden age and with my very limited React experience this does sound like you are meaning a component framework like React, correct?

If so; what would be the motivation for using JavaScript to style a button? Call me old - my coworkers do -, but that feels counterintuitive.

Please note that I haven’t really formed an opinion on Tailwind yet. This is an honest question.

Re:ChatGPT vs. Advent of Code on Monday January 15, 2024 @06:17AM (#38999570)
What strikes me about ChatGPT is the blatantly wrong answers it can give. I asked ChatGPT to solve a augmented matrix using gaussian elimination, and it failed in this straightforward task spectacularly.
Re:Google Introduces Passkey Authentication on Friday May 05, 2023 @02:01AM (#35825696)
> […] and is an issue with OAUTH

This issue is not caused by OAuth, but by offering authentication via a third party. If you allow visitors to authenticate via a third party, you implicitly trust that third party. If that third party decides to revoke your account, then the logical consequence is that you can no longer authenticate. There’s no solution for this problem imo, other than not allowing authentication via a third party.

It is the same as airlines; They want you to identify using a passport. If your country decides to revoke your passport, you cannot check-in. That’s not an issue, but a logical consequence of choices made.

I have been wondering about this, whether this is not simply a shift of the problem? Let’s assume we get into a world where we pay for open source. Who would we pay? The maintainer I guess. What about the contributors? When the maintainer(s) receive financial rewarding for the code, will contributors receive a part of this as well? And how would that be divided?
Re:I still love PHP and JavaScript on Wednesday August 03, 2022 @04:07AM (#32328930)
I've used Python, C#, Java, JavaScript and PHP, and in my experience Python is the most unpredictable of these languages. Just to name a few: - mutable default arguments - late binding closures - typings that are purely documentation instead of being enforced

Labeling these things as "gotchas" doesn't make them predictable imo.

I like to combine those:

    const RESEND_DELAY_MS = ONE_HOUR_IN_MS;
Having the unit in the name saved me more than once and having non-contextual constants for sizes increases readability imo.