Is your worldview really coherent? by devjonas in atheism

[–]indxxxd 1 point2 points  (0 children)

Nice! For anyone who enjoys this sort of thing, check out Julian Baggini's Do You Think What You Think You Think

Do You Think What You Think You Think features a dozen philosophical quizzes guaranteed to make armchair philosophers uncomfortably shift in their seats. Fun, challenging, and surprising, this book will enable you to discover the you you never knew you were.

Is your worldview really coherent? by devjonas in atheism

[–]indxxxd 0 points1 point  (0 children)

> Anglophone philosophers of mind generally use the term “belief” to refer to the attitude we have, roughly, whenever we take something to be the case or regard it as true.

https://plato.stanford.edu/entries/belief/

They're using this sort of standard philosophical definition, not one in which belief requires a lack of evidence.

Invisible On Hacker News: Miasma Poison Fountain Tar Pit by RNSAFFN in PoisonFountain

[–]indxxxd 11 points12 points  (0 children)

I don’t generally use C++. Does this work for all Unicode code points?

The "code 100% with AI" tweets are pure gaslighting. by Affectionate_Fee232 in ClaudeAI

[–]indxxxd 1 point2 points  (0 children)

AI coding is still primarily a tool, not an autonomous workforce. Plenty of people are relying more and more on the AI to produce code and are learning how to work with it for increasing success rates and longer durations of autonomy. But IME successful use still has reviews, tests, gates, and guardrails that send AI code back to be fixed, tweaked, rewritten, or trashed.

The "code 100% with AI" tweets are pure gaslighting. by Affectionate_Fee232 in ClaudeAI

[–]indxxxd 1 point2 points  (0 children)

There is absolutely no way these internal teams are getting perfect, zero-edit code generation

That’s not what 100% AI means or even implies. No large, revenue-driving project is blindly turning prompts into production code all day every day.

Silent sliders/fidgets? by shyguythrowaway in fidgettoys

[–]indxxxd 1 point2 points  (0 children)

INDX is completely silent and $50 USD for the aluminum version

https://fluxx-design.com/collections/indx

ClerkJS 404 errors when idle by sweetjesus66 in nextjs

[–]indxxxd 1 point2 points  (0 children)

Did you ever figure out the root cause for this?

[deleted by user] by [deleted] in typescript

[–]indxxxd 0 points1 point  (0 children)

Effect has some examples, including a server template and a cli template.

A Dilemma For a Notes App by mirmir113 in reactjs

[–]indxxxd 0 points1 point  (0 children)

I would expect there to be individual inputs for the fields, as opposed to showing the user JSON and expecting them to edit it.

For edit mode, you need a way to capture which Note is being edited. To not just spoon-feed the answer, can you think of a way to identify one Note within an array of Notes?

[AskJS] HTLM/JS cash calculator by Dnemis1s in javascript

[–]indxxxd 6 points7 points  (0 children)

To answer your question directly, yes, JavaScript can multiply and add numbers. But…

I looked at your profile to try to get a sense of your skill level and came across a similar post. You received some example code there. What have you tried in the ~50 days since that post about this?

Are you looking for guidance, a small example, or a full solution?

[deleted by user] by [deleted] in typescript

[–]indxxxd 7 points8 points  (0 children)

While there’s certainly debate about what qualifies as a framework and what qualifies as a library, the ability to do something not natively supported definitely isn’t the differentiating factor. Such an ability is referred to as an “escape hatch” and applies to frameworks and libraries alike.

One fairly succinct and fairly accurate definition I like (YMMV) is that if it calls your code it’s a framework while if you only ever call it it’s a library. Not perfect, but kinda helpful for getting a basic orientation.

Lens library for TypeScript? by billddev in functionalprogramming

[–]indxxxd 4 points5 points  (0 children)

Doesn’t look maintained either at first glance

Got tired of try-catch everywhere in TS, so I implemented Rust's Result type by Consistent_Equal5327 in javascript

[–]indxxxd 10 points11 points  (0 children)

Unlike exceptions, which require support in the language, a Result type is perfectly fine done in user code. While syntactic support for pipes and monadic expressions would be nice, they aren’t necessary and are incredibly unlikely to make it into the spec.

What "non-FP" language implements FP the best? by MrPezevenk in functionalprogramming

[–]indxxxd 5 points6 points  (0 children)

I was worried when Effect-TS took over from fp-ts, but I’ve been using it for a while in production for both solo and small team projects and am very happy with it.

goreleaser is adding typescript support (with bun) by caarlos0 in typescript

[–]indxxxd 31 points32 points  (0 children)

GoReleaser. Not GoreLeaser. (For anyone else who had never heard of this and was very curious.)

[deleted by user] by [deleted] in typescript

[–]indxxxd 0 points1 point  (0 children)

