Twitter | Search | |
bterlson.d.ts
JavaScript, TypeScript, Azure, ECMA TC39 co-chair nee ECMA262 editor-in-chief. Microsoft employee but my opinions are my own.
3,383
Tweets
561
Following
6,836
Followers
Tweets
bterlson.d.ts Apr 12
How much would you pay for a device that helps you locate other devices that are chirping at random intervals?
Reply Retweet Like
bterlson.d.ts Apr 12
Replying to @MylesBorins @kylealden
Actually a more simple software solution might be awesome here. A `git bisect` for locating randomly chirping devices, if you will.
Reply Retweet Like
bterlson.d.ts Apr 12
Replying to @kylealden
As someone who recently went through this, you can kind of narrow it down by doing a binary search: close the door to half the rooms, leave the other half open, gather volume data (maybe over days) to determine whether its in an open/closed room, then repeat.
Reply Retweet Like
bterlson.d.ts Apr 12
Replying to @CarmenCrincoli
I love this channel. I find it very relaxing somehow to listen to air traffic radio chatter.
Reply Retweet Like
bterlson.d.ts Apr 11
I too prefer to think in terms of optionals and unions since it's closer to what actually happens, but overloads should still be used in some situations. They let you document a related set of arguments that together offer some functionality.
Reply Retweet Like
bterlson.d.ts Apr 10
In the words of our friend ...
Reply Retweet Like
bterlson.d.ts Apr 9
Replying to @jntrnr @ag_dubs
If your meeting is larger than a handful of people and anyone is remote, you should use . Otherwise it's impossible for people outside the room to jump in :(
Reply Retweet Like
bterlson.d.ts Apr 9
Replying to @robpalmer2 @TChetwin
I guess you'll find similar for any cover grammars that are implemented with lookahead+backtracking? 30s for this one: async(async(async(async(async(async(async(async(async(async(async(async(async(async(async(async(async(async(async(async(async(async(async())))))))))))))))))))))
Reply Retweet Like
bterlson.d.ts Apr 5
Replying to @rpamely
Love this one. Answer used to be yes as TS couldnt express common patterns. But now with map types, tuples, conditional types, infer, etc., the list might be empty. Will ponder!
Reply Retweet Like
bterlson.d.ts Apr 5
Replying to @JoshuaKGoldberg
Iiinteresting, I will have to ponder. Nice topic though!
Reply Retweet Like
bterlson.d.ts Apr 5
Replying to @danielrechka
Yes very good one. My experience is: no style rules (you should use an autoformatter like prettier and totally get out of the business of debating style), and only actual correctness checks like dangling promise, not pedantic things. My ideal eslint is pretty light.
Reply Retweet Like
bterlson.d.ts Apr 5
Replying to @seldo
Us, weekly: Oh, I guess disco aired a bit ago. Are we still watching it? I guess? OK, on screen then.
Reply Retweet Like
bterlson.d.ts Apr 5
I'll add this to the list to talk about in more detail, but the compiler can't really do this job for you, least of all not without causing friction in other ways.
Reply Retweet Like
bterlson.d.ts Apr 5
Replying to @JoshuaKGoldberg
Sure! Any examples you're curious about in particular?
Reply Retweet Like
bterlson.d.ts Apr 5
Replying to @swyx
Great ideas, and I love how these are already formatted as great blog titles. Permission to plagiarize? 😋
Reply Retweet Like
bterlson.d.ts Apr 5
Ahh yes, this is a great topic. I recently struggled similarly with WebSocket types (and not wanting to require the DOM lib). There are a couple techniques, but I think best option is to "mirror" the types as says, since TS is structural things can "just work".
Reply Retweet Like
bterlson.d.ts Apr 5
Replying to @KrisJordan
Yes, this is a great topic, and also not at all easy. I can definitely help, I've learned much here (often in anger 😬)
Reply Retweet Like
bterlson.d.ts Apr 5
Gonna start blogging my learnings about library/API design using TypeScript. Anything you're curious about? Considering TypeScript configuration explainers (e.g. esModuleInterop), packaging (e.g. why our packages have 4 copies of our source code), the promise of async iterators…
Reply Retweet Like
bterlson.d.ts Apr 3
Replying to @sanders_n
Capital-S String at #9?? 🤔
Reply Retweet Like
bterlson.d.ts retweeted
Nathan Shively-Sanders Apr 3
Here are the top 10 types on Definitely Typed: "string": 199719, "number": 120567, "any": 119071, "void": 115443, "boolean": 86576, "Object": 24359, "this": 14324, "{ unwatch(): void; }": 12341, "String": 11417, "any[]": 11380,
Reply Retweet Like