Dor Shinar

Dor Shinar

@dorshinar.me

I engineer the software. Mostly TypeScript and React. Yalla Maccabi! dorshinar.me

70 followers226 following156 posts

קצת עושה לינקדאין אבל נפתחה אצלנו משרת full stack עם דגש פרונט עושים ריאקט ופייתון ומלא אבקת AI ‏https://www.comeet.com/jobs/ai21/E6.001/full-stack-engineer/C8.F4E?coref=1.10.r8D_E08&t=1736264925967

הגעתי לחלק ב-Lies of P שהוא פשוט בולשיט אחד ארוך בוסים עם קומבואים שאי אפשר לחסום שמורידים לך את כל החיים

ועכשיו הוא זכה במשחק השנה לא שיחקתי בשאר המועמדים אבל זה מוצדק לגמרי מבחינתי

Dor Shinar@dorshinar.me

סיימתי את Astro Bot משחק מושלם מכל בחינה, חמוד בצורה קרימינלית, כל אינטראקציה הכי קטנה עשויה מעולה המוזיקה מעולה, השלבים המיוחדים אדירים

הפרודקט מידרו את הפיתוח ולכן שוחררו באגים לפרודקשן ‏אני בכלל לא ידעתי מה הדרישות לפני תחילת הספרינט

I really wish there was a way to tell Cursor to prefer intellisense completions over AI completions when available Too many times I tab to insert the completion only to find that another row was changed because of AI

Dor Shinar reposted

a lot of the re-render "fixes" people are sharing have no perceivable impact other than seeing less of the highlights flashing

Dor Shinar reposted

Replying to @rossipedia.com

The novice generally isn't aware of the complicated solutions, so the code is simple. The master has considered and rejected the complicated solution, so the code is simple.

סיימתי את Astro Bot משחק מושלם מכל בחינה, חמוד בצורה קרימינלית, כל אינטראקציה הכי קטנה עשויה מעולה המוזיקה מעולה, השלבים המיוחדים אדירים

Very interesting read While reading it I had a thought - why do we have <input type=“radio”> but <select>? Why not <radio> or <input type=“select”>?

Multi-State Buttons Typically, buttons are either pressed or they aren't. But as long as you handle it accessibly, you can make a group of radio inputs look like a multi-state button with some CSS trickery.

Devs: we want better tools for CSR Framework devs: Here’s SSR Devs: We want CSR FDs: here’s a fullstack framework Devs: Our server’s in another language FDs: Try RSC Devs: *use @tanstack.com query*

I find it baffling that the React team insists on separating between RSC and SSR, when clearly for the majority of people they are one and the same

Dor Shinar reposted

Replying to @threepointone.bsky.social

I've still never shipped an ssr app 🤷‍♂️ They definitely have their place but it's just one of those things where the needs of the 1% drive the fashion for everyone else

How do you manage mocks in your tests? Do you store entire objects or just the values accessed by your code? Specifically mocks from 3rd parties. When testing modules that need external data, I often need to create mocks so that our tests don't rely on said 3rd party.

View full thread

I'm thinking of shrinking them to only what's being accessed, but then in the future if we ever use a property not found in the mocks we would need to go and refresh all the mocks.

OTOH, having entire objects (which sometimes can be 100 lines long each) makes it so it's super hard to tell whether mocks are uptodate or not.

How do you manage mocks in your tests? Do you store entire objects or just the values accessed by your code? Specifically mocks from 3rd parties. When testing modules that need external data, I often need to create mocks so that our tests don't rely on said 3rd party.

I end up with mock files that are thousands of lines long to simulate the different cases for the tests, which become very unyieldy very quickly. I usually simulate the test case with the 3rd party enabled, copy the response object and save it in a fixture file.

But in order to simulate many different cases I end up with 10-15 permutations of the same object, all slightly different from one another.

When determining if I can use a feature, a baseline of 95% in caniuse is usually fine Below that I’ll go and check out analytics to see what browsers my users use Below 90% is usually a no-go zone, unless it can be easily polyfilled

Dor Shinar@dorshinar.me

If caniuse says 95% I am usually fine with that, if it’s around 90% I’ll go and check what browser versions my users use and polygill as needed

[ספוילרים Arcane עונה 2] לא אהבתי בכלל איך שהסדרה הסתיימה הפרק האחרון היה נוראי, הרגיש כמו Deus Ex Machina מכל כיוון אין כמעט שום קשר בין העלילה של העונה הראשונה לשנייה כל הבילד אפ לקרב האחרון קרה פרק לפני, ומה לעזאזל קרה עם ויקטור? [ספוילרים Arcane עונה 2]

Please don’t do that

Sometimes I feel the algo here gives a bit too much priority to reposts. Too often I see 25 reposts right after each other, of the same person. That almost forces me to unfollow them.. Especially if it’s all similar things, and things I don’t like. What’s your feeling?

I was skeptical of Apple’s new motion cues feature in the iPhone, but it freaking works I frequently get nauseated if I use my phone on the bus, but I feel a dramatic improvement with this thing on

I wonder what makes @bsky.app decentralized *now* I see many people bring it up, but I can’t see why Can you setup indie servers and connect? Can you store your posts in a DB you own? Bluesky is open source which is great, but that does not automagically imply decentralized