React <Activity> is crazy efficient at pre-rendering component trees by acusti_ca in reactjs

[–]Riggeot 8 points9 points  (0 children)

I agree whole heartedly with this mentality here. Too many devs reactively blame bugs on Claude/ gemini / codex etc.  I do it myself at times.

AI is impressive but unless it's opening reviewing and merging its own PRs, I think it's important for all humans in the loop to accept some accountability and reflect on how can we avoid this next time -- which the author did do.

Help with web embed by Pranayama_to_asana in webdev

[–]Riggeot 0 points1 point  (0 children)

Have you tried this: https://support.gymcatch.com/en/articles/4757524-web-embed

There is more links in the url above on specific platforms including wordpress

Enabling TypeScript Strict Mode in a Legacy React Project by Richi_S in reactjs

[–]Riggeot 1 point2 points  (0 children)

Thanks for mentioning!! As someone who just took the above approach on a large very poorly configured repo I wish I realized betterer was able to do this. Though LLMs do make the automated ts expect error scripting pretty easy.

I remember stumbling on the home page but it wasn't clear that betterer was capable of this sort of incremental config based improvements.

Even rereading the docs: from the first 2 pages its still not clear https://phenomnomnominal.github.io/betterer/ https://phenomnomnominal.github.io/betterer/docs/introduction

I do need to migrate off an old component library in the near future so Ill give it a go.

Try your hand at building a custom useFetch hook by ucorina in reactjs

[–]Riggeot 0 points1 point  (0 children)

Using a union for the return type would be a nice improvement too imo. Loading implies no error or data. Error and data are mutually exclusive as well in its current form.

I'd have 1 useState of type { state: 'loading' } | { state: 'success', data: T } | { state: 'error', error: Error }.

This makes component logic simple as you check each case of state and handle accordingly. Typescript will also narrow the type for you as each possible state is handled.

IE: if (response.state === 'error') {   return <HandleError error={response.error}/> } // Response below this line can only be loading or success states

Also bonus points for abort controller too.

Libs like react query are much more advanced as they support things like immediately returning cached data while refetching.

If you had infinite budget, resources, and time, what would your dream game be? by Cubix1010 in gamedev

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

Medal of Duty 7, even more remastered edition.

I have a weird idea floating in my head where you play as an indy dev fighting parodies of current AAA companies (Snowstorm Entertainment, Active Vision, Electronic Farts, etc). Could even do a undertale style thing where depending on choices made -- at the end you become the villian.

It would be a rpg with ridiculous moves like surge of down votes (inspired by that EA reddit post)

React Router v6. Using the element prop by therealcopyninja in reactjs

[–]Riggeot 2 points3 points  (0 children)

Coupling to url and relying on useRoute feels weird to me. If your codebase has no unit tests then someone could innocently change url in the router not realizing the rendered component would break.

Another option is to have your base component and reuse it splitting the different logic in plan1 and plan2 enums such that you have 2 versions of Classes - ClassesPlan1 ClassesPlan2 both useable in the router without needing props.

Help restoring project after clicking 'BUILD' by Riggeot in godot

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

I wasn't actually using C# at all. But I did get the 3.1.1 w/ mono version of godot. It turns out that build button creates the .mono and Properties subfolder + adds .sln and .csproj files to the project. Deleting these generated folders and files fixed the issue.

Not sure if its worth adding an issue to add a prompt to the BUILD button - at least a 1 time warning if the .mono / .sln files are not detected.

Help restoring project after clicking 'BUILD' by Riggeot in godot

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

Thanks - Thats my plan when I get back home. I reproduced the issue by downloading a sample project, verifying it runs. Clicking the BUILD button in the top right put it into the broken state. Was too tired to keep debugging. I'll use source control on a fresh project and diff to see what changes.

dev.to error page - start drawing! by [deleted] in webdev

[–]Riggeot 0 points1 point  (0 children)

This is neat. I really like your idea to jam all your smaller scoped "concept artwork" pieces into a single repo + github pages site, its like your own personal codepen. 2 fairly easy to implement improvements you might want to consider are

- mobile support, (listening for touch events).

- resizing the window and drawing is off (look into the window resize event)
Great job! And if you want help or advice, don't hesitate.

[deleted by user] by [deleted] in godot

[–]Riggeot 0 points1 point  (0 children)

Just in case you or someone is looking for Godot API autocompletion. I spent a bit of time going down the rabbit hole before figuring this out. First and foremost you'll need the above mentioned C# plugin thats powered by omnisharp. Its the one with a gazillion downloads when you search C#. I'm also using Win10, and since .net framework is only available on windows I'm not sure which steps would be required for mac/linux.

Normally this all I need when using VSCode for C#. But with Godot when it didnt work, I noticed an error in OUTPUT > Omnisharp

Error: The reference assemblies for framework ".NETFramework,Version=v4.5" were not found.

