Readit News logoReadit News
purerandomness commented on UK drops demand for backdoor into Apple encryption   theverge.com/news/761240/... · Posted by u/iamdamian
catigula · 8 days ago
Stated above, not just em-dash, but the following:

> This isn't X, this is Y

This is ChatGPT's favorite rhetorical flourish without exception.

purerandomness · 8 days ago
ChatGPT wouldn't have set the apostrophe incorrectly in "it's customers".
purerandomness commented on PHP compile time generics: yay or nay?   thephp.foundation/blog/20... · Posted by u/moebrowne
rob74 · 16 days ago
So, PHP started off as a loosely typed language, then got types... and now they want to implement generics to have more loosely typed code? But as I understand it, types are still optional, so you can still use untyped variables for "generic" code? I'm probably missing something here, is it because of performance concerns? Or the edge case of absolutely wanting strongly typed PHP throughout (except for the part where they want generics)?
purerandomness · 16 days ago
Today, the vast majority of commercial PHP projects are developed enforcing the use of strong types by static analyzers like PHPStan in the CI pipeline, and having the strict_types declaration set.

As a community, we've seen enough untyped PHP spaghetti code in the early 2000s and never want to go back there.

purerandomness commented on PHP 8.5 adds pipe operator   thephp.foundation/blog/20... · Posted by u/lemper
wouldbecouldbe · 22 days ago
It’s really not needed, syntax sugar. With dots you do almost the same. Php doesn’t have chaining. Adding more and more complexity doesn’t make a language better.
purerandomness · 22 days ago
If your team prefers not to use this new optional feature, just enable a PHPStan rule in your CI/CD pipeline that prevents code like this getting merged.
purerandomness commented on Scientists shine a laser through a human head   spectrum.ieee.org/optical... · Posted by u/sohkamyung
1970-01-01 · 23 days ago
The 2nd photo is named exactly as it looks; This isn't a parody?

https://spectrum.ieee.org/media-library/a-3d-illustration-sh...

purerandomness · 23 days ago
It's just SEO.

It's very common to have a CMS feeding images to an LLM that extracts the contents and gives image files a meaningful file name and alt tag.

purerandomness commented on iPhone 16 cameras vs. traditional digital cameras   candid9.com/phone-camera/... · Posted by u/sergiotapia
purerandomness · a month ago
OkCupid (the original one, before they sold out) had a great article showing how your perceived attractiveness changes significantly, based on the camera you're using to take your profile pictures [1]

[1] "Don’t Be Ugly By Accident!": https://gwern.net/doc/psychology/okcupid/dontbeuglybyacciden... (mirror)

purerandomness commented on Sleep all comes down to the mitochondria   science.org/content/blog-... · Posted by u/A_D_E_P_T
skeezyboy · a month ago
i wonder if it relates to that chronic laziness disease, i cant remember what its called
purerandomness · a month ago
ME/CFS?
purerandomness commented on Sleep all comes down to the mitochondria   science.org/content/blog-... · Posted by u/A_D_E_P_T
bn-l · a month ago
Would a hyphen be correct here instead of the comma? Or do you start a new sentence?
purerandomness · a month ago
It's more about the 2 missing apostrophes and the 2 missing capital letters.
purerandomness commented on URL-Driven State in HTMX   lorenstew.art/blog/bookma... · Posted by u/lorenstewart
runeks · a month ago
> The example URL here, though, is still not (helpfully) bookmarkable because the contents of page 2 will change as new items are added.

Why is the content changing between refreshes not "(helpfully) bookmarkable"?

The HN front page (ie. "page 1") does that but it's a very useful bookmark.

purerandomness · a month ago
If you're bookmarking a directory, a list of things (e.g. the HN frontpage), you expect the content to change when opening the bookmark.

You bookmark a link to the directory so you don't forget the directory's entry URL.

The use case the author is talking about is a different one: You are configuring a complex item in a shop, and want to bookmark the URL so you can save it, recall it later, share this configuration with someone, or compare it with a different URL.

In this case, you also would expect little details to change (pricing, descriptions, photos) but the structure of the state should stay the same.

It's very frustrating when you share a link to a product detail page, only to discover that all your filters and configurations have been lost.

purerandomness commented on DaisyUI: Tailwind CSS Components   daisyui.com/... · Posted by u/a_bored_husky
PaulHoule · a month ago
I'd say otherwise, it's not circular at all, it's a clean design that uses Tailwind at a low level and builds a high level on top of it.
purerandomness · a month ago
Again, that's just Bootstrap with extra steps.
purerandomness commented on Why you should choose HTMX for your next web-based side project (2024)   hamy.xyz/blog/2024-02_htm... · Posted by u/kugurerdem
tekkk · a month ago
I got a wave of shudder reading the acronym "HAM stack". Yugh. MEAN, MERN, RERN–once hyped up hot air which now sounds so dated and hackneyed. It's cool to be excited about tech but if your main selling point is building "faster and cheaper", I don't know if picking up a minimalistic framework you know nothing about is faster than just re-using your trusty boilerplate.

Be it React or Svelte or whatever. With serverless backend if you want to keep costs down. Although a server from Hetzner isn't that expensive and you can host multiple APIs there.

purerandomness · a month ago
> I don't know if picking up a minimalistic framework you know nothing about is faster

That's the whole point of HTMX: Going back to what works: trusty old HTML attributes, but giving them intuitive interactions.

Instead of learning the microframework du jour, you just add some attributes into your HTML templates, and get your desired result.

u/purerandomness

KarmaCake day1583July 14, 2013View Original