🔥 TypeScript Tip #2 🔥
Transform a union to another union, using the 'in' operator as a kind of for-loop.
This pattern can be used for almost any kind of transformation - here, I add a dynamic key.
🔥 TypeScript Tip #3 🔥
TypeScript's string interpolation powers are incredible, especially since 4.1. Add some utilities from ts-toolbelt, and you've got a stew going.
Here, we decode some URL search params AT THE TYPE LEVEL.
🔥 TypeScript Tip #4 🔥
Function overloads can be used in conjunction with generics to make incredibly complex and dynamic type signatures.
Here, we make a compose function - incredibly useful for functional programming.
🔥 TypeScript Tip #5 🔥
The 'extends' keyword is very powerful in TypeScript. Here, I use it to narrow the value of a generic to enable some beautiful autocomplete/inference.
@xorik_dev Hi Audrey, we apologize if there was an inconvenience. The total price deduction equates to what would be 3 months free. So by buying an annual subscription, one would get a year of access, 3 of those 12 months being free.
@VueMastery uses some shady marketing tricks:
Got an email:
"Get 3 free months (last chance)".
After click it turned out 3 months is a discount, not for free.
Unsubscribed immediately.
My workflow of writing a function
❇️ A new test file, start `vitest -u` with it
🪜 Start the function inside the test file
📸 toMatchInlineSnapshot for the result and intermediate states instead of console.log
✏️ Make changes and see result immediately
🧱 Refactor it out to src/
@phpstorm@maxsite Конечно не ко мне вопрос относился, но я внесу свои 5 копеек, если ни кто не против. Все знатно висит со временем и ничего нельзя сделать. :(
Впервые попробовал редактор @phpstorm. Ради этого даже зарегистрировался. Такой нагрузки мой комп ещё не видел. CPU 100%, память 98%. Работать нереально — всё еле шевелится. Почему на странице загрузки сразу не указать высокие требования к компу? В топку! VSCode, похоже, forever.
Hi @phpstorm
PHPStorm is often not responsive/slow or freezes after the last update 2021.2.4 on M1 Macbook. Intel macs seems fine.
Is it known issue or something new?
Привет посудомойка,
Один раз помыть посуду - 60р
Но не все так просто
До этого надо "сполоснуть", оставить в раковине гору накопить, а только потом потратить время все загрузить
Мы что то делаем не так? Очень не эффективно, часто самому проще помыть
10,000 contributions on GitHub this year! 😳
I didn't expect myself to go so far, but hey, I made it!
Creating things that I love and being excited about, share my work to the world, while make a living - This is far beyond my dream!
Thanks to y'all! 🙌