Trending
Piotr Lewandowski's Avatar

Piotr Lewandowski

@piotrlnet

Sharing experiences on TypeScript and Angular. Team Captain @dynatrace Core UI

30
Followers
87
Following
1,113
Posts
07.12.2024
Joined
Posts Following

Latest posts by Piotr Lewandowski @piotrlnet

Post image Post image

Hiding the router in the electrical panel looks sleek, but the speed drop is brutal. Closing the metal box cuts Wi-Fi by 10x, just 5m away.

16.08.2025 18:19 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Ever year or two I decide to go away from Notion to Obsydian, run the export and I'm reminding myself how hard it is to navigate for what actually "Current" is.

Then I go back to Notion boards views splitted by current/done.

14.07.2025 20:33 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

another, more systematic approach:

tsconfig: `noUncheckedIndexedAccess`, it is not included in defaults and affects much more elements than that.

02.04.2025 21:24 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Code of TypeScript, representing the issue

Code of TypeScript, representing the issue

One of the most common traps of TypeScript.

Record<string, *> is so convenient for map-like structures but can't be trusted.

Falsely assumes that any string will **always** return a defined value, which breaks in runtime easily.

My go-to replacement: Always wrap it with Partial<>

02.04.2025 21:20 ๐Ÿ‘ 4 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Oh right, it is great for integration testing, where mulitple values represents expected result.

For unit-tests, I'm still keen for duplicating test with mantra "one test - one expect"

09.03.2025 14:58 ๐Ÿ‘ 3 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
Post image

Today I found myself at GPT :D I got a question I couldn't answer about Angular fakeAsync. A colleague then asked BingGPT, and it answered correctly. Turned out it connected the dots from StackOverflow post and my blog.

23.06.2023 15:32 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

#infoshare conference after 30 minutes in queue, still about 100 meters to the building Seem there is no difference between free and paid ticket

24.05.2023 08:27 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

Enough work for today

23.05.2023 15:55 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

Typescript 5.0 gets new decorator standard incompatible with the current experimental one. Angular developers start to <shake> https://devblogs.microsoft.com/typescript/announcing-typescript-5-0-beta/#differences-with-experimental-legacy-decorators

29.01.2023 15:38 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

Our most costfull ESLint rules: @nrwl_io takes 90% time of whole ESLint check

11.01.2023 12:46 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

It's my #Twitterversary! I have been on Twitter for 14 years, since 25 Dec 2009 (via @twi_age).

09.01.2023 11:02 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

I used it too much anyway.

07.11.2022 22:38 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

LinkedIn maybe? Nah,bjust joking

07.11.2022 22:36 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Feels weird and boring.

Everywhere Twitter drama, I'll just uninstall app and take a break.

Twitter is boring right now.

07.11.2022 22:35 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

The pricy 65W charger I invested 3 years ago was USB-2 to USB-C.

It's invalid anymore. Now I need USB-C to USB-C to have compatible fast charging.

Fast Charging protocols also needs regulation.

05.11.2022 19:08 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

๐Ÿ‡ช๐Ÿ‡บ European Commision is right about chargers.

Hardware I've bought in **last three years** requires:

1๏ธโƒฃUSB-2 to Micro-USB
2๏ธโƒฃUSB-2 to USB-C
3๏ธโƒฃUSB-2 to Lighting
4๏ธโƒฃUSB-C to USB-C
5๏ธโƒฃUSB-C to Magnetic watch charger
6๏ธโƒฃUSB-2 to Magnetic watch charger
7๏ธโƒฃUSB-C to Macbook MagSafe

05.11.2022 19:01 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

It works only for new uploads, so I'm feeling to re-upload everything :D

I missed that so many times, especially in invoice and agreement fragments.

10.10.2022 19:34 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

TIL: Google Drive have OCR. You upload photo or PDF scan and it'll recognize even handwritten text and make it searchable. And it works. Settings -> Convert

10.10.2022 19:33 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Single-page note with infinite scroll and lots of enters ;) FTW!

08.10.2022 20:30 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

This time of the year again. Notion is a bit too complex for my personal life management. I've made it overcomplicated and don't know how to clean it up. All I want is Search.

08.10.2022 19:46 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Great OST, especially many parts comes from polish artists

14.09.2022 17:06 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

Amazed by cyberpunk @edgerunners. It deserves lots of memes #Cyberpunk2077

14.09.2022 17:05 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

I've seen it in action on project with crazy amount of RxJs. Great for debugging values lost in stream and visualization like redux devtools.

Appreciate to work with such bright minds at @Dynatrace โ™ฅ๏ธ https://x.com/Enea_Jahollari/status/1564173475853570052

29.08.2022 17:45 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

If you work on the project long enough https://x.com/saucedopen/status/1563298745478893569

27.08.2022 19:47 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Last day of the sprint is when at 6pm you patch your fork of Closure Compiler with some micro-optimisations of memory.

Yes, because it has blown up suddenly ๐Ÿ˜†

14.07.2022 16:20 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Is this first documented photo of node_modules? https://x.com/zachleat/status/1546971607511474176

13.07.2022 20:32 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Preview
Set Error.prototype.cause type to unknown (#70) by iamharbie ยท Pull Request #49639 ยท microsoft/TypeScript Describe your changes This PR fixes #45167 which changes the type of Error.prototype.cause from Error to Unknown Testing performed I added new tests to ensure that unknown type is recognised Additi...

Error Cause ES2022 usage is in vast majority of browsers, yet we're still missing TypeScript typing support.

And this PR is merged for the version 4.8!
https://github.com/microsoft/TypeScript/pull/49639

11.07.2022 12:56 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Are there alternatives for monorepo tooling for Angular that is not Nx?

01.07.2022 13:43 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Of course there is shock behind the change.

lunch+soup used to cost 20pln, now it's close to 40pln.

28.06.2022 22:05 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

After 5 years of eating out at work, I want to make a habit to make lunch day before.

This is my delayed new year resolution.

28.06.2022 16:35 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0