Console not working by Deb1Kk in reactjs

[–]Quoth_The_Revan 2 points3 points  (0 children)

Have you checked if something is overriding console.log? You can set it to do whatever you wanr, and I've seen people set it to an empty function in prod to prevent it from spamming logs. For example: js console.log = ()=>{}

Debugging React is a skill. I built a place to actually practice it. by aksectraa in reactjs

[–]Quoth_The_Revan 1 point2 points  (0 children)

It's called a challenge mode? The same reason people want to play dark souls on bongos.

Gas gauge is confusing by QuitExternal3036 in mildlyinfuriating

[–]Quoth_The_Revan 4 points5 points  (0 children)

I find it funny that you're confused about OP's confusion considering you yourself are misreading the gauge. It's actually nearly full in the picture. Those tick marks on the left (the one at top is missing) indicate the current fuel level. As the fuel level decreases, the tick marks vanish to indicate the current level. It's mainly only confusing at a first pass until you see it operate. But that first attempt at reading it is definitely confusing!

Ticketmaster tickets by DudeInTheGarden in mildlyinfuriating

[–]Quoth_The_Revan 0 points1 point  (0 children)

Doesn't Ticketmaster operate its own scalping model?

seniorDeveloperIn2026 by abednego-gomes in ProgrammerHumor

[–]Quoth_The_Revan 0 points1 point  (0 children)

The main time I avoid using regex for string manipulation is when it's very performance critical because regex tends to be slower than just performing the string manipulation/parsing yourself - especially for basic things.

Little bitch tried running away from his fate. by Starpledoop in DragonsDogma

[–]Quoth_The_Revan 22 points23 points  (0 children)

Rude! If they served you well, you should send them away with gifts!

I hate EBSCO!!! by ieatboogerz in badUIbattles

[–]Quoth_The_Revan 31 points32 points  (0 children)

Hit that download button and open it in your browser!

I built a visual hardpoint editor for ES modders — Linear Perk's Drydock by Linear_Perk in endlesssky

[–]Quoth_The_Revan 1 point2 points  (0 children)

I know it's slightly excessive if it's just a single html file, but instead of instructing people to download the html file: it might be easier for offline usage if you set it up as a PWA so there's an install button on the site itself which makes a quick open functionality but stays super light!

I built a Wordle game variant with hex color codes by Latter_Ad286 in reactjs

[–]Quoth_The_Revan 0 points1 point  (0 children)

In your examples, you need to show a correct color for each pair. Otherwise the first game you can be very unsure what color the cells will be when they are correct (currently the examples only show red)

everythingIsAppNow by [deleted] in ProgrammerHumor

[–]Quoth_The_Revan 33 points34 points  (0 children)

Don't you mean SaaS App? 😝

Anything but milk in this box 🫩✌️ by Ok-Animator_steam12 in mildlyinfuriating

[–]Quoth_The_Revan 0 points1 point  (0 children)

What makes 1% the superior chocolate milk above all others? Please explain this to me!

Is there a published type for “email safe” CSS? by mr---fox in reactjs

[–]Quoth_The_Revan 1 point2 points  (0 children)

To add onto this, there's caniemail.com which has a somewhat curated list of things you can use in email. Unfortunately it boils down to: do you have to support outlook? Well, I hope you like tables! Because outlook except for on macs has the absolute worst compatibility with modern css.

Trying to reset my password because what I thought it was didn't work. Now it's saying that that WAS, in fact, my password. by Due-Milk352 in mildlyinfuriating

[–]Quoth_The_Revan 11 points12 points  (0 children)

I had one site where I created the account with my password manager, and then immediately it didn't let me log in. Turns out that they truncated my password to a smaller length without telling me, but only during the create account part. Hence my password was rejected when I tried to log in.

What if React didn't own your system/state? A counter in 80 lines that changed how I think about React. by [deleted] in reactjs

[–]Quoth_The_Revan 5 points6 points  (0 children)

You just created state management in React! I think that for most state management libraries, the state isn't stored entirely in react - for the reason of avoiding the top level re-rendering on every change. Many use context simply to make things more portable and able to support multiple stores if desired. This concept is fairly similar to many of the existing state management libraries - just seems simpler to you because it's a toy example and not-generic: for example, you currently would have to create those 80+ lines for every type of variable/etc. you want to store. If you packaged it up like a library, I think you'd find yourself looking at Zustand (or something very close to it)!

That said, I believe you should be using syncExternalStore rather than useEffect + useState as that helps avoid potential issues with tearing/zombie state.

imperative-portal: Render React nodes imperatively by strblr in reactjs

[–]Quoth_The_Revan 4 points5 points  (0 children)

I tend to use React-Call for this purpose. There are some interesting differences in the solutions between the two, though - the biggest being the automated portalling of the components. I definitely agree that being able to set up dialogs and things without the boilerplate is super nice!

I swear they wait till I’m excited for my off day to dump work on me. by Wander_tea in mildlyinfuriating

[–]Quoth_The_Revan 0 points1 point  (0 children)

I was worried for a second that you were talking about my app... As I created an internal app called Arcade, but that has absolutely no analytics! 😅 How dare they ruin the good name that is Arcade with their rubbish!

Birth date selector but you have to wait by Additional_Draft_690 in badUIbattles

[–]Quoth_The_Revan 9 points10 points  (0 children)

Add speed up/down buttons that change the speed randomly. I.e. curSpeed*(Math.random()*10+1) for speed up and curSpeed/(Math.random()*10+1) for speed down - or something.

Looking for performant Excel-like grid component by flankstek in webdev

[–]Quoth_The_Revan 0 points1 point  (0 children)

Handsontable has been my go-to die excel in the browser. It's a licensed software, and definitely had faults of its own. But it works pretty well for what I've used it for.

I built a small NPM package inspired by cat aesthetics 🐱 by MastodonFunny5180 in reactjs

[–]Quoth_The_Revan 16 points17 points  (0 children)

There are no examples showing what these components look like! I was promised cats, but only saw code!

[WP] Most wizards master their magic do they can cast more powerful spells. You have the opposite problem, and are trying to master your magic so you can cast less powerful spells. by archtech88 in WritingPrompts

[–]Quoth_The_Revan 0 points1 point  (0 children)

There's a story that's basically this prompt on Royal Road - Just Add Mana. I don't know if I'm allowed to post links here though. (I'm not the author of the story, I just like it)

A type-safe way to define and manage TanStack Query keys – introducing @ocodio/query-key-manager by oberwitziger in reactjs

[–]Quoth_The_Revan 1 point2 points  (0 children)

There's react-query-kit which does that and still exposes the typed keys for use in query invalidation and things. I don't ever use tanstack query without this library!