Just posted about why I created the Streamline Card for Home Assistant and how it works! My goal? A cleaner, more intuitive HA UI. Check out my thoughts and the card itself here:
https://t.co/a3Ve8X8Kdt
After my latest blog post about my Home Assistant dashboard, I had a lot of requests on how my weather card could handle a weather sensor.
The answer is: custom templates! here is how I created mine: https://t.co/c3v97WKzgS
Accelerate JavaScript testing with Bruno Sabot's (@brunosabot) Vitest fake timers. Ensure precise timing scenarios and reliable function debouncing for efficient unit testing. (11/16)
https://t.co/LplTgn3zNd
New Blog Post! During my lost hours, I love to tweak my home automation system.
If I use Home Assistant to build my dashboards, I bring it to another level with Bubble Card.
Here's how: https://t.co/oLqKp8tBlo
🕒 Mastering time in testing is crucial for efficient development. @BrunoSabot explains how Vitest's fake timers can speed up tests, isolate functionality, and simulate specific timeouts, ensuring faster and more reliable unit tests. #SoftwareTesting#Vi… https://t.co/oCwg77dEBF
New blog post: Mastering Time: Using Fake Timers with Vitest
https://t.co/kNPBk5aN24
It's been a while, but I very happy to share this content.
Big thanks to @gitconnected for accepting me as a writer
`useWhyDidYouUpdate("MyComponent", props);`
This hook will let you know from the console the attributes of an object that have been updated, causing rerendering.
You should use it to avoid unnecessary renders.
#techtweets#day200
When writing JavaScript, you should always pick functions over classes.
For the same result, the code generated by Babel with be smaller with functions.
#techtweets#day199
You can use intersection types to extends an existing TypeScript type.
It is useful to reuse and factorize some pieces of definitions.
#techtweets#day198
With ECMAScript 2022, JavaScript now has private fields in classes.
You need to prefix an attribute or a method with # to make it private.
#techtweets#day197
`git config --global --add --bool push.autoSetupRemote true`, starting Git 2.37.0, will automatically set the up the upstream branch, and will save you from `git push --set-upstream origin feat/awesome-feature`
#techtweets#day196