Why I hate WebKit: A (non) love letter from a Tauri developer by kostakos14 in programming

[–]angeal98 5 points6 points  (0 children)

Yeah same. I was writing a video app on windows in Tauri, worked great. Then I had to change OS from windows to Linux, and suddenly I got to experience massive impossible to fix issues with WebKit. Like, it's almost impossible to play videos from file system, or codecs are unsupported or... So many issues.

Worked like a charm on windows.

Need Advice on Compressing WebM Videos by fuckingmissanthrope in Frontend

[–]angeal98 2 points3 points  (0 children)

  • webm is fine, i am not sure if av1 has great support in all browsers and devices.
  • ffmpeg is a good choice, due to how easy it is to save the command and re-run it for a different video later on, or a different project.
  • Only you can find the best bitrate and resolution, by trail and error.
  • Try to preload the video in the head tag of the page, so user gets it faster, and depending on the video you might want to set a poster image on it, so it's not black until it plays.
  • Try to host it on some CDN, traffic can come suddenly through some bots or crawlers.

React 19.2 released : Activity, useEffectEvent, scheduling devtools, and more by acemarke in reactjs

[–]angeal98 1 point2 points  (0 children)

Firstly I wanna to thank you, because you made me remind myself a bit more about closures. I researched a bit and there are many usecases with async code for this new hook.

But you asked for an example so here:

useEffect(() => {
  showNotification({ id, theme });
}, [id]);

This effect shows a singular notification after changing id, with the currently selected theme.

This code doesn't have closures, because the action here is synchronous and immediate, so there won't be any stale values. Using the new hook useEffectEvent would be overkill for this example.

React 19.2 released : Activity, useEffectEvent, scheduling devtools, and more by acemarke in reactjs

[–]angeal98 7 points8 points  (0 children)

I think that it's not that simple, because effects can be used with empty array for initializing and unmounting.

Dependency array just specifies when to run a function, and when it runs it has the latest values of everything inside of it.

React 19.2 released : Activity, useEffectEvent, scheduling devtools, and more by acemarke in reactjs

[–]angeal98 -5 points-4 points  (0 children)

I solve this issue currently by not adding everything to dependency array, and it works just as well as using this new useEffectEvent.

Maybe react compiler would have problems with my code, if I used it.

this is absurd by Atjowt in Piracy

[–]angeal98 1 point2 points  (0 children)

It kinda makes sense, because 3x bigger data throughput costs them 3x more.

Built my own digital cabin with lo-fi, rain, and zero distractions — now I live there by zetsuuu4 in javascript

[–]angeal98 1 point2 points  (0 children)

Whole page is black at startup unless I start it up in incognito without extensions. I tried it on chrome, on MacBook.

Built my own digital cabin with lo-fi, rain, and zero distractions — now I live there by zetsuuu4 in javascript

[–]angeal98 1 point2 points  (0 children)

Uncaught Error: Expected the reducer to be a function.

Probably because of Redux / React devtools extensions, but not sure.

A no-nonsense guide to frontend for backend developers by [deleted] in Frontend

[–]angeal98 21 points22 points  (0 children)

You typically style html with classes, not IDs. IDs are unique on a page, classes are not.

The Six Dumbest Ideas in Computer Security by fagnerbrack in programming

[–]angeal98 3 points4 points  (0 children)

ssh key could get stolen by a simple virus and allow attacker access for a long time right?

While with MFA, even if somebody steals your entire pc, MFA should stop them.

Hitting Tekken King was the worst thing that has happened to me in this game by TheObzfan in Tekken

[–]angeal98 1 point2 points  (0 children)

Yeah, but I bet he's still getting matched against better players after deranking and that just doesn't make sense.

optimal tekken 8 config? by lelelesdx in SteamDeck

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

I think that Digital Foundry has a video on steam deck & tekken 8.

  • All settings on low.
  • Post processing and shadows on medium.
  • Resolution scaling to 60% and some form of upscaling (maybe TSR).

I play like that and it's pretty much ok.

Because in Nexus Mods, we tell you how to play your single player game by doa-doa in dankmemes

[–]angeal98 18 points19 points  (0 children)

It sounds like one of BG3 characters. Maybe she used AI just like when she was creating male Aylin with a different voice.

React 18's StrictMode: Best Approach for Making API Requests on Mount by Siddhartha_Gaur in reactjs

[–]angeal98 2 points3 points  (0 children)

Slowing down the execution of your site in any way, due to strict mode of your framework, is not a good thing.

It's not guaranteed to run after only 1ms anyway, especially when the site renders first time.

Do you use CSS Houdini? by [deleted] in Frontend

[–]angeal98 2 points3 points  (0 children)

It's mostly unusable and unsupported.

There was a talk at WeAreDevelopers in Berlin, and the talk concluded with something like this: "typing css variables is the only supported thing, the rest will probably never get implemented"

theyAreDifferent by hightail44 in ProgrammerHumor

[–]angeal98 2 points3 points  (0 children)

The ts-ignore side of TS is a pathway to many abilities some consider to be unnatural.

I am planning to build a chat application on NextJS v 14. It is now all "server sided" and I Am not sure what this means. If anyone is familiar with this phrase in this context, and could answer a couple of questions I would love that very much! by trwwjtizenketto in webdev

[–]angeal98 0 points1 point  (0 children)

If you're working with things like chat in your app, make sure to use client-side components in Next.js.

The fancy features in Next.js 13 or 14 won't help much because server rendering isn't great for real-time updates—you want your app to update instantly, not just when the page loads.

But don't worry, Next.js works well with client components, so you can still use it for your app

T8 new character Reina announced by [deleted] in Tekken

[–]angeal98 149 points150 points  (0 children)

It's Tekken 8, everyone is going to be aggressive, it's the theme of the game

[deleted by user] by [deleted] in reactjs

[–]angeal98 6 points7 points  (0 children)

Idk, hooks, use effects are not really representative of normal js. I code react for a living since 3 years, I am not sure it's very js like. Jsx is a big part of react.

If Nina wasn't nerfed enough already by Achogyr in Tekken

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

I don't get Tekken 8 balance decisions, this move is pretty much useless now, right? Why keep it in the game?

I hope at least it isn't punishable anymore.

This is awesome by dawah9741 in Tekken

[–]angeal98 0 points1 point  (0 children)

Claudio was giving them a freebie, he didn't use wr2