skysight-inc/HackerNews huggingface dataset:
This is exactly what I'm doing with my personal "framework" I use for client contracts. It's just Web Components with a handy class based wrapper. I call it Template, since it's based off <template> tags.

It's a joy to work in, feels "frameworky" but it's just web standards with <100 lines of convenience JS wrapped around it. There is no magic beyond what the browser provides - I like it that way.

https://github.com/retrohacker/template/

It's "open source" as a reference. Just using it for myself. There aren't many docs beyond notes to myself. But the actual framework is a 90LoC JavaScript file that is an easy read.

You're welcome to kick the tires. If you like it I'd entertain PRs and stuff but it's such a small library forking is probably entirely reasonable to make your own flavor too.

The general idea is you extend the Template base class and call "super" with the id of the <template> that will get bound to the ShadowDOM when the class is mounted. Then you call instance.mount and pass a dom node to mount it into the DOM. For child nodes, you use `this.fragment.querySelector` to select them from the <template> you mounted. It supports garbage collection by tracking children, so when you "unmount" it recursively unmounts all child instances as well. Finally it has an event emitter implementation, so changes/actions/events bubble up the DOM while state can push down through the DOM. Keeps things clean.

I recently added state methods since I was duplicating state management everywhere. Now the base template class has a `setState` that will emit a single `change` event for all changes in the current "tick" of the browser eval loop.

Cheers and happy hacking!
You're not wrong. It's horrible. Want to hear something even more funny?

Twilio is forcing Tollfree Number registation and their current timeline is 6 weeks to approve. Well a week or 2 ago they decided that they wanted more data than what was currently submitted. So everyone is currently being denied and having to resubmit their registrations.

10DLC / Local numbers is madness in and of itself too. Forcing businesses to pay quarterly fees so these poor ol' carriers can have more recurring rev.
I can't help but think it's funny that scammers may have their own do-not-call list.
Really their policy on open source programming while working there is one of the main reasons I have never considered applying there.
I disagree. Reddit is great if you want to read one of the 6 accepted opinions on a given subreddit. For anything else, it's the downvote arrow or subreddit permaban.
You are correct. We're used to thinking of "digital" as implying "electronic", but that's only because our world contains huge numbers of digital electronic systems.
Ha, beat me to it.
How does the verbosity in C# compare to Java's? And are big C# codebases littered with annotations and "dependency inversion" Java Spring boilerplate-y crap?

I ask because I have never delved into C# only heard it's Microsoft's Java. And I am no fan of the original Java at all so C# gives me pause.
By 2030, and only applies to heating.

I hope by then, we begin to have efficient home-energy storage solutions, for the purposes of outages.
There are some you can’t use anymore, like blink.
> seems like a design choice intended to infantilize engineers and shelter them from reality.

The entire front-end framework landscape is like this. It's all designed to appeal to the kind of "engineer" that just wants to copy paste code and have it work like magic without ever thinking about what's actually going on.
Your gas stove isn't a heating appliance and therefore is probably exempt.

"In a vote held late Wednesday, the board of directors of the Bay Area Air Quality Management District (BAAQMD) adopted rules that will require new water heaters and furnaces to have zero emissions of nitrogen oxides, or NOx."
> Is that true?

Plants use caffeine to kill bugs.

CGP Grey video on the matter: https://www.youtube.com/watch?v=OTVE5iPMKLg&t=69s
Farming equipment is quite expensive and typically what is used in a particular region depends on the dealer network. And the dealer network what gives John Deere the power to play these dirty games.
They were so blinded by giant dollar/Euro signs when insisting that we take loads of those ~20/month licenses that included a lot of things that are anti-features to most enterprises (we need to prevent people from pulling/pushing to Docker Hub!) but left out things that would make it less miserable (SSO/SAML), that they couldn't see that absolutely no one was going to put five figures on their corporate card each month.

I see that they now have those things, but it would have been very clever to have asked a few potential customers about these things ahead of time, and made sure they had them as soon as they stuck their hands out... or had a few ex-corporate types around to run this all by before telling us that we will be buying Docker licenses within 120 days for everyone who happens to have Docker Desktop installed. At least they were savvy enough to realize that large companies couldn't have begun to cope with much less notice, but as it was, the rough start with a looming deadline was enough motivation to get us trying alternatives right away.
“Closed to truth” is actually the worst property of LLM models. Because it hard for human to detect if it is wrong or not.
That is true, but GPT-4 wrote:

> The second logician hears the first one's answer and concludes that the first logician must want a drink, because if he didn't, he would have said "no"

> The third logician hears both answers and realizes that since neither of the first two said "no," they both must want a drink.

