Randhir Kumar

@herandhirs.bsky.social

When something is not a DNA of a company, that feature often becomes subpar. In this case, with Deep Research: ChatGPT's Deep Research on the same prompt regularly takes ~5x as long as Perplexity... while scanning fewer sources! Perplexity's DNA is search+speed, and it shows

what’s wrong with this code: if (props.wrap) { return ( <Wrapper> {children} </Wrapper> ) } return children

Lil’ TypeScript tip: Instead of using `@ts-ignore` for stuff you don’t feel like fixing rn, use `@ts-expect-error`. When you do fix the issue, `@ts-expect-error` will *itself* become an error (which you can fix by deleting the comment). That way, you avoid stale ignores that aren’t needed anymore.

Screenshot of code showing a "@ts-expect-error" comment with a red underline. A label reads "I fixed the issue, and now the TS compiler will let me know to remove this flag"

If you’re building a website or app from scratch, it’s so much cheaper and much less stressful if you add in accessibility from the start. I’m currently trying to retrofit accessibility features and it’s taken a week to do something that could’ve taken less than a day if done at the start

performance pro tip. if some loading interaction is slow, try removing the spinner. sometimes a spinner makes things slower. i don’t mean just perception-wise. spinners can actually eat CPU

🦋 WELCOME TO BLUESKY! I recommend exploring our custom feeds, which are a little like hashtags but more interesting. We have them for academic and professional subjects, sports, cities, hobbies (e.g., gardening, baking), and many more. Search them in the sidebar under Feeds. 🧵

Hidden benefit of alt text (for YOU, the poster): it's searchable! I can't find 90% of my silly design memes on the dead bird website but here they are all at my fingertips because I can just search for their content

Software is HARD. Especially large, complex software. It always has been. Developers write shitty code because writing non-shitty code takes discipline, deep understanding, and immense coordination across a team. React is not the cause of crappy web apps. Software is. No framework can fix that.

How a `contrast()` #filter works. Subunitary values push all RGB channels of every pixel towards 50%. Alpha remains unchanged. A value of 0 pushes them all the way to 50%, giving us a 50% grey (50% white + 50% black). ✨keyword: grey ✨percentage RGB: rgb(50%, 50%, 50%) ✨HSL: hsl(0, 0%, 50%) #CSS