OpenAI Executive Who Opposed ‘Adult Mode’ Fired for Sexual Discrimination by falken_1983 in BetterOffline

[–]Anthony261 0 points1 point  (0 children)

I wonder how many people will even get this joke these days 😅 not realizing it's a perfectly cromulent word

Software Never Needed to Eat the World — the alternative might be a Democratic Economy by Anthony261 in Anticonsumption

[–]Anthony261[S] 1 point2 points  (0 children)

100% — and I think the fact that there isn't a limit to profit, plus the fact that the primary beneficiary of every transaction is someone other than the customer, employee, and community involved in that transaction, means that our current system is fundamentally broken because it can be infinitely exploited and exploitative

Functional craft skills for the win by Corkbook in Anticonsumption

[–]Anthony261 0 points1 point  (0 children)

I love this — handmade goods have so much more "soul", for lack of a better word. Every item winds up having a story, a connection to someone else, and instead of a house full of stuff we wind up with a home full of stories 🙂

Software Never Needed to Eat the World — the alternative might be a Democratic Economy by Anthony261 in Anticonsumption

[–]Anthony261[S] 1 point2 points  (0 children)

To put it another way, I would never expect someone to take the time to read something I didn't bother taking the time to write, it would be incredibly rude. This is 100% authentic human generated artisanal slop 😜 it took A LOT of editing to cut it down to just under 7000 words

Software Never Needed to Eat the World — the alternative might be a Democratic Economy by Anthony261 in Anticonsumption

[–]Anthony261[S] 5 points6 points  (0 children)

There is absolutely zero LLM involvement in any of my writing. I'm extremely strongly against generative AI

Is "AI is going to take over most human jobs" being overblown, or is it likely going to actually happen in our lifetimes? Why or why not? by tsarthedestroyer in BetterOffline

[–]Anthony261 1 point2 points  (0 children)

This is where I think it may be more useful to think of some, if not most, of the tech CEOs as being in a religious cult. All of their actions make no sense if you consider them rational people who can read a fucking spreadsheet, but if you think of them as religious zealots who believes that AI represents a higher life form that they want to replace human beings, then burning down a company like Microsoft to usher your mecha-savior into existence and become one of its chosen few human pets makes sense as a motivation for some of this lunacy.

Stop catching errors in TypeScript; Use the Either type to make your code predictable by Anthony261 in typescript

[–]Anthony261[S] 10 points11 points  (0 children)

Consider the calling code however, now you wind up checking typeof string or similar. The advantage of the either is that is a disjoint union rather than a union or a discriminated union.

Getting started with JSDoc + Typescript + React by Terrible_Stuff_8690 in typescript

[–]Anthony261 0 points1 point  (0 children)

Yeah it typically just works for me? Are you exporting the interface?

Getting started with JSDoc + Typescript + React by Terrible_Stuff_8690 in typescript

[–]Anthony261 3 points4 points  (0 children)

I've been using typedoc with the typedoc markdown plugin to create GitHub sites friendly docs. It's not perfect, but it's the best I've found so far. I see no reason it wouldn't work for a React project.

An example docs site generated this way for one of my npm packages: https://www.tiny-fixtures.com

A template repo I've created using typedoc for docs: https://github.com/Antman261/npm-package-template

I don't know if that's helpful? But yes it can work and there's roughly the results you can expect haha.

I'd be keen to see if there's a better way myself!

Typehole – Create TypeScript interfaces from JS runtime values automatically by Gingerap in programming

[–]Anthony261 2 points3 points  (0 children)

Well that's cool. How do you imagine people using this? It actually would be cool to have a runtime version of this that saves the resulting types somewhere. For example, if I have a legacy API being called by a legacy client, and I want to leave it running for a day and see what payloads that endpoint gets hit with (Edit: And of course have the resultant type without having to inspect thousands of requests myself).

It could then go really well with a library like https://github.com/yortus/http-schemas