🖖 crispyscript.com
I usually see this anti-pattern from the code review.
onClick prop in the example may contain another setState() or other side-effects from the parent. Be cautious and don’t call any event handlers inside a setter.
I usually see this anti-pattern from the code review.
onClick prop in the example may contain another setState() or other side-effects from the parent. Be cautious and don’t call any event handlers inside a setter.
Why do people use tools (or pay for them? that generate zero value add comments? What is the end game here?
1️⃣ bit.ly/browsers-pt1
2️⃣ bit.ly/browsers-pt2
3️⃣ bit.ly/browsers-pt3
4️⃣ bit.ly/browsers-pt4
and browser.engineering a free to read book on the topic
1️⃣ bit.ly/browsers-pt1
2️⃣ bit.ly/browsers-pt2
3️⃣ bit.ly/browsers-pt3
4️⃣ bit.ly/browsers-pt4
and browser.engineering a free to read book on the topic
I never check the analytics for it because I assumed it wouldn't get any views, but it's getting ~1k/month! Not a lot, but way more than I expected
I never check the analytics for it because I assumed it wouldn't get any views, but it's getting ~1k/month! Not a lot, but way more than I expected
0.1 + 0.2 !== 0.3
However, many people try to fix it using:
((0.1 * 10) + (0.2 * 10)) / 10
i.e., multiplying floats to convert to integers, performing the calculation, then dividing back to floats.
I don’t think this is a good solution…. [1/2] 👇
0.1 + 0.2 !== 0.3
However, many people try to fix it using:
((0.1 * 10) + (0.2 * 10)) / 10
i.e., multiplying floats to convert to integers, performing the calculation, then dividing back to floats.
I don’t think this is a good solution…. [1/2] 👇
I'm so here for this.
@vitest.dev Browser Mode is a true paradigm shift!
I'm so here for this.
You can write the client and server logic in the same file and it replaces it with fetch calls when run on the client.
No "use client", no errors with client APIs in server components, etc..
watch at 0.5× 😆
You can write the client and server logic in the same file and it replaces it with fetch calls when run on the client.
No "use client", no errors with client APIs in server components, etc..
watch at 0.5× 😆
Me: 🙂 (Realizing that last Saturday I spent the whole day searching for a new vscode theme, so that I keep silent)
Me: 🙂 (Realizing that last Saturday I spent the whole day searching for a new vscode theme, so that I keep silent)
I wrote a guide to break it down and walk you through it!
👉 hirok.io/posts/node-exports-guide
How are you building realtime capabilities?
What are some challenges you run into and how did you solve them?
How are you building realtime capabilities?
What are some challenges you run into and how did you solve them?
And no, 100dvw is not gonna save you.
And no, 100dvw is not gonna save you.
Me: Thanksss 😊
Colleague: The code would be nice & clean. Can I take a look?
Me:
Me: Thanksss 😊
Colleague: The code would be nice & clean. Can I take a look?
Me:
It always goes south when everyone starts posting about the things they hate.
How about this time we all agree to keep it this way?
2. What if I remove this single line. It seems …. useless
3. Everything breaks 😱
4. Add the line back
5. What if I remove another line…
6. Yeah, everything breaks again
7. The loop continue…
2. What if I remove this single line. It seems …. useless
3. Everything breaks 😱
4. Add the line back
5. What if I remove another line…
6. Yeah, everything breaks again
7. The loop continue…
- Javascript/Typescript
- React
- Go
- CSS
- Dog, Cat, Meme
Let’s see how it turns out…
- Javascript/Typescript
- React
- Go
- CSS
- Dog, Cat, Meme
Let’s see how it turns out…