IOW, when asked the puzzle with "anyone", it repeated the explanation for "all", which seems to support the hypothesis that even GPT-4 is still just a "stochastic parrot" repeating what it sees and unable to reason about slight variations.
OpenAI lowers the messaging rate of ChatGPT4 to 50 messages every 4 hours
This is how it was before you WFH, so the argument was that cost is assumed anyway. This little WFH break was just some bonus money you free'd up. I don't agree with WFO mandates — they're dumb. WFH or bust.
Anyone else find jq really hard to use? I found the syntax/interface bewildering at times. Although not as bad as awk.
As the answer would seem to be 'no' (crawlers can ignore robots.txt rules), I'm wondering if GPT is going to usher in an era where new content is simply not made available to view/crawl on the web. E.g. Want to know all the cool events happening this weekend in NYC? Ask our vertical gpt-chat site to find out.
Here are some of my favorite features:

- structure the content around conversations, so a thread can be easily put to rest picked up later while keeping context, while a different thread can be picked up in the meantime

- tag conversations, e.g. like google mails

- involve multiple AI engines in one conversation, in case the chatbot has different engines available

- be device agnostic, so I can switch a conversation e.g. from laptop to phone and back

- involve other humans in a conversation
This is HN so if you’re claiming “dramatically” let’s get some proof.
Monetizing what we took for granted as available for free has really rubbed everyone the wrong way. I've noticed teams are much less likely to request paid Docker Desktop, especially since there are perfectly suitable free alternatives nowadays. We all use either native docker engine on Windows + WSL2, or the MIT licensed Colima on Mac. Honestly, Docker Desktop was always a fairly heavyweight and cumbersome app with a very high opinion of itself.
Yeah at one of my old jobs in IT, Microsoft would perform software license audits just after a new release of Office. They would find that we were in deficit and then force us to buy licenses but the only licenses we could buy were the new versions of Office. Of course then we would have to upgrade all the other ones that had the licenses. This happens every few years. Obviously it was our fault for not doing better license allocation but I feel like Microsoft knew this is common and took advantage of it.
It was the HL-3170CDW, bought it new on Amazon. It’s discontinued now. Looks like HL-L3230CDW might be the replacement for it for about $100 more than I paid.
Interesting, I had an opposite experience. I started out using React when using class based components was a way to go then stopped for quite some time. Years ago I had to use React for something and decided to use the new approach with hooks and it was such a painful experience - it was harder to learn and use, also I introduced many ridiculous rendering bugs. I still feel that component based approach was somewhat easier and more straightforward to get into even if more verbose.
Its like 2 weeks since I had to grasp react, fluentui, react hook forms, webpack and a little more when I started using modules and even more when I used typescript.

React clicked really fast, documentation new and old, articles helped get on track really fast.

Wiring that all together and taming CRA (Create-react-app) with react-app-rewired to add stuff to webpack, like adding libraries to behave like modules that are NOT modules, packing all with scripts into single html, understanding where are boundaries between fluentui and react (both new to me), setting up monorepo because I separate reusable components from app itself and libs, applying css which I am bad at and stuff like that took more time... complexity just explodes, but less "mental effort" overall achieved by having streamlined build, reusable stuff etc.

Otherwise I feel that building app with react takes a lot of "mental effort" away, because you develop a component in isolation which feels simple and when you use that component you don't think about implementation details - it is nicely abstracted away and things just work.

Ah, yes, and I'm lucky I got the signal that functional components are way to go and the only place I had to use a small class component when I want to have a component variant for existing class based component from FluentUi where generic types are important and used within `onRenderItem` and various methods:

> class LookupBaseInternal extends BasePicker<ILookupResultProps, ILookupPropsInternal> {}
I was just using bing translate last night, and it was literally making up english words that do not exist - I tried to google for them to see if it was just some archaic word, and it was complete fabrication. So I dunno how many years are left before we all trust machine translation unflinchingly, but I agree today's not the day.
Inapplicable in my case.

First, the state's statute is extremely clearly worded. The amount of judicial activism required for me not to win some substantial monetary damages -- at least a multiple of garden leave -- would go far beyond taking a pencil to the contract; it would require substantially rewriting plainly worded statute itself. That's not a blue pencil; it's a sledgehammer to the constitution.

Second, I'm in an "equitably" state. A core claim of the counter-suit would be that I'm been deprived of a low-8-figure compensation package due to litigation. Lawsuits take years. No blue pencil can "reset" the contract to an equitable state without first evaluating that counter-claim. That's the point of the counter-suit, btw. I don't need the fucking money.