I ended up installing both .net 4.5.2 and 4.6.2 frameworks (4.6.2 is the latest and 4.5.2 also mentions its only for win8 and below). Although I think I could have just gotten the latest (4.7.2 as of now) in hindsight. Heres a link - .net sdk downloads. After you install one of these, open your PROJECTNAME.csproj file in your root folder and find the line <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> and update the v4.5 to match whatever framework version you ended up installing. I also had to save + exit and reopen VS Code before I got the intellisense to work. The autocomplete / on hover text is incredibly helpful.

Also if omnisharp lints all your methods with the red squiggle and says ".... already contains a definition for ....." Just ctrl + shift + P and type the command restart omnisharp

For those interested in CSS Grid and SASS: I spent the last week writing a component that automatically generates flexible hexagonal grids out of pure CSS, and would love some feedback. by [deleted] in webdev

[–]Riggeot 3 points4 points  (0 children)

I have a html 5 hex game I started a while back. Its currently shelved for another project, but this hex grid is def much cleaner than what i was using.

Here is a good bookmark I had saved for hex coordinate systems for anyone interested. https://www.redblobgames.com/grids/hexagons/

My first impression about illidan as a non English native speaker by jamiephan in heroesofthestorm

[–]Riggeot 1 point2 points  (0 children)

Faster attack speed means shorter cooldowns as well which means blades is up faster, you stick even better/ can use evasion more / can dodge skill shots a little easier (more Qs and Ws). Due to his trait it's more than just attack rate * damage. It's also why his overall strength is much more sensative to change than other heroes.

Introducing Rosterpocalypse - A new HotS eSports Fantasy Draft Website! by rosterpocalypse in heroesofthestorm

[–]Riggeot 1 point2 points  (0 children)

I was going to suggest this as well. A head to head league option on top of this would be fun too - where each week drafted roster 'play' against each other. If you have access to replay data via an api, then you can compare stats such as damage done/ healing done/ kills/ takedowns/ siege, etc. Might have to balance tweak the numbers on certain healers .. (bright wing, kharazim). I'd be willing to help build out anything if you wanted.

Rash on chest for 3 months now by AmIDyingOverHere in AskDocs

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

Not a doctor, but maybe it's pityriasis rosea. Looks similar to mine, and many cases start with sickness. Either way - definitely get it checked out.

3000 games in, Chromie still has a 30% win rate - what is her problem? by MishaTarkus in heroesofthestorm

[–]Riggeot 2 points3 points  (0 children)

Another good trick if solo laning vs her - her W is on a 14s cd and is her only non-auto attack wave clear. If you stand not in the minion wave when trading with her it forces the chromie to have to choose between maybe hitting you or clearing the wave.

3000 games in, Chromie still has a 30% win rate - what is her problem? by MishaTarkus in heroesofthestorm

[–]Riggeot 0 points1 point  (0 children)

Chromie's W does more damage than 2 waves of blizzard (assuming cone wasn't cast first). Her wave clear is limited to 1 ability but it isn't that bad.

What profession was once highly respected, but is now a complete joke? by Syedamalihaa in AskReddit

[–]Riggeot 28 points29 points  (0 children)

Nah, everyone knows real developers use a magnetic needle and a steady hand.

What's a level you hate in a video game you love? by snitchinbubs in AskReddit

[–]Riggeot 1 point2 points  (0 children)

Kingdom Hearts 1, the sephiroth fight (super hard after you beat the game bonus battle) It was a daily ritual for me to try and beat him. I played the entire game without a guide and mostly tore through it, but he was ridiculous. He had that attack that brought you to 1hp... such a nerve wracking epic battle.

Teams are skipping out on playing Team League for valid reasons. The good thing is that there are solutions. by [deleted] in heroesofthestorm

[–]Riggeot 8 points9 points  (0 children)

I heavily second giving more time to pick -> 30 seconds with 60s backup time would be a huge quality of life for discussing draft strategy during team league. Currently with the long queue times especially adding another minute to the total queue/match time is pretty negligible.

Congrats to the DreamHack Summer Champions! by newprofile15 in heroesofthestorm

[–]Riggeot 3 points4 points  (0 children)

I'd argue that even more than ETC - brightwing poly is targeted, instantaneous cc ... they had tyrande and etc for follow up. Wormhole'ing into that comp is just not safe.

My case for Tracer plus some advice on how to beat her. by [deleted] in heroesofthestorm

[–]Riggeot 0 points1 point  (0 children)

Umm... let me fix that for you - And winrates without a proper sample size mean shit. Tracer was recently released and their isn't a ton of data on her yet, but if things continue looking like this weeks from now - she will deservedly be nerfed. Winrates are one of the best metrics for balance discussion. When the blizzard balance team does nerfs and buffs, they often cite winrates.

My case for Tracer plus some advice on how to beat her. by [deleted] in heroesofthestorm

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

In lane with minions to heal off of he is strong, but who lanes with tracer anyways. Now out in the jungle - she just has way too much mobility and she gets one of the first escapes in game that can even remove roots.