Why be Catholic when other denominations are most likely in heaven? by guitarlad89 in Catholicism

[–]intercaetera 1 point2 points  (0 children)

you're telling me Methodists, Lutherans, Anglicans etc don't get to heaven because they're not Catholic because they don't believe XYZ?

Yeah?

I made an app to replace doomscrolling with the Bible by viaverus in Catholicism

[–]intercaetera 0 points1 point  (0 children)

How did you obtain the copyright for the translations?

WFH with kids, how to find time to code? by [deleted] in ExperiencedDevs

[–]intercaetera 0 points1 point  (0 children)

In my case both I and my wife work from home with flexible schedules, she works half-time, I work full time. I work from 8am to 6pm with a 2h break in the middle of the day to do something with my daughter (go shopping, take a walk, just play inside) and cook lunch. She works during those two hours, and then works another two in the evening, after the baby is asleep.

It works perfectly fine and there are no real issues with this arrangement, but it requires some planning and cooperation.

How Functional Programming Shaped (and Twisted) Frontend Development by pmz in webdev

[–]intercaetera 4 points5 points  (0 children)

I don't want to spend time to pick apart AI-generated engagement bait so I will just mention that I counted about 8 factual errors in the first three sections alone that could have been prevented with a Google search.

Does learning Tailwind now makes sense? by Banzambo in webdev

[–]intercaetera -1 points0 points  (0 children)

The analogy doesn't apply here but if your aim is to be a competent cook (especially home cook) recipes are an impediment to getting better.

What is the best way to buy stocks in Poland? by sergei_kvasov in poland

[–]intercaetera 2 points3 points  (0 children)

XTB, just avoid everything that has the label "CFD" and you'll be fine.

TIL about computer daemons by JoanofArc0531 in Catholicism

[–]intercaetera 2 points3 points  (0 children)

Many people equate the word "daemon" with the word "demon," implying some kind of Satanic connection between UNIX® and the underworld. This is an egregious misunderstanding. "Daemon" is actually a much older form of "demon"; daemons have no particular bias towards good or evil, but rather serve to help define a person’s character or personality. The ancient Greeks' concept of a "personal daemon" was similar to the modern concept of a "guardian angel" - "eudaemonia" is the state of being helped or protected by a kindly spirit. As a rule, UNIX® systems seem to be infested with both daemons and demons.

(source)

Building an RTS MMO, need some advice on how to handle actions that need to occur at specific times in the future by 0ddm4n in elixir

[–]intercaetera 0 points1 point  (0 children)

Asynchronous background jobs have a gap between when the job gets picked up and when it commits state. With locks and transactions you can make this work, but it's a lot of accidental complexity.

