
Curr: @hedgeforvideo Prev: @LightspeedHQ 💻 PHP/JS at work but loves Elixir and all tech stuff really My Twitch/YouTube account: @JustDrawCats
Amsterdam, Netherlands
Joined August 2020
- Tweets161
- Following203
- Followers67
- Likes2.2K
The Elixir website re-design is such a breath of fresh air! A very welcome change that makes it look more modern! ✨
#ElixirLang
1
1
40
In most cases you won't run into this as TypeScript guards you against this (`Array.prototype.at()` requires a number), but in my case TypeScript's inferred type was a bit on the unsafe side and thus fell into the rabbit hole 🫠
165
😓 JavaScript continues to amaze me every day.
Be careful when you use `Array.prototype.at()` as it converts whatever you pass into a number and even NaN works surprisingly.
Anyone using `isolatedModules` in #TypeScript with ts-jest? TypeScript is complaining that my test files are considered a "script", meaning no export and thus failing.
Are y'all using separate tsconfig for testing or adding `export {}` to every test file ? 👀
174
Over the years I've been using temporary channels as a quick way to collaborate on Slack 🧵
Today I am excited to launch TmpChannel, a Slack bot for creating and managing temporary channels on Slack 🚀
Tech Wednesdays - Doing some more exploring of the Elixir "Registry" as part of the GenServer concept!
I'll be 🔴 live on Twitch, starting in a few minutes:
twitch.tv/JustDrawCats
💻 Tech Wednesday stream is ONLINE 🔴 - Continuing exploring the Elixir landscape with some more GenServer, Supervisor work and more!
Stop by and learn together!
twitch.tv/JustDrawCats
💻 Continuing with some #Elixir GenServer action - Tech Wednesdays 🔴 LIVE
twitch.tv/JustDrawCats
Wednesday programming stream! Let's see what's left to do for our #typescript viewer games chat bot!
twitch.tv/JustDrawCats
☝️☝️☝️
Previous electrical engineering stream where we are learning the basics can be found here:
youtube.com/watch?v=iDMULIHm…
Thanks to one of my colleagues, I've found the solution.
Marking "as const" was the solution here: typescriptlang.org/docs/hand…
1
Is there a way in #TypeScript to infer the type of a static array without explicitly defining it (because of the duplication)? I cannot use an object, since I need to guarantee order.
Left: inferred (default)
Right: desired result
1















