zaff.dev
262 subscribers
80 photos
5 videos
176 links
random notes, thoughts and findings by @thezaff
ceo https://bodr.ing/
Download Telegram
Forwarded from UfoStation
Advent of TypeScript

Набор заданий type challenge для TypeScript, который будет открывать по одной задаче в день с 1-ого по 25-ого декабря и может послужить отличным поводом или дополнительно попрактиковаться, или изучить работу типов в языке.
👍6
You’re a React / Next.js dev. How you name your component files?
Anonymous Poll
60%
PascalCase
28%
kebab-case
11%
other (I’m a creep, I’m a weirdo, what the hell am I doing here)
zaff.dev
You’re a React / Next.js dev. How you name your component files?
I am used to kebab-case for the last 4-5 years. Because a while ago Git was not able to track filename changes, if you only change the letter cases.
E.g: header.js > Header.js would cause, that in your FS you would have new name for the file (`Header.js`), but you would still commit header.js.
This, in turn, would cause your imports fail to resolve, on whatever env you clone your repo 🙂
I am starting to work on a new project. So I think I'll be gathering a lot of opinions in next posts.
My previous project lasted for around 2 years, and there was not much freedom in terms of choices.

If you start a new Next.js project, what would you choose to write styles?
I am considering tailwindcss.com + cva.style

I need something:
1. Three-shakeable
2. Does not require JS in runtime
3. Composable + safe at the same time

CVA seems to provide the safety and composability, but it's still beta. So I'm worried a bit :)
PocketCasts wrapped
❤1👍1
What project structure are you using with next.js?
- Do I get customer support service?
- Yes
🤯3
How do you implement a carousel in 2024?
👍1
zaff.dev
?
Why is this anonymous? 🙁
Ok, explain your point in comments
zaff.dev
?
why spec tho?
fyi: my new favorite theme is catppuccin mocha
p.s. jetbrains mono font is so clean, using since release, can’t believe switching to any other font anytime soon
❤1