Sign in

Johannes Ewald

@johannesewald.de
277 followers 288 following 147 posts

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.

PostsRepliesMedia
Johannes Ewald @johannesewald.de · 01/04/2025
Oh ok, that’s a political reference, I didn’t get that. Nevermind 😃
000
Johannes Ewald @johannesewald.de · 01/04/2025
I have a vague idea, but I always forget what is what 🥲
100
Johannes Ewald @johannesewald.de · 19/03/2025
I thought esbuild produces a single file but maybe there‘s an option
100
Johannes Ewald @johannesewald.de · 19/03/2025
What tool does Node use under the hood?
100
Johannes Ewald @johannesewald.de · 19/03/2025
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.
221
Johannes Ewald @johannesewald.de · 14/03/2025
Is it? Did you check every digit? 😃
000
Johannes Ewald @johannesewald.de · 14/03/2025
Yes, it was meant to be abstract, not about TypeScript.
020
Johannes Ewald @johannesewald.de · 13/03/2025
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 😅)
320
Johannes Ewald @johannesewald.de · 13/03/2025
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):
040
Johannes Ewald @johannesewald.de · 25/02/2025
That’s so cool to see it in a real-world project 😃
000
Johannes Ewald @johannesewald.de · 23/02/2025
Thank you! 🙏 So it‘s not useless 😌
020
Johannes Ewald @johannesewald.de · 23/02/2025
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 :)
100
Johannes Ewald @johannesewald.de · 23/02/2025
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?
angular.je
100
Johannes Ewald @johannesewald.de · 21/02/2025
Hat mich auch erwischt 😅🥵
010
Johannes Ewald @johannesewald.de · 21/02/2025
Not sure what you mean. I don’t see any error in my playground…
100
Johannes Ewald @johannesewald.de · 19/02/2025
I agree! Comments should mostly explain the Why, not the What 😃
000
Johannes Ewald @johannesewald.de · 12/02/2025
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.
010
Johannes Ewald @johannesewald.de · 10/02/2025
I don’t know but I wish they’d use Array<Type> as the canonical form :)
100
Johannes Ewald @johannesewald.de · 08/02/2025
This hurts 🤦‍♂️
060
Johannes Ewald @johannesewald.de · 08/02/2025
Nice!!
010
Johannes Ewald @johannesewald.de · 08/02/2025
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 😃
010
Johannes Ewald @johannesewald.de · 08/02/2025
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
130
Johannes Ewald @johannesewald.de · 07/02/2025
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.).
010
Johannes Ewald @johannesewald.de · 07/02/2025
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.
210
Johannes Ewald @johannesewald.de · 07/02/2025
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.
120
Johannes Ewald @johannesewald.de · 07/02/2025
Very interesting, you covered everything 😀
120
Johannes Ewald @johannesewald.de · 05/02/2025
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?
220
Johannes Ewald @johannesewald.de · 04/02/2025
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!
110
Johannes Ewald @johannesewald.de · 04/02/2025
@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.
010
Johannes Ewald @johannesewald.de · 04/02/2025
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.
110
Johannes Ewald @johannesewald.de · 01/02/2025
Glückwunsch :)
020
Johannes Ewald @johannesewald.de · 31/01/2025
Ha, I was about to recommend Firefox to you, but the UI is not exactly like you described (tabs from different profiles are mixed together)
000
Johannes Ewald @johannesewald.de · 27/01/2025
I really like this form of collaboration among "competitors" 👍
041
Johannes Ewald @johannesewald.de · 26/01/2025
Just had the same experience. It‘s lovely 🙃
000
Johannes Ewald @johannesewald.de · 26/01/2025
Should have read it more thoroughly 😃
010
Johannes Ewald @johannesewald.de · 26/01/2025
Interesting 😀 Why did you choose a class with static members? Wouldn‘t an object be more straightforward?
100
Johannes Ewald @johannesewald.de · 26/01/2025
Yes, I already read it :) Not sure I really like one of these options 😅
100
Johannes Ewald @johannesewald.de · 26/01/2025
Now with erasableSyntaxOnly I‘m asking myself: What‘s a good alternative to enums? Union types are ok, but I personally prefer to reference the enum options (and also be able to count remaining references). Is there a good package that solves enums on runtime?
201
Johannes Ewald @johannesewald.de · 25/01/2025
Happy birthday! :)
010
Johannes Ewald @johannesewald.de · 21/01/2025
Showing a photograph of the salute is not forbidden. It’s forbidden to publicly perform it.
260
Johannes Ewald @johannesewald.de · 21/01/2025
Fire. Exclamation mark. Fire. I can hear that gif 😃
010
Johannes Ewald @johannesewald.de · 17/01/2025
Apparently it is aligned to the edge of the packaging. The closer the score is to the edge, the better 😉
000
Johannes Ewald @johannesewald.de · 14/01/2025
Thanks for clarifying it. It also caught my eye but I wasn’t sure whether it‘s just another "hidden" web feature that already existed since day 1 😃
000
Johannes Ewald @johannesewald.de · 14/01/2025
Sehr löblich 👍😃
121
Johannes Ewald @johannesewald.de · 13/01/2025
The key is when to ask for feedback. I don’t think there‘s a universal rule that applies to all problems, but for most coding work it should be between 1-3 days. I try to push a draft PR at the end of every work day (which doesn’t work out all the time, but that’s the goal I‘m aiming for)
010
Johannes Ewald @johannesewald.de · 13/01/2025
I agree. I think this applies to the field of coding as well. When there‘s a tough problem, I like to do a kick-off meeting in the beginning and then to work on my own. Some people prefer to pair all the time and it stresses me out 😃
100
Johannes Ewald @johannesewald.de · 09/01/2025
Ach, nur so ein Gefühl… irgendwas stimmt da nicht 🧐
010
Johannes Ewald @johannesewald.de · 09/01/2025
Mhmm, ich glaub, da ist ein Fehler 😃
120
Johannes Ewald @johannesewald.de · 09/01/2025
But it would be nice if TS knew how map.has() works 😃
000
Johannes Ewald @johannesewald.de · 09/01/2025
Ahh finally, auto-uncorrect 😃
000