Readit News logoReadit News
tisc commented on Replacing JavaScript with Just HTML   htmhell.dev/adventcalenda... · Posted by u/soheilpro
suprjami · 3 months ago
Gimme a dark/light mode switch. CSS is allowed.
tisc · 3 months ago
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
tisc commented on Customizable HTML Select   developer.chrome.com/blog... · Posted by u/dsego
prmph · a year ago
So after decades of developer pain, all we're getting is a better select?

Where is the native HTML datagrid (that supports sorting, filtering, paging, downloading, row/column freezing, column resizing and re-ordering)?

Where are the native HTML Tabs control? Image selector, resizer/cropper, and uploader? Toggle button? etc.

We can't even get text input to respect autocomplete directives properly. On the major browsers, giving your user id and password inputs nonsensical names seems to be required, along with numerous other hacks, to ensure that when a user is registering, the form is not auto-completed with saved passwords.

HTML is really holding us back right now.

tisc · a year ago
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...
tisc commented on OpenAI says it has evidence DeepSeek used its model to train competitor   ft.com/content/a0dfedd1-5... · Posted by u/timsuchanek
m348e912 · a year ago
> "DeepSeek trained on our outputs"

I'm wondering how Deepseek could have made 100s of millions of training queries to OpenAI and not one person at OpenAI caught on.

tisc · a year ago
Maybe they use AI to monitor traffic, but it is still learning :)
tisc commented on Dependency management fatigue, or why I ditched React for Go+HTMX+Templ   blog.erodriguez.de/depend... · Posted by u/todsacerdoti
DangitBobby · a year ago
Why did you upgrade?
tisc · a year ago
Because everytime I perform NPM operations I'm slapped in the face with `This version is no longer supported.`.
tisc commented on Dependency management fatigue, or why I ditched React for Go+HTMX+Templ   blog.erodriguez.de/depend... · Posted by u/todsacerdoti
ggregoire · a year ago
> The react community has 10 python v2->v3 situation in any given year.

That is not my experience. Maybe you could share with us some examples?

My most important dependencies, after React itself and TypeScript, are react-router (which released v6 in 2021) and react-query (which released v5 in 2023). I don't remember other major breaking changes in recent years, at least with the dependencies I'm using.

tisc · a year ago
Eslint version 9 has been causing some headaches, as it broke all existing plugins.
tisc commented on Everyone has JavaScript, right?   kryogenix.org/code/browse... · Posted by u/tosh
tisc · 2 years ago
> 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.

tisc commented on Serverless Horrors   serverlesshorrors.com/... · Posted by u/franciscop
tisc · 2 years ago
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 :)
tisc commented on Tailwind CSS marketing and misinformation engine   nuejs.org/blog/tailwind-m... · Posted by u/todsacerdoti
pcthrowaway · 2 years ago
And to do this with a component framework and tailwind you give your <Button> component some props that customize it.

With CSS you also have to worry about the cascade way too much, so while you are doing much of the same work with Tailwind, you get the nice benefit of inlining the styles which will actually apply to your component. Yes, you still have to think about organization and how to make different styles apply to variants of the main class, but it's so much easier to not also have to worry about how cascading rules might apply and constantly check different rules for specificity and overrides

tisc · 2 years ago
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.

tisc commented on ChatGPT does Advent of Code 2023   themotte.org/post/797/cha... · Posted by u/luu
tisc · 2 years ago
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.
tisc commented on Google Introduces Passkey Authentication   security.googleblog.com/2... · Posted by u/rbinv
theaiquestion · 3 years ago
> Yes, but if you use the “Login with Google” function on many 3rd party websites, then what?

AFAIK this part has nothing to do with passkey's and is an issue with OAUTH, and has been an issue for years.

tisc · 3 years ago
> […] 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.

u/tisc

KarmaCake day54November 21, 2019View Original