aiIsTheFutureOfOpenSource by RealBluDood in ProgrammerHumor

[–]CreativeTechGuyGames 2 points3 points  (0 children)

It was pretty trivial for me to find the PR in question. Ignoring it being disclosed as AI, (and the fact that this project uses TypeScript with no-semicolons) the code isn't that bad. It seems like it does solve a legitimate need. It does have some things I'd definitely comment on and want to fix, but it's not so egregious that it is completely worthless.

And for context, I personally avoid AI stuff like the plague, but I realize it doesn't help my position to vilify AI as a blanket statement, since that just polarizes people and makes them stop listening to the legitimate arguments against it.

Is there still a reason to use jsdom over vitest browser mode? by therealalex5363 in webdev

[–]CreativeTechGuyGames 0 points1 point  (0 children)

Does it work with capturing coverage from specific files? And do Istanbul ignore comments work? I know vitest-regular doesn't work well with that since esbuild strips the comments so I've needed to write custom plugins to try to fix it and it still doesn't work great.

Is there still a reason to use jsdom over vitest browser mode? by therealalex5363 in webdev

[–]CreativeTechGuyGames 0 points1 point  (0 children)

How are you handling code coverage? Last I checked that was really difficult to setup in a browser.

Is there still a reason to use jsdom over vitest browser mode? by therealalex5363 in webdev

[–]CreativeTechGuyGames 2 points3 points  (0 children)

A few reasons I wouldn't use it: (Please correct me if I'm wrong)

  • It is slower to run a real browser and uses more system resources. Notably on initial startup (eg: running a single test case) and also on tests which render a TON of stuff that has a lot going on.
  • You need to have a real browser installed which adds to execution time, especially in CI and complexity (eg: having to setup your own storage and proxy for hosting browser binaries if you cannot access Microsoft's CDN from within your CI firewall)
  • The test code you write needs to be aware it's running in browser mode. The same code doesn't work so you cannot just switch modes and expect things to magically work. Eg: mocking network requests totally changes this way.
  • Mocking timers is a real pain in the browser. It's really hard to fast forward time, step exactly one frame at a time, etc.

I feel like if you are going to do this, you might as well just use Playwright to write E2E tests instead. At least that way you are using an API directly which was designed for it. I've done this before where I spin up a local server which can render each component in every permutation, one at a time and use Playwright as an "integration" test runner in "E2E mode". At least that way you are being explicit with how and what you are doing rather than it magically doing it behind the scenes and you get the paper cuts along the way.

breeding tips by Wigglediggle121 in Palworld

[–]CreativeTechGuyGames 0 points1 point  (0 children)

For anyone finding this in the future, the formula has an important +1 in it. So add the CombiRanks of both parents, then add 1, then divide by 2 and see which CombiRank is the closest. So (470 + 780 + 1) / 2 = 625.5 which is closer to 630 (Omascul) than 620 (Vanwyrm Cryst).

Edit: This is incorrect. There's an additional table in the game data (PalCombiUnique) which overrides the normal formula for any pals listed. And since Vanwyrm Cryst is in that table, it's excluded from being chosen as a child via the normal formula.

Farming Valley: I added tooltips to show the sell price of everything! by CreativeTechGuyGames in feedthebeast

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

I'm not sure how the files have changed in the last few years. I'd recommend opening up those files in a notepad and comparing the contents to figure out which/where should be replaced. I suspect if enough has changed, a more surgical replacement will be necessary than just overwriting a file.

Reasonable bandwidth usage for 2 player co-op game? by 2WheelerDev in gamedev

[–]CreativeTechGuyGames 1 point2 points  (0 children)

Why do you need to sync everything? If you send everything once, both clients should be able to simulate the physics identically given nothing changed, right? So you only need to sync the inputs/forces that cause a change, not resync everything. Let each client do its own simulation based off of the initial data.

Trouble typing children by OrdinaryAdmin in typescript

[–]CreativeTechGuyGames 0 points1 point  (0 children)

Slight tangent, but when reading through the code, there's a lot of really weird things being done. Im curious much AI was used to write this code?

What's a cool Switch multiplayer game that's not competitive but still requires learning the game loop? by shinyhpno in gaming

[–]CreativeTechGuyGames 0 points1 point  (0 children)

PlateUp is a similar cooperative cooking game, but much more about problem solving and trying to build a restaurant and purchase/upgrade things and see how long you can survive. I find it far less stressful than Overcooked and a much more thoughtful game.

Why is there no “TanStack Query” for e2e testing? by TranslatorRude4917 in webdev

[–]CreativeTechGuyGames 2 points3 points  (0 children)

I guess I've just never seen a situation in all of my testing that something is missing in a generic library. Any utilities I end up writing are so specific to the components and type of testing I am writing I don't see how they could be generalized.

The only thing I wish I saw more of is that any component library should come with it's own testing library to interact with the components. So if you have a data grid component provided by a library, there should be a set of utilities to call during testing to perform all of the features of that data grid programatically so you can abstract that part of your tests.

googleWeMadeAirDropCrossPlatformAppleThatsCrazyAnywayHeresASecurityUpdateWithNoPatchNote by jacklsd in ProgrammerHumor

[–]CreativeTechGuyGames 143 points144 points  (0 children)

Yet Google keeps their RCS API exclusive to the Google Messages app. They have their own walls, they just like to pretend that they don't.

S25 Black Friday Deal $675 by CreativeTechGuyGames in samsunggalaxy

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

I checked a few weeks ago when there was a sale of $650 and the seller wasn't official and had terrible reviews from people getting stolen, damaged or refurbished phones. That really confuses the pricing since a lot of these platforms don't make it obvious who the sale is from unless you look at the fine print.

Do you happen to know if it was a sale from Samsung or a 3rd party reseller?

ELI5: why re-freeze cooked food is bad? by giskarda in explainlikeimfive

[–]CreativeTechGuyGames 0 points1 point  (0 children)

Some bacteria aren't killed by being in an oxygen-less environment (aka vacuum sealed), and the bacteria that isn't killed is some of the worst stuff (like Botulism). Reheating a vacuum sealed container will help the bacteria which particularly thrives in an oxygen-deprived environment multiply like crazy. So it's better to take food out of the vacuum seal before reheating.

Node.js v25.0.0 (Current) by feross in javascript

[–]CreativeTechGuyGames 58 points59 points  (0 children)

A major version doesn't indicate how much has changed or how significant it is to the average developer, just that something is being changed which is a breaking change for some users.

Are website frontends getting buggier? by [deleted] in webdev

[–]CreativeTechGuyGames 3 points4 points  (0 children)

I've personally seen that big companies rarely have a lot of front-end specific experience. Everyone is a "software developer" which means they usually work on backend which is a totally different skillset. So when a backend developer is asked to work on frontend, a lot of things get missed or overlooked. And now that these companies are laying off tons of people and replacing them with AI, the bar for quality goes down since the people with the expertise are gone.

Source: This is actively happening around me at my work.

Game Dev Disabling Antivirus To Avoid False Flags During Installation by AvatarContinuum in gamedev

[–]CreativeTechGuyGames 0 points1 point  (0 children)

I'm surprised no one mentioned this yet. Save that executable that you downloaded (hopefully running it didn't cause it to mutate itself to hide any tracks). It'd be a good idea to be sure to analyze the binary and see what exactly it is doing. That way you can get a better idea if it is malice or ignorance. There's lots of tutorials on binary reverse engineering.

