

This is a LinkedIn screenshot, sry if I cropped it too tight


This is a LinkedIn screenshot, sry if I cropped it too tight


A bunch of weeks ago the CTO of my company calls me up to ask about my prejudice against the useState hook, I’m guessing I’ve just been giving my team too much shit in code reviews about them using useState hooks and they went to complain to him and he asked me to explain what the value of the useReducer hook was.
His background is Java, Microsoft Java, C++, and not much else.
So I was able to explain to him the value of the useReducer hook is a lot like the common class object. In useReducer you’re expected to write discreet state mutations and the state could potentially have more than 1 primitive field that gets mutated, and that’s just what object classes are! In an object class you’re writing methods for mutating the underlying state, the reason I think most people don’t feel like these two things are the same is because of the functional appearance of the reducer function and how in object classes you have the this as a variable just like any other, so you’re not returning a new state.
So just like in react where they’re installing REDUX (like three generations of their families would be massacred if they didn’t) just to write a switch case statement that puts the action in variables in the state. Bad programmers are just bad.


Only typescript is great. Raw JavaScript is like rawdogging someone (iykyk), you get STDs


A perfectly accurate statement when the set of all use cases for PHP has 0 things in it 👍👍👍👍👍👍👍👍👍👍 1000000000% agreed


I’m so heartbroken by the idea of unit tests. My first job was at a home automation startup and our primary product was a device that we would send ota firmware updates to. The device was based on an esp32, and because it received software updates from the app it had to be 100% robust and had full test coverage and the mono repo that would compile the firmware was gorgeous.
I’m a web developer and I’ve been wanting to replicate that exact experience ever since but I just can’t get any team on board. It’s gone to the point where if the llm writes a unit test I’ll just commit it so I don’t care.


Tab chars are better than spaces AND the correct tab width is 2 spaces


React works by maintaining a virtual representation of the DOM. When you dispatch state changes into the virtual DOM react can determine which components depend on the change and which side useEffects run.
My gripe is that YouTube tutorials teach that the useState is the equivalent of a variable. This encourages average developers to problem solve solutions that end up using React’s Virtual DOM for business logic. The YouTube tutorials have react devs planting 100s of useStates - some of which don’t directly induce a visible-on-screen rerender - and then ⅒ as many useEffects to bind these states together. This means that for the Virtual DOM to come to the conclusion as to what html elements need to be changed and how it has already mutated 20-50-100s of times and the CTO tells me the react app is slow and they’re mad.
If 2 states have the opportunity to mutate each other back and forth then the truth is that you have 2 perspectives of the same state. And React gives you solutions for that - proper solutions - the useReducer hook is for defining these complex state mutations and the Context API for communicating that state to any component.
And this has me quintuple pissed off because these same tutorial grade react devs install REDUX as compulsively as a pack-a-day smoker (that’s #3). They use Redux to file variables in JavaScript memory (that’s #4) like it’s a global variable and rarely if ever use it for the complex state mutations they need instead I’ve seen react devs write components pull state out of redux into a component just so it can mount useEffect and process the state and dispatch the result back into redux. Let’s not even bring up how the react-redux binding library literally uses the React Context API (that’s #5).
Sometimes I take screenshots of this guy’s comments bc he’s like opinionated and funny


Mine drops down from the top of the screen… haven’t explored the software standard enough but I’ll check


I remember reading this news article about people trying to get oil out of Iran and they were doing it by dumping it into this concrete-lined hole and the explanation was that there’s a pipe running between the hole across the border to I guess another team who receives the oil… so it looks like you’re just dumping oil into the desert.


I guess just over time I noticed how bad of a judge of character they are and they don’t live around me anymore they don’t do the same things that I do anymore they’ve been getting short and snippy with me and I’ve been feeling for a long time that I want new people in my life
25 is underrated


I’ve been experimenting with a federated social media system if you used GPG for user authenticity. Userless
Make sure to seed them


As a bottom I can give you one rule: penetrative sex of any kind is not supposed to be painful.
If it is then there’s usually a diagnosable problem to fix. It’s not always physical it can be really spiritual. I struggle with bottoming usually because I need to like the person I’m with enough to relax, it’s called being demi-sexual.
I feel like tops of any sexuality don’t really grok how intense of an experience it is to let someone into your own body such that when they’re in they don’t know how to respect what’s in there. Sometimes it does get so intense that it comes out of your voice, sometimes for me at least it gets too intense and I’m not sure if it feels good or bad so I need my top to slow down and let me figure out how things got rearranged.
Lastly, porn recorded by total nobodys on a webcam or iPhone is just barely grazing the boundary of reality. So if you’re not vocal, you don’t scream, then you just don’t like that just not you.


I know what you’re getting at and I firmly believe that it is some love thermodynamics that you cannot get more information out of a system than you put into it.


I guess that’s kind of what I was trying to press with the example I was giving.
I don’t need external validation, because I’ve never had it… it’s like you can live your whole life without adding spices to your food and you could just know what tastes good.


An excellent use of scrape wood
I don’t see how it would happen. Nix is immune bc hashes are constantly checked, you can’t swap in malicious code without a person noticing bc it might throw a mismatched hash error. Also nixpkgs has been really good about vetting packages, I don’t expect them to look too closely into the source codes of everything but if something malicious were to happen like what is happening to AUR someone would see it way faster
Waaaooww what a position
I’d want to disagree bc I know Nix and that feels declarative to me where as html just feels like actual drawing, like there’s no conditional or iteration therefore how are you transforming information? HTML is a markup bc you need to render a UI and you don’t know anything about the screen or keyboard&mouse so cope