Johannes Ewald's Avatar

Johannes Ewald

@johannesewald.de

I've been using Vim for about 2 years now, mostly because I can't figure out how to exit it. Co-founder of @peerigon. Previously working on @webpack.

273
Followers
285
Following
147
Posts
02.11.2024
Joined
Posts Following

Latest posts by Johannes Ewald @johannesewald.de

Oh ok, that’s a political reference, I didn’t get that. Nevermind 😃

01.04.2025 22:56 👍 1 🔁 0 💬 0 📌 0

I have a vague idea, but I always forget what is what 🥲

01.04.2025 22:54 👍 1 🔁 0 💬 1 📌 0

I thought esbuild produces a single file but maybe there‘s an option

19.03.2025 19:38 👍 1 🔁 0 💬 1 📌 0

What tool does Node use under the hood?

19.03.2025 19:37 👍 1 🔁 0 💬 1 📌 0

What's currently the fastest way to transpile TS to individual JS files without type checking? We can't just strip types because we use enums.

19.03.2025 09:12 👍 2 🔁 1 💬 2 📌 0

Is it? Did you check every digit? 😃

14.03.2025 12:21 👍 1 🔁 0 💬 0 📌 0

Yes, it was meant to be abstract, not about TypeScript.

14.03.2025 00:02 👍 3 🔁 0 💬 0 📌 0

Is this something experienced Rust developers would solve easily or is it something that is just really hard in Rust?

(I‘ve encountered this in my pet project and I gave up 😅)

13.03.2025 18:07 👍 2 🔁 0 💬 3 📌 0

Why "Choose the right tool for the right job" might be true, but unhelpful (and why choosing the right programming language is less important than people think):

13.03.2025 18:04 👍 3 🔁 0 💬 0 📌 0

That’s so cool to see it in a real-world project 😃

25.02.2025 18:37 👍 0 🔁 0 💬 0 📌 0

Thank you! 🙏 So it‘s not useless 😌

23.02.2025 18:05 👍 2 🔁 0 💬 0 📌 0

To be fair: I don’t maintain it anymore because I don’t use it. I gave edi9999 maintainer rights but they‘re doing a great job as far as I can tell :)

23.02.2025 17:57 👍 0 🔁 0 💬 1 📌 0

As far as I remember I needed a safe way to evaluate expressions without using eval(). I was using Angular.js in a different project back then so I decided to extract "the good parts" ;)

So nice to hear that it’s still of great use for you 😌. What‘s the topic of your talk?

23.02.2025 17:57 👍 0 🔁 0 💬 1 📌 0

Hat mich auch erwischt 😅🥵

21.02.2025 15:12 👍 1 🔁 0 💬 0 📌 0

Not sure what you mean. I don’t see any error in my playground…

21.02.2025 06:31 👍 0 🔁 0 💬 1 📌 0

I agree! Comments should mostly explain the Why, not the What 😃

19.02.2025 14:19 👍 0 🔁 0 💬 0 📌 0

This summarizes my experiences with AI coding assistants so far. After my initial reservations, I started to appreciate them for quick feedback or easy refactorings.

They’re impressive for the first 50% of the task, but I often hit the point where I think it would be faster now to do it by hand.

12.02.2025 20:28 👍 1 🔁 0 💬 0 📌 0

I don’t know but I wish they’d use Array<Type> as the canonical form :)

10.02.2025 21:15 👍 0 🔁 0 💬 1 📌 0

This hurts 🤦‍♂️

08.02.2025 22:14 👍 6 🔁 0 💬 0 📌 0

Nice!!

08.02.2025 18:14 👍 1 🔁 0 💬 0 📌 0

I hate that AIs are still bad at refactoring code. There‘s so much refactoring that‘s too sophisticated for string replace but too dumb for humans 😃

08.02.2025 11:08 👍 1 🔁 0 💬 0 📌 0

That‘s what I did :) I decide against rules that complain about code that works and isn’t flawed in some other way.
I asked @mattpocock.com the other day and he also turned it off

08.02.2025 10:36 👍 3 🔁 0 💬 1 📌 0

Regarding skipLibCheck: I agree with your sentiment but I often find myself turning it on it big projects. It’s mostly necessary because of conflicting types in node_modules (e.g. Cypress bringing their own type definitions for Mocha, etc.).

07.02.2025 22:35 👍 1 🔁 0 💬 0 📌 0

Regarding exactOptionalPropertyTypes: it sounded very promising, but it complained about lot of code that was just ok. Most of the time people don’t distinguish between non-existing properties and undefined and it’s kind of ok.

07.02.2025 22:35 👍 1 🔁 0 💬 2 📌 0

Regarding noUncheckedIndexedAccess: I‘d turn it on. I don’t think it‘s about holes, but rather indices out of bounds. I saw several instances where it caught actual bugs in sloppy code.

07.02.2025 22:35 👍 2 🔁 0 💬 1 📌 0

Very interesting, you covered everything 😀

07.02.2025 22:35 👍 2 🔁 0 💬 1 📌 0

JavaScript devs: when your backend is written in another language and it returns snake_case, do you transform them to camelCase or keep them as they are?

05.02.2025 09:44 👍 2 🔁 0 💬 2 📌 0

I gave it a shot:

So lassen sich mit CSS, JavaScript, SVG und Canvas bezaubernde Interaktionen und kleine magische Details gestalten.

Hier verrate ich meine besten Tricks!

04.02.2025 23:57 👍 1 🔁 0 💬 1 📌 0

@joshwcomeau.com I‘d go with this translation, it sounds very natural to me :)

Only change I‘d make: instead of "reizende Details schaffen kannst" I‘d use "reizende Details kreierst“, but that‘s just my personal taste.

04.02.2025 23:14 👍 1 🔁 0 💬 0 📌 0

Totally agree with this one :)

For the best result, you‘d need to translate it more freely. The other translations here are correct, but they still sound translated.

04.02.2025 22:43 👍 1 🔁 0 💬 1 📌 0