Thomas Scharke
@t_scharke
Followers
873
Following
9K
Media
364
Statuses
3K
Software Engineer • Remote Worker • #JavaScript • #TypeScript • #React • #FullStack • Header by @gamell
Bochum, Germany
Joined November 2012
React hooks are full of footguns that make it easy to introduce bugs in your code. I have trained hundreds of developers on React and how to use React hooks effectively. Here are a few of the most egregious and common ways people misuse hooks. 1/n
20
88
1K
20 Javascript mistakes that most developers make and their solutions.
10
139
773
Thinking of launching a series of short #TypeScript articles called Type Helper Explained 🤔 My goal is to: ✨ Break down real-world type helpers into bite-sized pieces ✨ Teach you advanced TS techniques along the way First up: OptionalKeysOf<T> 🎉 Link & more below 👇🧵
5
14
215
This presentation to TC39 has me *worried* for the future of JavaScript. I Do not like this phrasing. Let's dive in 👇 (1/35)
13
55
377
CSS Clamp function 🌟 -> clamp() is a function in CSS that provides a concise way for combining both the min() and max() functions. ⚠ Note: This can be achieved by this also - min(100px, max(50%, 200px))
20
139
1K
Came up again today, so PSA: Object.hasOwnProperty doesn't narrow in TypeScript. Use 'id' in data instead.
28
53
685
Let's talk about another crazy TypeScript trick: `T[number]`. It looks like absolute insanity. But I promise by the end of this thread, you'll know how it works. Let's go 🧵
34
133
2K
"it's unreadable" "a maintenance nightmare" "please don't do this" Your complex types don't need to be complex to use. Let me show you 🧵
46
135
2K
Time to talk about one of the strangest TypeScript tricks around. It's the loose autocomplete trick. And it's ACTUALLY USEFUL for app development. Let me explain 🧵
65
299
3K
So many folks don't know about structuredClone. It's awesome, built-in, and supported in all major browsers. Let's learn 🧵
98
389
4K
Habt ihr ne FritzBox von AVM zuhause? Dann habe ich keine guten Nachrichten für euch, denn: "AVM von Investmentfirma gekauft" Ja und, who cares? 🤷 Doch, daß ist relevant. Sucht euch schonmal langsam einen neuen Router. Denn immer, wenn solch ein Unternehmen von einer
82
80
343
CSS tip: Create dynamic CSS-only tooltips, using the `attr()` CSS function.
8
21
164
There's a bit of confusion about import type knocking around. Here's how it works:
22
92
957
Quiz: Let’s see how well we understand React Server Components. Here are 12 questions. Question 1: Can a client component render a server component?
17
28
284
Here are six cool AI code review tools that integrate with GitHub: 1. Bito AI Code Review Agent: Offers comprehensive automated code review solutions, focusing on identifying bugs, code smells, and security vulnerabilities in pull requests.
1
1
5
Brandolinis Gesetz Alberto Brandolini ein italienischer Informatiker: „Das Widerlegen von Bullshit erfordert eine Größenordnung mehr Energie als dessen Produktion.“ Ich sehe das pessimistischer. Es sind Größenordnungen (Mehrzahl). 🫤 Daraus folgt: Empfänger von Falschmeldungen
25
114
505
Hi #JavaScript Testing Friends! What are you using to mock server calls in your tests (for example with @tan_stack Query): - #nock - @ApiMocking Mock Service Worker - something else? ...and why? Thanks a lot! 😊
1
1
3