Skip to content

Instantly share code, notes, and snippets.

View mikey-t's full-sized avatar

Mike Thompson mikey-t

View GitHub Profile
@joepie91
joepie91 / es-modules-are-terrible-actually.md
Last active November 15, 2024 13:58
ES Modules are terrible, actually

ES Modules are terrible, actually

This post was adapted from an earlier Twitter thread.

It's incredible how many collective developer hours have been wasted on pushing through the turd that is ES Modules (often mistakenly called "ES6 Modules"). Causing a big ecosystem divide and massive tooling support issues, for... well, no reason, really. There are no actual advantages to it. At all.

It looks shiny and new and some libraries use it in their documentation without any explanation, so people assume that it's the new thing that must be used. And then I end up having to explain to them why, unlike CommonJS, it doesn't actually work everywhere yet, and may never do so. For example, you can't import ESM modules from a CommonJS file! (Update: I've released a module that works around this issue.)

And then there's Rollup, which apparently requires ESM to be u

@mikey-t
mikey-t / SoftwareDevelopmentPhilosophiesAndRants.md
Last active August 2, 2023 16:44
Software development philosophies and rants

Software Development Philosophy and Rants

This is somewhere for me to rant about software development on the internet. I'm not necessarily good at always following my own advice, but what I say here is what I aspire to.

Best Practices

Must watch video by Ben Awad: Software Engineering "Best Practices".

Ben worded this really well, in my opinion:

@danieldogeanu
danieldogeanu / MakePowerShellRememberSSHPassphrase.md
Last active October 31, 2024 20:59
How to make Powershell remember the SSH key passphrase.

You should not use the Open SSH client that comes with Git for Windows. Instead, Windows 10 has its own implementation of Open SSH that is integrated with the system. To achieve this:

  1. Start the ssh-agent from Windows Services:
  • Type Services in the Start Menu or Win+R and then type services.msc to launch the Services window;
  • Find the OpenSSH Authentication Agent in the list and double click on it;
  • In the OpenSSH Authentication Agent Properties window that appears, choose Automatic from the Startup type: dropdown and click Start from Service status:. Make sure it now says Service status: Running.
  1. Configure Git to use the Windows 10 implementation of OpenSSH by issuing the following command in Powershell:
git config --global core.sshCommand C:/Windows/System32/OpenSSH/ssh.exe
@mikey-t
mikey-t / knockoutjs_output_context.html
Last active December 27, 2016 23:37
Knockoutjs output context
<pre data-bind="text: ko.toJSON($data, null, 2)"></pre>