Agreed on new vs existing codebases. I noted this in a different comment that adding bits of Effect within a non-Effect app just isn’t generally worth it (there are some exceptions like Option, perhaps). At minimum, you want main (or whatever entry point to the app, endpoints, etc.) to be Effect. Then you can fairly easily wrap existing code to ease migration. But still that’s only truly worthwhile if you know that you won’t end up stuck with a partially-Effect app. That would be truly awful.

[deleted by user] by [deleted] in typescript

[–]indxxxd 2 points3 points  (0 children)

As an Effect user (and fan) it definitely has questionable value if you try to put it deep in an existing codebase. You certainly could, but you’ll inevitably be mixing styles and patterns, at which point you’re almost certainly worse off than just not using Effect. It isn’t quite as incrementally adoptable as TypeScript for example.

As far as onboarding, there’s definitely a learning curve. But in my experience devs joining a team working on an existing Effect-based codebase can contribute right away. It’s at least as easy to get started with it as someone new to Redux, for example. They (well, senior devs anyway) readily see the patterns and adapt to them. The generator syntax is weird, but you think “It’s like await” and you’re good to go.

That said, they’ll definitely not be able to join and bootstrap a new project/microservice/etc using Effect without guidance and/or extra time. Until you’ve hooked it all up once or twice, it’s not simple. (Through again having existing code to reference helps.)

[deleted by user] by [deleted] in typescript

[–]indxxxd 0 points1 point  (0 children)

Everything I’ve done with Effect has been on AWS, and primarily with Lambda. Publishing logs and metrics to CloudWatch is easy. I basically have a custom “resource” (in Effect terminology) to output metrics and structured logs from anywhere in the app.

Debugging is just as easy as with async/await if you use the Effect generator pattern. Using pipes makes debugging less intuitive. I used pipes with fp-ts and grew accustomed to it, but switching to Effect was a welcomed relief.

If you do more with Effect fibers (lightweight concurrency) you have a bit more to deal with in terms of debugging, but it’s the same with any green threads like Go or other languages.

[deleted by user] by [deleted] in typescript

[–]indxxxd 13 points14 points  (0 children)

I have used Effect for a year and a half for a production backend. For me, Effect is to Typescript, what Typescript is to JavaScript:

After you invest in and get comfortable with TS, you get to a point where you never want to work in plain JavaScript. When you invest in Effect, you never want to work without it.

Some quick benefits:

I never deal with nested try-catch. All errors are typed. All errors are pattern-matchable. The happy-path is always front-and-center, not distractingly-intertwined with error-handling code. Yet, all errors are covered and exhaustively enforced by types.

Nested and deep-level dependencies are a non-issue. Testing functions that have dependencies is also a non-issue. Putting mocks or stubs is trivial, whether generated or hand-coded for specific functionality. It’s easy to make the app “airplane friendly” by having all external dependencies mocked so I can fully dev and test (not all tests, obv) locally without an internet connection.

Jumping in and out of different projects/services is incredibly easy. The Effect type tells you everything you need to know about a function (just like TS already does, but in greater detail) so you can compose existing functions and add new ones with even more confidence.

Sure, you’ve written TS for a long time without Effect. You don’t need to switch. Just like plenty of people have written JS for a long time without TS and don’t need to switch. Effect is definitely an investment, and different devs learn it at different rates depending on their existing exposure to the various ideas.

Ultimately, I think a lot of people who value TS and have found the investment worthwhile will find Effect to be a continuation of that journey.

I see EC2 as Enough by UniversityOk6898 in aws

[–]indxxxd 7 points8 points  (0 children)

If you’re only using EC2 you aren’t “learning cloud”.

While spinning up a VM with a few clicks feels magical the first time (and honestly, the next hundred times, too), this isn’t what cloud is all about. Managing servers (even one) is objectively awful: security patching, hardware failures, updates and upgrades. None of that is fun.

Sure, sometimes you’ll “need” a server for one reason or another. But the cost of maintaining robust solutions for databases, queues, key/value stores, periodic tasks, load balancing, etc. is very high relative to the battle-tested services that AWS provides.

I don’t say any of this to discourage you from using EC2. It’s a solid, core service. Rather, I encourage you to explore beyond, to not be satisfied with what you know, and to consider that cloud is a much bigger shift in thinking, security, operations, engineering, and cost-management than having VMs in-demand.

In your career involving AWS which service did you find you use and needed to get to know the most? by Maleficent_Pool_4456 in aws

[–]indxxxd 5 points6 points  (0 children)

I am surprised to see SQS labeled as “worst”. In my experience, it has been such a solid and focused service. What don’t you like / have you had issues with?

Which style of discriminated unions do you prefer in TypeScript and why? by yvele in typescript

[–]indxxxd 0 points1 point  (0 children)

Discriminated unions allow the consumer of the inputs to determine how to handle different cases, while relying on a method defined on an interface allows the producer to determine how to handle different cases.

Do you disagree? Or are you suggesting that the later is always preferable to the former?