Bret Hudson
banner
brethudson.com
Bret Hudson
@brethudson.com
29 • He/They • AuDHD

✏️ Code/edu/tutorials @write.games. Used to run indieFunction.com.
↗️ Developer Success @clerk.com

Opinions are mine – feel free to make them your own

PFP @knitetgantt.bsky.social
Fun game! I made it to 31 😄
November 27, 2025 at 7:03 AM
Or maybe 90.deg? Idk which makes more sense
November 24, 2025 at 2:14 PM
Considering embracing it and adding a .rad method to Number.prototype so you can do this kind of evil:

Math.cos(90.rad);
November 24, 2025 at 2:13 PM
There are no text boxes in my case; it's all just code. I want ease-of-use while also being interoperable with other JS libraries (Three.js, D3.js, etc)
November 24, 2025 at 12:30 AM
Fuck, that's a good argument
November 24, 2025 at 12:13 AM
Reposted by Bret Hudson
In the US Who Wants To Be A Millionaire? 2nd edition video game from Eidos & Jellyvision, entering your name as "Regis", "Millionaire", or one of the actual $10^6 winners on the show would result in the game changing your name to "Faker" or "Cheater". So I could not play the game as myself.
July 5, 2025 at 11:00 PM
We'll crossy that road when we get there...
November 24, 2025 at 12:09 AM
By "more accurate" do you mean in terms of being mathematically proper?

Degrees, much like fahrenheit, are less affected by floating-point errors than their more "compact" alternatives
November 24, 2025 at 12:07 AM
Both arguments are valid: we need not concern ourselves with the level of optimization and compression needed in the 90s, yet many programmers (across all disciplines) neglect it entirely and risk being careless with memory/compute resources
November 24, 2025 at 12:05 AM
That's the way that I like to work as well! It also makes debugging more intuitive (37.9271° is easier to visualize than 0.622 radians)
November 24, 2025 at 12:02 AM
Incorrect values being values outside of -π to π for radian functions, for example?
November 24, 2025 at 12:01 AM
This feels like The Way™

I'm considering creating my own trig functions that wrap JS's internals with a deg-to-rad conversion
November 23, 2025 at 11:59 PM
In my case, all the built-in trig functions in JS's Math object use radians, but I'd like to use angles for my methods. I dislike the overhead of "what does this function expect?" but also don't wanna add a "Deg"/"Rad" suffix to my functions
November 23, 2025 at 11:48 PM
Reposted by Bret Hudson
November 17, 2025 at 9:08 AM