@AdamRackis I hate when people criticize the “visual” aspect of any code. Readability, clarity, and structure are fine here, and saying it’s “ugly” for aesthetic reasons is such a low brow way to punch down to the front end web dev ecosystem. Extremely cringe.
@ajax_marsad @alfonsobries @iammemeloper Doing a loose equality comparison is usually a sign of an inexperienced developer misunderstanding strict vs loose equality or someone trying to cut corners by leveraging the weirdness of JavaScript. Either it has potential to cause unexpected behavior
@Kirorus1@alfonsobries @iammemeloper null !== undefined is right but that’s not the check. The condition is !=. For undefined user this returns null because null == undefined
@nexxeln curl is best but I need a way to not have to manually paste my auth token into header for every authed request or I will lose my mind. Postman definitely has become a bloated clusterfuck. Maybe i’ll try insomnia
@mattpocockuk In my experience it’s often an ego thing. Explaining the technical advantages is useful but when teams resist because they feel they’re above the law or “I know what I’m doing”, I try to approach it from that angle and talk about how when things get complex, 🧠 stupid, 💻 smart