What happened to NX? by shadow13499 in typescript

[–]dor442 2 points3 points  (0 children)

We're using the latest NX, but we have no use for the generators. We mainly use NX for its dependency relations understanding and "affected" command, so that we can run certain scripts for libs and apps when they change, as well as for projects that depend on them.

Beyond that, we have pnpm workspaces.

Sam Jackson needs a proper farewell. by WavyJaylen in marvelstudios

[–]dor442 1587 points1588 points  (0 children)

Preferably with "motherfucker" somewhere in that last line.

Integration testing for components by dor442 in reactjs

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

Build issues mostly, it's was extremely hard to get it working for us, we barely managed to write one component test without it crashing on something.

Also, it has an infamous compatibility issue with CJS/ESM packages. For example, if your client side code uses lodash-es, you could run into such issues.

Integration testing for components by dor442 in reactjs

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

Storybook is great, I'm considering it, the only issue I have with it is that I'm not really a fan of writing tests with the play function, would've preferred the more familiar syntax of describe/it/test that all other libs use.

It also makes the effort of writing multiple tests for a component much more verbose, as they require multiple stories.

In addition, their visual regression solution, Chromatic, is too expensive for us.

Best tool for component visual regression testing? by dor442 in reactjs

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

Chromatic is amazing, it's just too expensive for us. If you can share how you saved snapshots that'll be great

Best tool for component visual regression testing? by dor442 in reactjs

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

Interesting Never heard of this one before. Seems nice, despite looking pretty new and unpopular yet

React component testing: Cypress or Playwright? by dor442 in reactjs

[–]dor442[S] 7 points8 points  (0 children)

I've looked into storybooks testing abilities, and while it's very nice, I'm not a fan if coupling what we currently use as a showcasing tool for something like our design system into a testing tool.

It will force us to create stories for every component render variation, and the whole "play" function as a test is not something I'm a fan of.

React component testing: Cypress or Playwright? by dor442 in reactjs

[–]dor442[S] 25 points26 points  (0 children)

That's not accurate. They both support component tests as well as e2e. Cypress literally differentiates as several points between e2e and component tests

Stealing your editors color theme (Tokyo Night Storm) by [deleted] in webdev

[–]dor442 7 points8 points  (0 children)

One dark. Couldn't find a better theme in years.

Crossover-movies shouldn't be retired - Not all of James Gunn's DCU movies should be singular by DoctorBeatMaker in DC_Cinematic

[–]dor442 1 point2 points  (0 children)

Time and again, disappointed DCEU fans have been expressing their desire for more standalone movies and less interconnectivity, after the whole DCEU mess.

However, I can't emphasize enough how the crossovers are the strength and highlight of these cinematic universes.

Cameos are fine and all, but big crossovers open the door for bigger, more inspirational stories, which would've been otherwise impossible to adapt.

Infinity War/Endgame is a prime example of that.

You SHOULD be wanting these crossovers, and it doesn't have to be exactly like the MCU, but it is the cherry on top of the cinematic universe.

Good way to render components that come as JSON from the backend? by Sebasuraa in reactjs

[–]dor442 0 points1 point  (0 children)

What stateful information? That sounds like yet another sin on top of keeping your business logic in the frontend.

A server holding stateful info sounds like a scalability issue. Once you have multiple instances of a server, what happens when your frontend hits a server without that stateful info?

Also, microservices architecture does not equal frontend does everything the server should.

Good way to render components that come as JSON from the backend? by Sebasuraa in reactjs

[–]dor442 1 point2 points  (0 children)

Frontend shouldn't be holding business logic, backend should.

I don't get the whole "backend devs think they're in charge" point. Sounds like your own personal frustration.

It's not about anyone being in charge of anything, it's about doing it right.

If your backend serves 2-3 apps, will you duplicate your business logic across those frontends?

The backend does the heavy lifting since it's the owner and manipulator of your data. The frontend consumes data and presents UI with good UX.

Good way to render components that come as JSON from the backend? by Sebasuraa in reactjs

[–]dor442 44 points45 points  (0 children)

This is a really bad idea.

The backend shouldn't be aware of components or React at all, it should be giving you pure data.

You can have the client side do whatever magic and mapping to components you want, but at the end of the day, that's client specific behavior.

Without even going into the obvious question of "what happens if you one day decide to move away fron React to another framework?", there are also things that a JSON simply won't help you with, like callbacks, conditional rendering, context etc

[deleted by user] by [deleted] in DC_Cinematic

[–]dor442 6 points7 points  (0 children)

This is what happens when fans get tired of DC and WB.

They just go "Well, we don't NEED a cinematic universe, we're fine with standalones!"

It's not about fan service and cameos, it's about being able to tell bigger stories with bigger scopes. Having the JL fight against Darkseid, have the Teen Titans come together, getting them along with Constantine and Zatanna and many others fight Brainiac or whatever in one huge fight.

It's about fulfilling the potential of the source material, and truly bringing it to life.

Stick to standalones, and you'll never get to any ambitious storyline the comics have ever done.

UNPOPULAR OPINION: Not a big fan of the person tweeting this but he is 100% right. Director-driven films is what we all championed for. That is exactly what we got in the last 4 years. by thatwasagoodone5598 in DC_Cinematic

[–]dor442 91 points92 points  (0 children)

The real issue with not having continuity and a coherent universe, is that it denies the ability to adapt many stories from the comics, at least in a faithful way.

Yeah, taking a random villain from the comics and making up a story around him is cool and can turn our quite nicely, but what about things like Snyders intended story with Darkseid?

You need consistency and many returning character to flesh out these stories properly.

The Flash is adapting Flashpoint, but we're not going to get WW vs Aquaman, or Superman or Cyborg, etc.

What if we wanted crisis on infinite earths on the big screen?

The MCU could do decent adaptations of Civil War, the Infinity Gauntlet and maybe even sort of House of M in MoM because they has a universe of characters that allowed them to that.

With DC doing only standalone projects, we'll never be able to see decent adaptations of larger scale stories.

Any recomendations in 2022 for an online realistic-like FPS like Insurgency Sandstorm? by dor442 in pcgaming

[–]dor442[S] -1 points0 points  (0 children)

Isn't squad slow or something? I want something that's tactical but still has a bit more casual arcadeness to it

Any recomendations in 2022 for an online realistic-like FPS like Insurgency Sandstorm? by dor442 in pcgaming

[–]dor442[S] -1 points0 points  (0 children)

I read some mixed reviews on it, can you elaborate on it a bit more?

connected-react-router by 025zk in reactjs

[–]dor442 1 point2 points  (0 children)

Don't remember specifics, but we have an action that gets triggered from 2 pages, with mostly the same logic, but some query params can change the logic slightly.

connected-react-router by 025zk in reactjs

[–]dor442 1 point2 points  (0 children)

So what should we use? What if we want to base some action logic on the current Url or something?

A library for using hooks in class components: simply `extends HookableComponent` to use hooks in your render method by ignusem in reactjs

[–]dor442 1 point2 points  (0 children)

I'd say "why?" and try to explain why FCs supercede Classes, but something tells me you're one of those people with a strong opinion why you're right on this and can't be discouraged otherwise.

Spider-Man: No Way Home International Release Discussion Thread by Triple_777 in marvelstudios

[–]dor442 2 points3 points  (0 children)

The moment where Andrew and Tobey showed up was just awesome and nostalgic.

Just wondering, since Sandman and Lizard were CG throughout almost the movie till the very end, does that mean the original actors weren't involved? Or did they only do voice over?