
👨🔧 SWE @Honorlock 👨🏫 Latest course: https://nitter.gq/t.co/dKCtCBOuBN 🎥 YouTube https://nitter.gq/t.co/zewuPd83F4 🎓 Currently practicing/learning #TypeScript
Ontario, Canada
Joined March 2015
- Tweets7.3K
- Following522
- Followers955
- Likes8.8K
Fletch (Dan Fletcher) retweeted
One key thing I've learned about habit building is that following the routine is more important than knocking it out of the park each time. Even a horrible, short workout when you're feeling off is worth it... if only because you don't break the pattern.
Fletch (Dan Fletcher) retweeted
You're tired of AI tweets. I am, too. But it really is amazing that we all inherited a free (or nearly free) personal virtual assistant.
As a very small business owner, things like this save *so* much time.
Fletch (Dan Fletcher) retweeted
useRef is pretty weird in TypeScript.
Here's a couple of gotchas that I always run into:
Fletch (Dan Fletcher) retweeted
In today's video we learn how to spot n+1 queries & how to fix them. We use a tool called Clockwork which integrates nicely in your browser and gives you insights on your app runtime. Check it out 👇
youtu.be/LyK7fy-DR-w
Fletch (Dan Fletcher) retweeted
At a previous job, users complained about how inaccessible our product was. A few of us tried to convince leadership to prioritize #a11y, but to no avail. Here are my learnings and persuasion tactics if you're in the same boat! uxdesign.cc/why-should-i-car…
Fletch (Dan Fletcher) retweeted
The tech industry has some funny idioms, so I decided to select my 5 favorites, dive in, define them, and find their origins.
If you're new to tech and have ever wondered what rubber duck debugging, bike shedding, or dogfooding means, give it a read! levelup.gitconnected.com/dem…
Fletch (Dan Fletcher) retweeted
TypeScript annoys me sometimes.
So, I decided to do something about it...
Fletch (Dan Fletcher) retweeted
Want to improve your web development skills? Take a step back and revisit the basics. Strong foundations lead to great results. 🧱💻
Fletch (Dan Fletcher) retweeted
If you don't know generics, I promise you'll understand them by the end of this thread.
I like a challenge.
Fletch (Dan Fletcher) retweeted
useZodState for a typesafe alternative to useState. All you need to do is pass in a Zod schema 🔥
![export const useZodState = <T extends z.ZodType<any, any>>( schema: T, defaultValue: z.infer<T> ) => { const [state, setState] = useState<z.infer<T>>(defaultValue); const setStateWithSchema = (value: any) => { setState(schema.parse(value)); }; return [state, setStateWithSchema] as const; } const [example, setExample] = useZodState(z.number(), 0);](https://pbs.twimg.com/media/Fo8hj3GaMAEFuuA.jpg?name=small&format=webp)
ALT export const useZodState = <T extends z.ZodType<any, any>>( schema: T, defaultValue: z.infer<T> ) => { const [state, setState] = useState<z.infer<T>>(defaultValue); const setStateWithSchema = (value: any) => { setState(schema.parse(value)); }; return [state, setStateWithSchema] as const; } const [example, setExample] = useZodState(z.number(), 0);
Fletch (Dan Fletcher) retweeted
If you're looking to for a Mentor, please introduce yourself and what kind of mentorship you're looking for. Hopefully someone will chime in and help you out.
Last time we did a mentor post, many people found a mentor. Let's do another round!
Fletch (Dan Fletcher) retweeted
I've been slowly working away on a game development site sidequest.dev/
I have a totally free online book to create Flappy Bird from scratch in the web as well: sidequest.dev/courses/flappy… - demo of what you'll be building available on the welcome page :)
Fletch (Dan Fletcher) retweeted
Question for those who don't use TypeScript. What's the reason you're not using TypeScript yet? Or why haven't you even tried TypeScript yet?
Fletch (Dan Fletcher) retweeted
What an exciting way to start this weekend. Space with @ShawnBasquiat , @arya_akhare @rupali_codes and 50 other participants. nitter.gq/i/spaces/1YpKkgedjNoKj
Fletch (Dan Fletcher) retweeted
Why should we hire you?/Why do you want to work here?
Answered questions like this so many times and this is often a question many people slip up on.
Here is exactly how you can answer this like a pro!
- Know your Audience
- Research
- Tailor your answer
Fletch (Dan Fletcher) retweeted
I've been playing with a sand simulation using my ECS. It's so relaxing to fiddle with!
github.com/jakeklassen/ecs
Fletch (Dan Fletcher) retweeted
After 10+ years of trying to find an approach to CSS architecture that was productive and easy to maintain, this is what my *hand-written* CSS eventually looked like once I found something that finally worked.
Did it still count as CSS then? 🤡








![const arr = [1, 2, 3, undefined]; const result = arr.filter(Boolean); console.log(result); // Array<number | undefined> // WHYYYYYYYYY](https://pbs.twimg.com/media/Fpay1evXEAEJvKv.jpg?name=small&format=webp)