Anyways, given the composition of our judiciary, I think all of my previous and existing employers lack the balls to risk the precedent we'd be working to establish. Especially since, in order to establish that precedent, I'd settle for a Pyrrhic victory. (I have shitloads of cash, live a monk's life, and will burn the world down to kill non-competes.
Corporations are hyper-rational sociopaths, and if you're going to work for one you need to play the game theory accordingly.)

That said...

1. IANAL.

2. I have a lawyer but my lawyer is not your lawyer.

3. Get a lawyer to review anything you sign, before signing.
Some of the responses I've had so far to this are remarkable. Kind of scary.
Cheers, kudos to you for writing long lasting software.

Edit: Hey another Arizona hacker! Right on!
Sure, but it acts as if (and should have) the ability of someone unreasonably good at pub trivia and jeopardy. Its not just questions deep in the weeds about specific companies and product lines where it falls flat. I've seen the same error mode in large city transit questions. Ask it which trains go to a particular station, it will list more lines than actually do and also forget a few. Ask it to list which stations one of those services stops at, it will not have the original station you asked about in that services listing. Forget knowledge, it doesn't even have consistency.

It seems to me that it has a problem with questions about incidence structures, scenarios where objects of type X are just lists of incident objects from set Y, and objects from set Y are just lists of incident objects from set X. A station is just a list of all the services which go there, a service is just a list of all the stations it goes to. A product line is just a list of products, each product is part of some product lines. A geometrical line is just a co-linear set of points, a geometrical point is just the intersection of several lines.

Conjecture: any time you ask it questions which involve reasoning about an incidence structure, it will either hallucinate incidences that aren't or neglect incidences that are. The logic of incidence is lost on it, the answers it gives are inconsistent and contradictory.
https://ntfy.sh/ is free and awesome for this purpose.
I am skeptical this proved that Meta hires to starve other companies of talent. This all that the person said:

> it kind of seemed that Meta was hiring people so that other companies couldn’t have us and they were just hoarding us like Pokémon cards

Sounds like it was just speculation
>"Why

I wanted to build a minimal distro to understand NixOS better, so I decided to have a decent trusted binary core bootstrap as well."

As a NixOS user who wants to learn NixOS better myself -- I like your idea a lot!

Related: ZilchOS Core ("ZilchOS Core, a decidedly tiny Nix-based distro to play with"): https://github.com/ZilchOS/core
How about someone contacts them so this is moot? :)
> YOu say OUTSTANDING WRITER and I think GRR Martin.

Wow. G.R.R. Martin, much like Stephan King, writes to the least common denominator, which is about a 5th or 6th grade reading level. I challenge you to find a complex sentence in either of their catalogs, which is not to say their ideas are bad, because they're not. But their writing is absolute shit. Shakespeare, Dickens, Hemingway, Tolstoy, Joyce, and Camus are all outstanding writers, while the only thing that made Martin's writing bearable is H.B.O.
The most frustrating part of this is when you run into some library that is all in on hooks and insists you use hooks, but your project has been using class-based components so far. I was having a great time making a game prototype with react-three-fiber until some model loading code was just like "fuck you, use hooks" and I ended up wrapping a bunch of functional components in special ways to basically isolate the hooks stuff so I don't have to deal with the headache of it all gradually encroaching on the rest of my perfectly functioning project. It's frustrating because every time I wonder how to make it not a mess, the answer is "haha, we lied, they're barely supported; class-based components are for losers and you should feel bad."

It's just frustrating. Couldn't they have had the decency to fork / rename React for all this and leave the old branch to die instead of turning the entire space into some kind of pedantic war-zone for several years?
pipe it though less
Ask HN: How do you find good programming/arch patterns?
For example, you want to see an example of a spring boot app with Kotlin with "real" authentication logic. Or you want to see what someone's "best practices" for a Next.JS app are. How do you find these? Right now I do some combination google search of "Nextjs best practices medium -tutorial" or scroll github search for 50 pages til I sense that a repo is real
The issue becomes apparent when you ask somebody how many genders there are, and what constitutes a gender.

In order to define transitioning between various genders, there needs to be a constituted boundary around what a gender is. Otherwise, how can you transition from one to another?

This becomes readily apparent when you take the man/woman genders out of the equation and ask to define some of these other genders that supposedly exist and how people transition between them. There is no logic to it. Try it yourself.
Why would you possibly think I'm against this?
It might be true if you (like the author, at least that's my interpretation) include the use by the original plants, which I guess occurs until the plant is (destructively, which I'm not sure how common it is) harvested.
> Thanks for your reply! I will need more research to reflect on the examples you give.

Please note my sibling answer which shows I am opinionated.
I have memorized my own takes from such terms so researching about my answer may be time not used well.
Sorry.

> - https://www.eiffel.org/doc/solutions/Design_by_Contract_and_...

Does indeed overlap.
I only read about contract-based programming; contract by design via API documentation in a java environment.

> and it seemed to me the main concern was program correctness/consistency

It is. There are multiple factors to deploying correct software though.

> Maybe I mix up different concerns and good interface design is more about satisfying use case?

Apparently your are on the right track. But I would strongly agree on the latter. Such formal correctness proves didn't cross my career yet. But I am assuming safety-critical systems or systems haed to update may benefit here the most.
Which would explain my lack of certainty.

