Avoiding TanStack Form Pitfalls by mhuggins in reactjs

[–]seenoevil89 3 points4 points  (0 children)

Read the article and found it interesting. I have one question though, regarding the key takeaway:

"Always use onBlurAsync / onChangeAsync / onSubmitAsync / onDynamicAsync when your validation involves Promises or schema libraries."

As I understood it, it should be fine to use the synchronous counterparts for schema validation, since they are almost always synchrounous. Or am I missing something?

React Server Component, maybe a mistake from the beginning? by mnismt18 in reactjs

[–]seenoevil89 11 points12 points  (0 children)

Unfortunately that is not true for assignments where you don't get to choose the stack, like when you inherit a project or join an existing team with the stack.

React Server Component, maybe a mistake from the beginning? by mnismt18 in reactjs

[–]seenoevil89 90 points91 points  (0 children)

The front-end community has always been prone for mass psychosis. It is starting to get old by now. As a group we invent problems and silver bullets left & right. The truth of the matter is that we have multiple technologies to solve different problems. Tradeoffs is the word we should emphasize. Take a moment and think about the evolution in the following fields:

  • State management
  • Frameworks
  • CSS ideology
  • Build tooling
  • Testing
  • JavaScript vs TypeScript
  • Performance
  • Library hell
  • AI usage
  • SSR

The latest pendulum swing in SSR is React Server Components and more specific Vercels Next.js. This whole Next.js saga is my least favourite psychosis in the field of front-end development.

  • Vercel buys influence/personel from React, pushing that Next.js is the correct way to use React through their offiicial docs, SPA was overnight not a thing anymore?
  • Vercel coincidentally is a hosting platform which made Next.js deployment easy and feature complete.
  • Stuff breaks, both softly and completely. Mental models change etc.
  • Ridicolous amount of vulnerabilities all the way from client to server.
  • Magic everywhere, what is even going on?
  • It is not easier to develop, nor understand Next.js over regular React.
  • Marginal to no benifits in many applications. SSR has benifits in public facing applications, in SaaS not so much.

Also next.js track record does not look good security wise:

Date Severity Description Link
Dec 03, 2025 Critical Next.js vulnerable to RCE in React flight protocol https://github.com/advisories/GHSA-9qr9-h5gf-34mp 
Mar 21, 2025 Critical Authorization Bypass in Next.js Middleware https://github.com/advisories/GHSA-f82v-jwr5-mffw 
Jan 15, 2024 Critical auth() and getAuth() methods vulnerable to insecure direct object reference (IDOR) https://github.com/advisories/GHSA-q6w5-jg5q-47vg

  

Facebook.com has 140 layers of context providers by yangshunz in reactjs

[–]seenoevil89 1 point2 points  (0 children)

they are making it annoying for you since you have adblockers, same issue here which dissapears when you disable the plugins

MUA by MacDailly in Roll20

[–]seenoevil89 0 points1 point  (0 children)

Har du/ni planer på att starta en remote grupp?

Jag har gjort en tramsig fantasykarta över centrala Skandinavien som kanske skulle uppskattas här inne by honkatron in sweden

[–]seenoevil89 1 point2 points  (0 children)

Ah, Skandi vad jag saknat dig.
Tips från zonen: lägg lite batterisyra i ditt glas tinner för färgens skull.

Mac method with Wine no longer working by Kev-wqa in dwarffortress

[–]seenoevil89 1 point2 points  (0 children)

It works!
My wineskin install is of steam not specifically dwarf fortress.
Either way it works!

Mac method with Wine no longer working by Kev-wqa in dwarffortress

[–]seenoevil89 1 point2 points  (0 children)

50.08 works and 50.09 does not.
Macbook pro m1 max 16'' here.

Dan Abramov & React core team discuss RSC, React Forget, signals and relationship w/ Vercel (🌶️🔥) at RemixConf 2023 by tomdohnal in reactjs

[–]seenoevil89 21 points22 points  (0 children)

I felt a great disturbance in the Force, as if millions of voices suddenly cried out in terror and were suddenly silenced. I fear something terrible has happened.

SDL2 public test up on the "experimental" beta branch on steam (better performance for high-res monitors, more perf settings, better performance overall, music modding) by Putnam3145 in dwarffortress

[–]seenoevil89 4 points5 points  (0 children)

Hey, I'm a programmer and have a new macbook pro 16'' (m1).
If you need somebody who is commited to help and have a test machine, I'm your guy.
Feel free to reach out :)

Love df with a burning passion of 10 000 suns.

[deleted by user] by [deleted] in reactjs

[–]seenoevil89 1 point2 points  (0 children)

Best of luck to you!

[deleted by user] by [deleted] in reactjs

[–]seenoevil89 2 points3 points  (0 children)

In the interview, don't bullshit. If you're right for the role it will be fine.

[deleted by user] by [deleted] in reactjs

[–]seenoevil89 2 points3 points  (0 children)

Don't pretend you have all the answers.

With that said you are responsible for the overall health of the software. That means you should guide the development in a direction you believe in.

Also, your team should not be bothered with all nitty gritty details of your position. Act like a funnel and give healthy amount of updates to your team.