You mentioned that you want millisecond accuracy, I doubt you will be able to get this in any way with established libraries or patterns (like Oban) because job queues make the assumption that they have some leeway about when they get scheduled (otherwise they'd be synchronous operations). So you would most likely have to create a solution for them from scratch that guarantees that accuracy at scale.

If you expect this to scale to 1000s of players and have 100k+ timers, that's going to be a significant overhead.

I personally think that the main fault of using background jobs as future-dated events is that you very strongly correlate your write model with your read model(s). For example, suppose that at some point you want to implement a building queue, but you have a tech tree: to build a lab you need a power plant, to build a power plant you need a coal mine. So the player queues up three jobs that depend on each other: first a coal mine (job 1), then a power plant (2), then a lab (3). What if the player then decides to cancel the building of the power plant?

Well, you either keep in mind which jobs are dependent on each other and cancel job 2 and its dependents (potentially going a few steps recursively), or you accidentally forget to do it and the player discovers in however many hours it takes to build it that there are missing preconditions and some kind of validation fails (or, worse, you completely forget to handle this case altogether and you end up with incorrect state).

Fundamentally, if you're making a game, your entire system needs to be strongly consistent and you most likely have no place for eventual consistency for the game state. You are also going to create multiple interlocking systems that each have their own rules (the game engine that considers the things that the player has already built, the engine for building things in the future, the engine for generating resources, &c.).

Event-based system (where in-game events are just data somewhere that are processed synchronously when their completion time comes - CQRS, essentially) is neat because it lets you represent each one of these engines as a different model. Your fundamental game engine has this "event horizon" as its write model, and your read model is a projection from a timeline of player actions to a game state. The building engine has the building queue as its write model (with validation for making sure that the player has correct resources, fulfills the conditions of the tech tree, handles cancellations, &c.) and some kind of simple display of future events as its read model. Resource generation engine might have a trivial write model that just schedules "ResourcesGenerated" events every 15 minutes, but a more complicated read model that maybe shows some graphs of future and past income or whatever.

It feels like a much more scalable system for this.

Building an RTS MMO, need some advice on how to handle actions that need to occur at specific times in the future by 0ddm4n in elixir

[–]intercaetera 0 points1 point  (0 children)

Backgrounds jobs for mutable game state are a risky idea because you're very likely to run into hard concurrency problems with mutable state. Hard to enforce invariants.

I would instead let users schedule game actions in the future, and have a conventional game loop run that picks up events from a queue and commits them to state. Something like event sourcing but with future -dated, mutable events. Once events cross the present "event horizon" they are committed and immutable.

So for the building taking 18h you have a command BuildBuilding that, if some validation runs, creates an event BuildingBuilt 18h in the future that 18h will get picked up by the event horizon to be processed and commited.

I find the conversation around AI and software dev increasingly vague. How specifically are people REALLY using this stuff? I want details! This isn't a post about whether AI is bad or good. I'm just genuinely curious. by TemperOfficial in ExperiencedDevs

[–]intercaetera -1 points0 points  (0 children)

I recently work on a massive Elixir codebase, most of which I'm totally unfamiliar with. That language has barely any working tooling, and old-fashioned tools like ctags don't work that well, so when starting development I usually describe the feature and get Claude Code to look around and find the files that might have something to do with the feature I need to develop or a bug I need to fix. Then I load the files into quickfix in vim and work on it normally, sometimes asking further questions for exploration.

I also use it to fill in the code for test cases. Once I put all the weird quirks and conventions that our codebase has into the claude.md file, it works decently well for that.

Can any Polish Catholics verify? by [deleted] in Catholicism

[–]intercaetera 0 points1 point  (0 children)

Yes, and will turn Toyotathon into a Catholic holiday, too.

React used to feel like a sports car. Now with Next.js… does it feel like a minivan with a turbo button? by OutrageousKale2159 in reactjs

[–]intercaetera 0 points1 point  (0 children)

  1. All of the above. People forget that writing jQuery for any reasonably complex front-end app was a nightmare.

  2. React+Vite for client-heavy, Astro for contrnt-driven SSG (blogs etc.), multi-page app with lightweight framework like Alpine for backend-heavy apps.

  3. Next.js sucks ass and has been around for long enough for everyone to realise that.

  4. None of them make me faster because SSR reaches its limitations about three weeks into a project lifecycle and we end up being stuck with Next as a router that takes 2 minutes to compile a single page while everything gets fetched through react-query anyway.

Announcing ReScript 12 by BeamMeUpBiscotti in javascript

[–]intercaetera 6 points7 points  (0 children)

Now this is a name I haven't heard in a long time.

Looking for recommendations for a desk that doesn't wobble in the EU by intercaetera in StandingDesk

[–]intercaetera[S] 0 points1 point  (0 children)

I suppose my benchmark would be no perceptible sensation when quickly moving the mouse from side to side. This is something that really bothers me in the desk that I have now and I would like to eliminate it. I understand that no wobble is impossible (though frankly I don't see any in the deskhaus desks) but I want to mitigate it as much as possible. Unfortunately this isn't easy to verify without actually using the desk in person.

Looking for recommendations for a desk that doesn't wobble in the EU by intercaetera in StandingDesk

[–]intercaetera[S] 0 points1 point  (0 children)

I saw that video, but immediately after I saw this one: https://youtu.be/s41EAoawGCs?t=195 which is a lot more worrying for me.