Keep it up; Sorry.
Maybe overly simplistic, but what would stop the air inlet being positioned well forward of the engines. Perhaps even on the nose of the aircraft.
Lots of discussion here about this approach and alternatives. Not sure how feasible this is but I think it would be even cooler to turn this into a site where users can define their own custom ranking algorithm and/or select from a set of available algorithms (including the one you're currently using). Maybe even provide a meta-ranking of the most popular ranking algorithms?
Comments are shortening

If only that were true. Still too many narcissists compelled to recount
their life's vicissitudes in every comment.
In europe, in my country, the company that wants to enforce their non-compete has to pay the former employee their salary for the duration of the non-compete. I mean if i was working at a bank diing ordinsry software development like is done at all the banks then if they want me not to use my knowledge of payment schedule snd late fee calculations at other banks then they have to compensare for it.

This change in the law killed all the non-competes for software developers, because it was ridiculous. If you wsnt me not to work then pay me for my time.
You really think Meta hired this recruiter as part of some plan to keep smaller companies from being able to hire recruiters?
Another day, another indication that Meta is an awful company from top to bottom, ruled by a socially awkward buffoon from his private island.

I wonder what is in store for tomorrow?
This is exactly the “just use react” stereotype. Download a random react component from NPM and 90% chance they just added wrapper divs until they could get the CSS to (kind of) work.
It's also highly suspect.

240k photos is 66 photos per day, every day, over a full decade.

If you're spending time taking 66 photos a day, I think you have bigger (personal) issues to contend with than your image storage solution.

Even on vacation, relaxing, with my kids and wife, visiting all manner of picturesque spots, 66 photos would be an enormous feat of narcissism.

The author is either lying about the photo library size to garner sympathy, or has a gargantuan psychological issue to address.
Back in the Zortech days, we didn't install any copy protection mechanism for just this reason. (Also, copy protection annoys people, and annoying our customers was not something we wished to do.)

That also meant we had no idea how many copies were pirated.
Sounds like https://jollyrogertelephone.com/
At this point GPL is pretty much an unenforceable license. I did not see anyone violating license it has any significant consequences.
ya not logging in with google m8
I'm slowly trying to get most of my projects and client ones to leverage more and more web components, I'm sick of reimplementing the same things over and over.
There's definitely a few around that are using ReScript; we've been using ReScript for production services for a bit more than 2 years now at Autobooks.

https://rescript-lang.org has a list too
People are so anti-union but don't realize how much they could help with other problems:

1. Companies rampantly abusing the H1B system
2. Wild discrepancy in the skills and quality of software engineers
3. "top tier" companies acting as a cabal to reduce comp + benefits of employees.
4. Companies abusing the use of "contractors" to get around full time hiring.

I see so many people including on HN decrying the pay engineers get. Wait till you see how much money companies make off your labor.
I love big enterprise, where ten people can have daily meetings for a month to decide how to pay a few hundred dollars.

Yes, this happened to me. More than once.

No, you can’t just pull your wallet out and offer to pay for it yourself with cash. You’re not an “approved supplier” and it’s the supplier that needs to provide warranty support.

Also if you pay for it yourself, then you’re providing it as a “gift” and that could be construed as corruption — unless you’re reimbursed, but it’s above the threshold…

This whole thread has given me flashbacks to that time when the project manager broke down in tears and put his credit card back in his wallet…
I'm not well versed in telephony, but I've always wondered why after a century we still don't have something as simple as a three way handshake for calls/messages?
ChatGPT> Could you rephrase the PR statement to the ad profile of this HTTP client?
It's just front-end engineering in general, you don't get this with people who work in other subfields of software engineering. I get it, though. It's OK until you need to learn and grow beyond it, which I think anyone doing this long enough will.

It sucks that people learn this the hard way, though, and the only way to grow beyond this for people new to the field is to eventually get burned and learn there are other ways to do all of this.

There are whole generations who don't know what session cookies are! And... that's just OK.
I don’t think it’s necessarily a master plan it’s just an emergent property of these highly successful monopolistic megacorps
What’s wrong with that?

Let’s better spend time on important things instead of wasting time trying to make UI behave properly across a plethora of browsers, OSes and platforms.
Thanks for the suggestions.

For the SQL stuff being displayed, we like that it gives non-technical users an opportunity to learn SQL along the way. Now providing it as an optional UI is a worthy consideration for us to perhaps make.

We do have a self-hosted version on our enterprise offering currently but I understand it might not be the most desirable for non-enterprise customers.
They also are saying the maintainers will be unable to update the images after the 30 days. So the panic and bitching are perfectly deserved: https://news.ycombinator.com/item?id=35188691
You can export enums as objects to javascript. And it's easier to change string enums than string unions.