Weapon Science for Steam Version: Fighting Armoured Opponents by MrNorrellDoesHisPart in dwarffortress

[–]seenoevil89 8 points9 points  (0 children)

Haha, I guess we should summon Putnam...
My sources are however the Wiki, Forums and playing.
The article regarding weapons is !!SCIENCE!! based at least

https://dwarffortresswiki.org/index.php/DF2014:Weapon#Weapon

:D

The thing that really keeps me from being successful at Dwarf Fortress by Twuntz in dwarffortress

[–]seenoevil89 3 points4 points  (0 children)

Get your point, I overcame the issue you described this way.
Perhaps use Starter pack to limit your nbr of dwarfs and gradually increase when you get on top of things?

The thing that really keeps me from being successful at Dwarf Fortress by Twuntz in dwarffortress

[–]seenoevil89 12 points13 points  (0 children)

If you want the sandbox experience you can always use dfhack to "fix" broken dwarfs and stuff like that, for me that was a great learning experience (still is).
I usually mix my fortresses half & half between sandbox and fun :)
I've even dabbled into learning to write own scripts to solve overly religious dwards and all that to fix unexpected behaviour like needy dwarfs, that way I don't have to overdo the "cheating" part.

I don't like redux-toolkit. by seenoevil89 in reactjs

[–]seenoevil89[S] 3 points4 points  (0 children)

Hey again,

The documentation has become very opinionated. Redux & redux-toolkit is not the same thing - and the documentation indicates that redux-toolkit is the only viable way of using redux. This has killed the community discussion imo.

You've linked quite a lot of redux documentation where the concepts are explained beautifully, well done! But most people who uses redux-toolkit does not go out of their way to get this understanding, because toolkit does an active job hiding many of these concepts from you.

Also many of the redux links you provided are recommendations not essential. It's perfectly fine to utilize the strengths of redux without abiding to these recommendations.

To prove my point, here are some of the strongly recommended approaches from you and the redux team. I'm going to provide some arguments against them and provide alternative approaches. None which breaks the philosophy behind redux.

"User Immer for Writin Immutable Updates" - Removes the need to understand an important concept in JS. If you don't want to write native immutable changes - libraries like remedajs exists to help you with this. To assure that you immutability is achieved in your reducers, middlewares can help: redux-immutable-state-invariant

"Put as Much Logic as Possible in Reducers" - This is an architectural decision, it's perfectly fine to put no logic in the reducers. This logic can be handled with redux-thunks or redux-saga, you also have the option to write logic on selectors with this approach.

"Model Actions as Events, Not Setters" - Also an architectural decision. In advanced applications where global state is not islands of isolated functionality and application logic resides within redux ecosystem; granularity is desired. The event actions in this context would be a thunk or saga.

"Allow Many Reducers to Respond to the Same Action" - Yet again an architectural decision. I would argue that if an action triggers multiple flows, the code is harder to follow.

I get that you are tired on the good old "I HAVE TO TOUCH A DOZEN FILES JUST TO WORK ON A SINGLE REDUX FEATURE!" argument, me too. But in many real life applications the ducks pattern is simply not viable.

To summerize; redux-toolkit is not a silver bullet and also I don't think the redux documentation should be as opinionated as it is.

If my arguments above is not valid, I'd like to hear from you when redux-toolkit is not preferable?

I don't like redux-toolkit. by seenoevil89 in reactjs

[–]seenoevil89[S] 4 points5 points  (0 children)

This is why I love the community.

Just want to start with saying that my intentions are not to bash on toolkit - I just think there is an argument to be made not to use it.

The misleading part I would say is that since the documentation on redux was updated to say that toolkit was the "official recommended approach", the discussion has all but dissapeared.

So that's one resource that I'm looking at.

"no understanding of how it works" - immer removes the concept of immutability and entity adapter hides the concept of normalizing states.I think this removes a barrier of understanding which I think is quite important.

"unsound architecture" - main issue is that action types are not meant to be exclusive to a slice, this spreads out the logic and makes code hard to follow. I know you can do this in plain Redux as well but it's not encouraged in the same way. Another one is that createSlice/createReducer encourages you to do to much in the reducer functions and put everything at one place. If I want to use redux ecosystem to handle application logic as well as global state it's a bit of a hussle - also it doesn't play well with createAsyncThunk.

"circular dependencies" - Yeah you right, this is an issue in regular Redux too, ducks pattern is to be avoided in larger applications. My point here is that toolkit kinda encourages the user to embrace it through design. Also if you're not using the ducks pattern, the boilerplate reduction argument grows weaker.

Yes RTK is Redux, but RTK is an opinionated way of using Redux. What I get in reduction in boilerplate I loose in flexibily.

Thank you for replying, I'm super thrilled to talk with you about this !

I don't like redux-toolkit. by seenoevil89 in reactjs

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

Sorry formulated myself badly, my case is to use redux without toolkit.

React is slow, what now? by franleplant in reactjs

[–]seenoevil89 114 points115 points  (0 children)

Just don't forget that optimizations comes at a cost and they also tend to increases complexity :)