
gokhan
@gkurttech
Followers
113
Following
274
Media
23
Statuses
103
Frontend enjoyer
Joined April 2022
Typescript Tip: Use type maps instead of unions for clean usage and easier type transformation
0
0
1
It's dumb to make your employees change their passwords every N months. It probably achieves the opposite of whatever you are aiming for.
0
0
0
Typescript tip: Define a type like "type TODO = any" and use that instead of "any". This way, you will have easy access to all the places you intend to fix later.
0
0
0
My day is ruined because the little fun project I was building with v0 reached a point where every prompt makes it worse. Now I have to take over and do the rest myself.
0
0
0
I started doing a lot of vibe coding in a JavaScript/Rust project. The coding agent is very good at Rust, and I find it very useful. But I happen to rewrite nearly all of the JavaScript code it writes. Can you guess why? Because I am bad at Rust.
1
0
4
TanStack Store is too underrated. It doesn't have many features, but it covers all global state management needs with a few wrappers.
0
0
3
Here is an alternative that produces a more correct and complete result. I like the first one better for its clean output.
0
0
1
Finally found a way in Typescript to extract a function from a union type in a type-safe manner. Can't believe it's this difficult.
1
0
1
Viral tech events in the last few weeks indicate one thing: Drama sells
0
0
3
Cursor tends to use useEffect a lot, huh. Tells me all I need to know about its ability.
0
0
0
40 story points in a sprint, 35 completed. 80 story points in another sprint, 75 completed. PM:
0
0
2
Man, I hate this era. Even a startup with a great value proposition must post hundred memes a day to stay relevant.
1
0
3
CSS Tip: This is the only line-height you’ll ever need for consistent line spacing. line-height: round(up, 1.32em, 12px);
1
0
0
I am sure Apple did a lot of user research before implementing the new design. Can we all agree now that user research doesn't work most of the time?
1
0
2
- npm start > Missing script: "start" - npm dev > Did you mean: "npm run dev" - npm run dev ... Every time
1
0
2
So I invented a more concise and fancy way to write class components. Surely you could have better control over elements, better performance, and more interesting patterns with this. But you may reinvent React hooks while trying to achieve that. See you in another experiment ⚛️
0
0
1
While I was expecting to find a new paradigm with generator functions, that wasn't the case. If you think about it, generators keep an internal state and generate a new result in each invocation. That might sound familiar because that's exactly what React class components do.
1
0
1