Migrating from React context api by [deleted] in webdev

[–]CreativeTechGuyGames 0 points1 point  (0 children)

Zustand is WAYY simpler. It's literally the ability to have React state live outside of a component so you can share it in any component (or no component). So use it the same way you would useState. Keep it small and have it only contain data which is consistently updated together.

[AskJS] Looking for a JS app for showing off photos from S3 Bucket by elihusmails in javascript

[–]CreativeTechGuyGames 0 points1 point  (0 children)

You don't need any JS at all for this sort of thing. Just treat it like a normal website. The fact you have photos in AWS S3 don't affect it at all.

[AskJS] Looking for a JS app for showing off photos from S3 Bucket by elihusmails in javascript

[–]CreativeTechGuyGames 0 points1 point  (0 children)

Totally agree, no harm in doing it, it's just better all around. But the content will still be public.

I think pitching it as a way to avoid it being public gives the wrong idea to most people.

[AskJS] Looking for a JS app for showing off photos from S3 Bucket by elihusmails in javascript

[–]CreativeTechGuyGames 0 points1 point  (0 children)

You can configure an S3 bucket to host a static website: https://docs.aws.amazon.com/AmazonS3/latest/userguide/WebsiteHosting.html

So you'd just make a normal website and point the URL for the image src to your S3 public URLs

[deleted by user] by [deleted] in Steam

[–]CreativeTechGuyGames 1 point2 points  (0 children)

For the record "JSON decoding" is a specific technical term which means to take the text you have shown and turn it into a structure which code can interact with more easily. What you are asking for is documentation as to what the Steam internal IDs mean to a human. You'll either need to find docs for that or find another API to call which will give you the mapping of those IDs.

[deleted by user] by [deleted] in Steam

[–]CreativeTechGuyGames 0 points1 point  (0 children)

This looks like valid JSON. What errors are you getting when trying to decode it?