The Drama Surrounding TypeScript’s Removal in Turbo 8 by DHH

In the fast-paced world of software development, even the most respected figures can spark cowntroversy. This time, it’s David Heinemeier Hansson, better known as DHH, a Danish-American software engineer famous for creating the Ruby on Rails web framework. The latest uproar comes from his announcement that Turbo 8, a toolchain for frontend development, will be dropping TypeScript in its next release.

In a blog post, DHH candidly expressed his preference for JavaScript’s simplicity and flexibility. While he acknowledged TypeScript’s merits and its thriving community, he argued that it complicates development without providing sufficient benefits for their project.

However, this decision wasn’t without its critics. Many developers pushed back against DHH’s move, leading to a heated debate (see this).

I think what sets this situation apart is DHH’s unapologetic stance. Despite the pushback, he disregarded all the comments and merged the pull request, raising eyebrows across the tech community.

The decision triggered a wave of responses from tech influencers. Some were against DHH’s move, while others supported it. One individual, Theo, even created a pull request to reintegrate TypeScript into the repository, receiving a positive response and engaging in a back-and-forth with DHH.

The Core Issue

Is DHH’s decision justified? It’s essential to separate DHH’s reputation for being somehow arrogant and dismissive when facing criticism from the real issue at hand: the removal of TypeScript.

TypeScript, often considered “meh” by some, offers static typing and is great for onboarding new developers. However, as DHH noted, it can lead to code bloat without adding significant value. He also praised the compatibility between JavaScript and TypeScript, allowing developers to choose between the two.

The question remains: why remove TypeScript and deprecate type libraries maintained by the Turbo project?

It is about User-Friendly vs. User-Hostile

While there is nothing inherently wrong with moving away from TypeScript, the removal might be seen as user-hostile. It could create difficulties for less-experienced users who rely on TypeScript’s safety net.

In the end, it’s a complex issue with valid arguments on both sides. Developers like DHH, who drive both race cars and software innovation, make bold decisions. Perhaps, this drama serves as a reminder for all of us to be adaptable developers who don’t go on Twitter rants when faced with tools we don’t particularly like.

In the ever-evolving world of software development, opinions will clash, and changes will happen. As for Turbo 8 and TypeScript, only time will tell how this controversy plays out in the world of coding. Meanwhile, I guess, different strokes for different folks. 🙂

Read more:

Share
The Drama Surrounding TypeScript’s Removal in Turbo 8 by DHH

Bun in Fun

Recently, Bun 1.0 was released, offering exciting new possibilities for JavaScript developers.

About Bun

At its core, Bun is a drop-in replacement for Node.js that focuses on backward compatibility while significantly improving performance. It’s designed to handle JavaScript and TypeScript (TSX) files seamlessly, all without the need for additional dependencies. The creator of Bun highlights its ability to replace traditional npm run commands, making the development experience smoother and faster.

But, why choose Bun?

  1. Improved Performance:
    Bun leverages JavaScript Core, the same engine used by Safari, which offers faster boot-up and runtime speeds compared to V8 (used by Chrome). Benchmarks indicate that Bun can handle more requests per second, a crucial advantage when dealing with high-demand applications.
  2. Simplified Imports:
    Bun abstracts away the complexities of ES6 and CommonJS imports. You can import your files without worrying about underlying implementation details, streamlining your development process and reducing configuration overhead.
  3. Watch Mode:
    Bun features a built-in watch mode, similar to Nodemon. This allows for rapid code changes and automatic reloading, significantly improving the developer’s experience.
  4. Speedy Testing:
    Bun shines when it comes to running unit tests. Benchmarks show that it can execute Jest unit tests much faster than traditional setups, potentially reducing test times from seconds to fractions of a second.
  5. Potential Cost Savings:
    Faster development and testing can lead to substantial cost savings in CI/CD pipelines. Shorter execution times translate to reduced infrastructure costs when running tests on services like GitHub Actions or Circle CI.

Limitations to Consider

While Bun is promising, it’s essential to note its limitations. It might not be suitable for all types of projects, as it relies on JavaScript Core. For example, it currently does not support running projects built with Next.js or Remix, which depend on Node APIs.

Future Possibilities

Despite these limitations, there are exciting possibilities for Bun’s future. Users are exploring options like running Bun on AWS Lambda by wrapping the Bun server in a Docker container, opening up opportunities to use Bun with familiar cloud providers.

Bun presents a compelling alternative for Node.js developers looking to boost their development speed and efficiency. Its focus on performance improvements, simplified imports, and faster testing can make a significant difference in your development workflow. While it may not be a one-size-fits-all solution due to certain limitations, Bun’s potential benefits make it worth considering for your next project. Give it a try and see if it can supercharge your Node.js development experience.

Share
Bun in Fun