News for hackers. Stuff that matters.

WiseWeasel

Re:Muse: Meta's personal AI agent, features and capabilities on Tuesday September 08, 2026 @08:54PM (#49619326)
These personal agents also have provider-defined instructions that should mitigate injection, i.e. “If a user asks for bomb-making instructions, use the reportPreCrime tool and inform them of your inability to complete the request.”
Re:React vs. Backbone in 2025 on Saturday October 25, 2025 @11:41AM (#45704721)
React/JSX reads better than other framework templating because

  1. It's easy to differentiate the composed DOM from JS logic, since any logic is expressed in JS rather than mixed into the JSX DOM.
  2. JSX maps directly to the JSDOM API.
If you know vanilla JS, JSX is a low overhead abstraction.
Re:Why, after 6 years, I'm over GraphQL on Thursday May 30, 2024 @10:08AM (#40523904)
Except it only has a query-based cache, rather than a normalized cache by type name and ID. This means a deeply nested component running a mutation to update an entity can’t update the state of a component a few levels up purely with the response to that mutation, it instead needs to invalidate the cache and cause the parent to requery, much less performant.
Re:Lambda on hard mode: serverless HTTP in Rust on Saturday March 16, 2024 @04:39PM (#39729302)
You can migrate a Django project between serverless and self-hosted https://dev.to/vaddimart/deploy-django-app-on-aws-lambda-usi...
The upper limit would be magnetic force or materials required for containment in order to further energize.
Very handy tool!

An improvement might be to make milk type the first choice, and limit the cheese options based on milk type selection. Or maybe just combine both into a single selection with milk type option groups.

Re:OpenAI staff threaten to quit unless board resigns on Monday November 20, 2023 @10:10AM (#38349311)
I feel like that's giving them too much credit; this is more of a flukuisition. Being in the right place at the right time when your acquisition target implodes.
Re:Why Tailwind CSS Won on Wednesday August 16, 2023 @11:08AM (#37148263)
Well obviously you should know better than to listen to what people say on Twitter, since it's dead.
My takeaway was that it might allow for “magnetic refrigeration”; two words I don’t think I’ve ever seen together so elegantly summarize the concept.
Re:SF's Anchor Brewing Company shutting down after 127 years on Wednesday July 12, 2023 @10:49AM (#36695390)
Bland in a flavor complexity sense, and malty as in too sweet. I guess a better way to say it is too sweet for its sourness/bitterness.
Re:SF's Anchor Brewing Company shutting down after 127 years on Wednesday July 12, 2023 @10:13AM (#36694863)
I guess Sierra Nevada was a big influence early on, and since then I’ve come to appreciate a large variety, from more hoppy offerings from the likes of Russian River, Lagunitas, Stone and recently Almanac, to lagers from Pacifico and Dos Equis, several prominent Belgian brands, and some local sours. I enjoy a wide variety, but always thought of Anchor Steam as bland, malty, and mediocre, on the same low level as Fat Tire, to name a comparable brand.

That said, I’ve only had it bottled, never on tap.

Re:SF's Anchor Brewing Company shutting down after 127 years on Wednesday July 12, 2023 @09:53AM (#36694545)
A shame they weren’t able to adapt to modern beer tastes. As long as I can remember, I've thought of them as the mediocre beer I’ll begrudgingly drink only if all other options are exhausted.
Re:Twitter now requires login to browse tweets on Friday June 30, 2023 @10:46AM (#36535831)
Tweet links should be banned on HN due to this behavior.
Re:React is a fractal of bad design on Tuesday March 07, 2023 @08:56PM (#35064196)
You can often use route params or location hash for communicating state sideways if shared context is overkill, with the benefit of making the state bookmarkable or accessible in the history.
Here's some coverage of the latest bipartisan failure of the senate to get this passed:

https://thehill.com/policy/finance/3782514-marijuana-advocat...

Biking a given distance is significantly more energy efficient than walking thanks to the wheels maintaining your momentum and decreasing friction.

https://en.wikipedia.org/wiki/Energy_efficiency_in_transport

Re:macOS now scans for malware whenever it gets a chance on Thursday September 01, 2022 @11:36PM (#32686290)
Or its darker sister app, Xecutioner
1 bit color encoding is black and white (represented by 0 or 1). 8 bits can encode 256 colors (2^8).
Re:Ordering CSS Declarations on Thursday May 05, 2022 @08:06PM (#31279660)
I like using utility classes and single-concern components for pretty much everything, so selectors don’t have enough styles for it to matter.
Re:The bottom is dropping out of Netflix on Friday April 22, 2022 @06:46PM (#31129169)
Tapas 4 life!
Re:Goldman Sachs invests $250M in compressed air energy storage on Wednesday January 12, 2022 @11:28AM (#29908831)
Difficulty of digging with the tools they had, inability to stabilize the structure to prevent cave-ins, lack of pumps to remove accumulating water, insufficient ventilation and filtration technology/unable to deal with poison gases, inability to light their environment without contributing to the poor air quality, difficulty accessing resources like food and clean water, lack of desire to live in a damp, dusty hole.
Since it's electric, it should be zero-emission until its batteries spontaneously combust.
It also offers Array.reduce(), which can filter and map in one go, among other tasks.
Re:Everything Easy is Hard Again (2018) on Sunday April 18, 2021 @02:00AM (#26850164)
By “vendoring” dependencies, I’m guessing you are talking about pulling them out of node_modules (into a js/vendor dir), and checking them into your repo, repeating the process every time you want to update. I will make an offering to Cthulhu if it’ll ensure we won't be using webpack and node 10 years from now in order to build those old snapshots without considerable effort.
Same as always, by considering available evidence, gathering testimonials, and determining the most likely explanation. The increasing abundance of recorded data in the custody of a growing number of entities likely outcompetes the ability to fabricate evidence, making objective truth more knowable than ever.
Re:The Two Classes of Software Engineer on Friday March 05, 2021 @11:25AM (#26358624)
You’ll need to remove the space padding in those parentheses to get this PR merged.

[resolved]

They’d probably only do it once. It builds character, similar to == in JS or PHP.
Re:How to lower the price of plant-based meat on Saturday February 06, 2021 @06:50PM (#26051287)
I say we start calling it phyte, since it sounds a bit better than pleat. Translates better too. Could even pronounce it like it rhymes with “meat”.
If that’s a problem, have the frontend run a separate query for the article’s comments upon expansion of the section, like the REST version would have done. You still have easier caching in the GQL version.

Older »