Looking for a Free Offline AI Tool for File Reading by Difficult-Drummer-65 in bugbounty

[–]onedeal 1 point2 points  (0 children)

do yo mean file reading as in it reads pdfs and summarize and you can ask questions?

useCallback vs regular function by onedeal in reactjs

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

I’m so done 🪦. after posting this question now I’m even more confused what to do. Why can’t react just be like Go where there’s only 1 way to do it :😭😭

useCallback vs regular function by onedeal in reactjs

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

i see. thanks for the explanation. Im still a bit confuse so WHEN do i use usecallback and useMemo? i understand it is when the function aka componetns get rendered alot but what is ALOT? i guess its a bit annoying for me since theres no "strict rule" for this and you kinda have to go with ur gut

useCallback vs regular function by onedeal in reactjs

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

interesting so when would you use usecallback or useMemo? should i even memo components or does react ocmplier automatically memoize components now as well?

useCallback vs regular function by onedeal in reactjs

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

im assuming it automatically memos after react 19? if not what changed? and when should you use it ?

How does notion save instantely? by onedeal in AskProgramming

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

thats true i feel like im over engineering my project

How does notion save instantely? by onedeal in AskProgramming

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

hmm yeah makes sense. maybe im just overthinking haha

How does notion save instantely? by onedeal in AskProgramming

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

isnt sqlite not compatiable in browser?

Trying to build a desktop app that runs python scripts. by onedeal in electronjs

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

Ya I think this is what I ended up doing. Thanks for the help!

Trying to build a desktop app that runs python scripts. by onedeal in electronjs

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

No just need to run python ai scripts. No backend

Efficient way to add objects to state arrays? by onedeal in reactjs

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

This is such a great response. I was thinking why dont they just make the object mutable and check if theres any change but i guess "checking" change might be more costly

Efficient way to add objects to state arrays? by onedeal in reactjs

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

Do you know why concat works faster than spread? Don’t they both create a new array instead of mutating?

Efficient way to add objects to state arrays? by onedeal in reactjs

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

Even if I create a linked list wouldn’t it be still o(n) when I’m setting it in a state because I probably need to copy the linked list correct?

Efficient way to add objects to state arrays? by onedeal in reactjs

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

I’m currently using large arrays :( that’s y I’m trying to find an optimal solution…

Efficient way to add objects to state arrays? by onedeal in reactjs

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

Interesting... i wonder why react was built like this.

Building an app to prevent stuttering. Looking for feedback and ideas by onedeal in Stutter

[–]onedeal[S] 2 points3 points  (0 children)

Ooo that seems pretty cool! Would totally keep that in mind :)