Opens profile photo
Follow
Click to Follow remcohaszing
Remco Haszing
@remcohaszing
Open source software developer and metalhead 🤘
The Netherlandsremcohaszing.nlBorn January 11Joined March 2019

Remco Haszing’s Tweets

I don't understand why JavaScript has Array.reduce(). Why was this added? I know exactly what it does, but it can always be written as a more readable and more performant for..of loop.
4
ESM / CJS dual packaging is hard. Add TypeScript to the mix and it gets even more complex. A lot of packages are doing it wrong, especially the CJS types. I really hope the ecosystem moves on to pure ESM.
1
5
Can we somehow augment TypeScript types in JSDoc? This could normally be done using interfaces, but those aren’t supported in JSDoc based types.
1
Just teasing. MDX intellisense is coming to VSCode, Monaco editor and your favourite editor soon.
A screenshot of MDX intellisense features displayed in Monaco editor
3
26
Yesterday was my last day at . I had a great time, but I want to move on to something new. From now on I’m 100% freelancer and will start dedicating significantly more time working on OSS.
5
What’s the go-to way for running tests in a real browser nowadays? I know Karma, but it feels a bit old school. I need it for unit tests, not end-to-end.
2
Today marks the 1500 day anniversary of removing the clipboard API, making the platform less accessible for millions of users. Yesterday the 651th comment was posted on this issue, one of many begging to bring it back. That's about 3 comments per week!
1
2
Show this thread
I did it! I upgraded a project using TypeScript, jest, Webpack, and ts-node containing both web and Node.js code and JSON imports to native ESM! �?
5
Could we all agree to stop creating branch names starting with “ma�?? This breaks my usual workflow where I expect ma<tab> completion to either resolve to main or master.
1
1
I really like this section in my .zshrc. It adds node_modules/.bin folders to $PATH for every ancestor of the current working directory. This means I can just run e.g. `eslint` or `jest` instead of `npx eslint` or `npx jest`
Image
2
7
We've just release a major update of the remark extension! It now leverages remark-language-server for a consistent experience across editors.
10
I have just released recma-nextjs-static-props. It’s a recma plugin for which exposes top-level variables using the getStaticProps function. This allows you to use MDX exports, including frontmatter, in pages/_app.js. ✨
2
It really bothers me doesn’t support the person shrugging emoji 🤷 When this emoji is entered into WhatsApp, it gets converted to a woman shrugging 🤷�?♀�? I really see no good reason for this. and support it.
1
Why do people call a programming language? Don't get me wrong, I love TypeScript, but it's just JavaScript with some additional syntax. People don't call JSX, stage 0 syntax or a programming language. What makes TypeScript different?
3
2
Lets say you have function which could return anything, for example a library for making HTTP requests. The return type can be configured using a generic for convenience. Which would be the preferred default return type?
  • any
    25%
  • unknown
    75%
4 votesFinal results
1