Piotr Lewandowski

Piotr Lewandowski

@piotrlnet.bsky.social

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

30 Followers 87 Following 1,113 Posts Joined Dec 2024
6 months ago
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.

1 0 0 0
8 months ago

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.

0 0 0 0
11 months ago

another, more systematic approach:

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

0 0 0 0
11 months ago
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<>

4 0 1 0
1 year ago

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"

3 0 1 0
2 years ago
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.

1 0 0 0
2 years ago
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

0 0 0 0
2 years ago
Post image

Enough work for today

0 0 0 0
3 years ago
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

1 0 0 0
3 years ago
Post image

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

0 0 0 0
3 years ago

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

0 0 0 0
3 years ago
Post image

I used it too much anyway.

0 0 0 0
3 years ago

LinkedIn maybe? Nah,bjust joking

0 0 1 0
3 years ago

Feels weird and boring.

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

Twitter is boring right now.

0 0 1 0
3 years ago

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.

0 0 0 0
3 years ago

🇪🇺 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

0 0 1 0
3 years ago

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.

0 0 0 0
3 years ago
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

0 0 1 0
3 years ago

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

0 0 0 0
3 years ago
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.

0 0 1 0
3 years ago

Great OST, especially many parts comes from polish artists

0 0 0 0
3 years ago
Post image

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

0 0 1 0
3 years ago

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

0 0 0 0
3 years ago

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

0 0 0 0
3 years ago

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 😆

0 0 0 0
3 years ago

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

0 0 0 0
3 years ago
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

0 0 0 0
3 years ago

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

0 0 0 0
3 years ago

Of course there is shock behind the change.

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

0 0 0 0
3 years ago

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.

0 0 1 0