That is why this is one my favorite talks:
www.youtube.com/watch?v=MlPQ...
Posts by Renato Lacerda
One of the reason there are eslint rules that enforce using an arrow function in callbacks.
Documentation that is just code summarized by an LLM (but not thoroughly reviewed) is worse than nothing. I would rather run the prompt myself and be cautious with the result, than assume the documentation is right when it is not.
Started doing that, but after a few weeks I felt less and less conected to the code. The problem is that I'm responsible for it, yet I'm not 100% sure what it does. If someone asks "Does it handle X?", you can only say: "I would have to ask claude"
See how fast we went to the moon, and then we just stopped there.
Me checking to make sure I didn't accidentally bring a gun on my flight.
screenshot of a terminal running the command `git push origin main`, the output of the command has been modified to show a video player advertising squarespace, as a parody.
An HTML snippet showing a div element with nearly 30 classes applied, totaling more than 700 characters.
Mhmm yes this totally makes my job easier
wrote some things I've been thinking about ai
... and it ended up feeling very personal
roe.dev/blog/the-go...
Are you narrating and using whisper-x for timestamping? Or are you using a IA clone to read?
My biggest fear is that this will lead to closed communities, making it harder for new developers to contribute.
For day 13 of #blogvent, I wrote about vibe coding... and how boring it is.
cassidoo.co/post/vibe-co...
This was actually one of the few extensions I was missing from VsCode 🙌
Insane. Can't wait to share with my team.
AI coding sucks
CJ just one-shotted a 15 min rant and it's incredibly refreshing.
www.youtube.com/watch?v=0ZUk...
I'm on the same boat. Sometimes I'll just email myself the task and scheadule the send date.
I heard a rumour that they're releasing HTML6 next week, which deprecates semantics and introduces 3 new types of div.
Can't wait!
Which reminds me of what @anatudor.bsky.social wrote about ChatGPT and CSS solutions: frontendmasters.com/blog/chatgpt...
On the subject, how is nuxt support for dotenvx? I really liked the idea of the encrypt .env, but I'm not sure how to integrate with nuxt. (maybe I can write a module? 👀)
I think @wagslane.bsky.social talked about doing that for the helper bot on boot.dev
I guess doing something similar with flex is impossible, right?
I needed flex with wrap, but applying a margin left on the odd rows and margin right on even rows.
It might be possible with JavaScript, but I didn't try.
I would love to see `Rescript` working with Vue/Nuxt 👀
A TypeScript code snippet showing two type aliases for defining asynchronous data states. The first type, `State<T>`, is a concise discriminated union with four possible states: - `{ status: "loading" }` - `{ status: "idle" }` - `{ status: "done", data: T }` - `{ status: "error", error: Error }` The second type, `StateVerbose<T>`, shows a more explicit version of the same states, using the `never` type for properties that shouldn't exist in a particular state. For example, in the "loading" state, `data` and `error` are explicitly marked as `never`.
@mattpocock.com Do I need to include fields that are "never" in discriminated unions? ChatGPT keep telling me the second one is "safer" but I don't believe it.
A screenshot of TypeScript code implementing a recursive conditional type called ValidSequence. It validates a readonly array of colors against a union type ValidPairs. The logic recursively checks if each adjacent pair in the input array is present in ValidPairs. Test cases in the image demonstrate its validation for both valid and invalid sequences.
Decided to challenge myself and solve @cassidoo.co interview question of the week using types only. It's possible 🤯
This challenge got me so hyped, it was the perfect excuse to write a blog post!
renatolacerda.com/en/blog/vali...
Yes, but I rarely find a use for it. Most of the time you can lift the state and make the componet "more pure"
While the new `useTemplateRef` composables makes using it WAY EASIER, it's still something I rarely need to reach for
But I did use it today to write a wrapper around a `dialog` element.
That is why I always set `pwfeedback` on visudo
Image is a print of the following CSS Code: ``` :where(.g-card) { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 1rem; border-radius: 0.5rem; box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1); background-color: #fff; } ```
Is it crazy to use prefixes for global css classes when using scoped style (vue and svelte)?
- Easier to know where the style is coming from
- Harder to get conflicts
- 0 specificity with :where make it super easy to override it
@w3cj.com & @tolin.ski were talking about hard to find global styles.