CommunityNews

CommunityNews

Why we chose Typescript for the Hasura Console

At Hasura, we wanted to introduce a statically typed frontend language for quite some time now. We discussed which one we should choose and evaluated options such as PureScript, TypeScript, ReasonML, and Elm. Following aspects were most crucial to us:

  • Hasura Console is a pretty large codebase for a small team, so we can’t rewrite it all to the new language. We need something that works well with the existing JavaScript code. A language that we can inject into our codebase and gradually migrate.
  • We use React extensively. Thus we need something that goes with React well and improves React components development.
  • We want to enhance developer experience for the external contributors and us. By adopting a statically typed programming language, we aim to make things easier, and the development process way faster. We don’t want to introduce high adoption cost nor force developers to learn a new and completely different language.

After all of the discussions, we decided to choose TypeScript. In this article, I’m going to tell you how we made the decision and why we wanted a statically typed language in the first place. I will also walk you through all of the four languages by a brief overview of each of them.

This thread was posted by one of our members via one of our news source trackers.

Where Next?

Popular Frontend topics Top

First poster: KnowledgeIsPower
Hi all, With excitement we’re sharing today that Vue.js is Wikimedia Foundation’s official choice for adoption as future JavaScript fr...
/js
New
First poster: OvermindDL1
WebAssembly (Wasm) has many applications in the cloud-native world today – WASI, edge cloud computing, Proxy-Wasm, and cloud-native runti...
New
First poster: mafinar
This is going to come across as a rant, so I’ll do my best to refrain from blaming any one project or source and just make a generalized ...
/js
New
First poster: bot
I had an “oh, duh, of course” moment a few weeks ago that I wanted to share: is WebAssembly the next Kubernetes?
New
First poster: bot
Kotlin/JS provides the ability to transpile your Kotlin code, the Kotlin standard library, and any compatible dependencies to JavaScript....
New
First poster: bot
Misusing TypeScript Assertion Functions for Fun and Profit — Sympolymathesy, by Chris Krycho. TypeScript’s assertions functions (asserts...
New
CommunityNews
WebAssembly (wasm) allows code written in languages other than JavaScript to run on browsers. If you haven’t been paying attention, all t...
New
First poster: bot
JavaScript Containers. The majority of server programs are Linux programs. They consist of a file system, some executable files, maybe s...
New
First poster: bot
Full Stack Dart . Chris Swan discusses using a stack of Dart, where Flutter developers can use the same language to build the services b...
New
First poster: bot
All branches will diverge from the stem: from Elm to Derw. Forgive the fancy title, but I felt it fit this month’s Derw improvements wel...
New

Other popular topics Top

AstonJ
Or looking forward to? :nerd_face:
483 11937 255
New
Exadra37
I am thinking in building or buy a desktop computer for programing, both professionally and on my free time, and my choice of OS is Linux...
New
PragmaticBookshelf
Design and develop sophisticated 2D games that are as much fun to make as they are to play. From particle effects and pathfinding to soci...
New
DevotionGeo
I know that -t flag is used along with -i flag for getting an interactive shell. But I cannot digest what the man page for docker run com...
New
New
AstonJ
poll poll Be sure to check out @Dusty’s article posted here: An Introduction to Alternative Keyboard Layouts It’s one of the best write-...
New
PragmaticBookshelf
Build highly interactive applications without ever leaving Elixir, the way the experts do. Let LiveView take care of performance, scalabi...
New
PragmaticBookshelf
Programming Ruby is the most complete book on Ruby, covering both the language itself and the standard library as well as commonly used t...
New
hilfordjames
There appears to have been an update that has changed the terminology for what has previously been known as the Taskbar Overflow - this h...
New
sir.laksmana_wenk
I’m able to do the “artistic” part of game-development; character designing/modeling, music, environment modeling, etc. However, I don’t...
New