Senior Software Engineer @Alokai

Kutno, Polska
Joined April 2020
Replying to @AndaristRake
I was trying to figure out why I haven't hit this more in Zod it's because superclass constructors get called before property initializers in the class body, and I use this "def" pattern everywhere potentially not a bad workaround here
1
5
764
Nice! I already got my @ViteConf ticket! Get yours too! viteconf.org/24/tickets/grix…
2
32
Most coding tutorials teach you to code like a GPS teaches you a city. Following along works fine until there’s a problem and you have to detour. That’s why people get stuck doing tutorial after tutorial. They aren’t actually learning much.
4
5
1
33
1,572
🔥It's official🔥 👿Evil Apple is back, and it's killing PWAs on iOS for EU users🇪🇺 "To comply with the DMA’s requirements, we had to remove the Home Screen web apps feature in the EU. -"Very low user adoption of Home Screen web apps" -"Minimal impact to their functionality"
61
219
80
869
214,579
Wow! AWS released their own JS runtime! The devil is in the details, and this is only tailored to be a runtime for Lambda. I’ll definitely tinker with it! Instead, why didn’t work to optimize Node.js and contribute back? buff.ly/3SSeLGX github.com/awslabs/llrt
26
27
3
345
63,036
You are not your job. You are not a particular JS framework. You are not your code. You are far more than all that, so don’t act otherwise.
2
42
1,405
WebSocket support is coming to MSW! But before it does, please help us shape it by providing feedback on this RFC: 📜 github.com/mswjs/msw/discuss… If you're working with WebSockets, please participate in that discussion! You'd be helping thousands of developers mock APIs better.
5
6
83
10,303
One thing people should be more aware of is that crunching and working late for a long period of time has much higher chances of burning you out so hard that you will need to take a long break and loose all career advancement instead of pushing it forward. It will also most likely happen at the most undesirable moment. Weekends fully off, 1-1,5 week of vacation per quarter can take you much further than crunching all the time without breaks.
2
11
1,175
📕 Upcoming Vue 3 “Vapor Mode” 👉🏻 "Let’s take a closer look at what Vapor Mode is, how it works, and its future! " javascript.plainenglish.io/u…
8
32
2,524
I love the @raycastapp @vuejs docs extension, so handy! 🫡
4
7
3
97
30,954
When should you code FAIL FAST? 🔥 #ARCHITECTURE #FOCUS 🔥 What FAIL FAST is ❌NOT❌? 💥 #javascript’s NaN: ‘hi mom’ * 5... 💥 why does a platform perform a stupid operation? 💥 why doesn’t it EXPLICITLY notify the developer (by throwing an error)? FAIL FAST is: 🥊 a design technique (or coding style) 🥊 similar to “strong typing” where: 🥊 if something MIGHT be incorrect, it FAILs explicitly 🥊 you check your state along as the logic is performed 🥊 as soon as possible 🥊 so that we don’t carry on with an INVALID situation 🥊 and we DON’T WORK AROUND the problem instead of solving it 🧟 same as with mutation testing: kill the mutants! 🧟🧟🧟 🪓 if something doesn’t make sense -> BREAK IT! 🪓 CONSEQUENCES? 🪚 your codebase would throw way more errors 🐛 🪚 you’d have to handle them 👷‍♂️ 🪚 … but you also GET RID OF all invalid/inconsistent states 💪 BTW 🟥FAILING BUILDS 🟥 adapt the 🟥 FAIL FAST 🟥 strategy 🟥 Even if the linter raises an error, you shall not be able to deploy. Examples of FAIL-FAST: 💣 DON’T ALLOW to create an invalid/inconsistent object 💊 FIX: conditionally throw an error in your constructor, if any data/logic is inconsistent. 💣 if you expect something and don’t get it, FAIL FAST by throwing an error 💊 FIX: #typescript assertion function 💣 Don't rescue your logic by introducing meaningless defaults like #javascript/#typescript “?? []” - WHY IS THE ARRAY NOT THERE IN THE FIRST PLACE? 💊 FIX: if you want an array to be guaranteed somewhere… then f🤬🤬🤬ing GUARANTEE IT 😅 💣 AVOID OPTIONAL PROPERTIES as much as possible. Optional properties multiply number of potential states, where majority of them is usually invalid. 💊 FIX: Introduce a #typescript union instead. 🤮 sidenote: leaky data structures are the worst… 🤮 There’s plenty of space to apply FAIL FAST techniques within your #angular, #react and #vue applications. Just don’t let any doubtful state leak into your logic. See examples below:
3
3
2
24
4,538
We got a Phone (2) to giveaway. Rules: - Must follow @nothing - RT + Leave a comment on this post The person with the most likes on their comment wins. The winner will be announced on 05/01/24.
12,432
7,806
603
10,531
1,089,542
Type Argument Placeholders are probably the most discussed feature coming to TypeScript 5.2. OSS maintainers are keen for fixes for a long-standing TypeScript problem: partial inference in type arguments. This is a good step forward, but some have argued not far enough.
14
16
5
230
40,490
The best way to understand new technology is to learn how it works under the hood 📖 Let's take a look at Vue Storefront SAP Commerce Cloud SDK Integration architecture 👇
1
6
10
1,247
Fresh from the oven and baked with love 🍲 Our new integration-boilerplate, which allows you to build a custom integration using our new SDK architecture, is finally liiive 🚀 Repo 👉 github.com/vuestorefront/int… Blog post 👉 vuestorefront.io/blog/build-…
1
6
2
13
3,460
Introducing our new, framework-agnostic, Magento 2 integration 🚀 Built using TypeScript, the Magento 2 SDK is the bridge that'll seamlessly connect your backend to your storefront. Oh, and did we mention it's open-source? Test it (and give us a star) 👉 github.com/vuestorefront/mag…
2
5
1
16
6,964
Web Storage changes for Safari 17 🚫1GB limit per origin is GONE 🫙Storage API now fully supported ⛽️Quota is set per origin based on available space 🏴‍☠️It seems 7-day cap is gone 🤔 📦Sandboxes: -One per profile -Web Apps iOS/iPadOS -Web Apps macOS (cookies copied on install)
6
25
140
27,198
The value of good DX goes far beyond happy devs! In this article, I'm sharing why investing In DX could be the biggest growth hack for your company - no matter if you're building dev tools or consuming them. Based on @VueStorefront story. dev.to/vue-storefront/invest… #javascript
4
1
10
2,148
Storefront UI 2.1 is out ⚡️ 👉New Scrollable base component and utility function for mobile-friendly scrolling 👉10 new blocks including Mega Menu, Cards, Order Summaries, and more See what's inside the package in this video by @SergiiKirianov docs.storefrontui.io/v2
7
9
3
39
6,564