{nonsensecodes}
Published in

{nonsensecodes}

022: My Journey to Understand Types in TypeScript, Day 2

GraphQL + TypeScript

I’m totally cherry-picking the content I’m looking up on TypeScript. It’s neat that TypeScript is code analysis for JavaScript. It’s neat that types are layered over JS to help catch errors and bugs. What I want is to understand types well, and because my primary (and only) coding language is JS, I want to learn to layer types over my code to write cleaner and make better decisions.

However, I don’t want to write code that needs an extra step (or many) in compiling to run. Let types help me in development. As far as my applications are concerned, I’ll only be writing JS. And query languages. For now.

Lean is what I’m working towards.

It was for this purpose that I originally began looking into TypeScript. And also one of the reasons I ended up dropping off learning TypeScript further: I don’t actually want to write TypeScript. However, the whole type system may work to my benefit in writing GraphQL APIs. We shall see.

022/100

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
The Paladin of Nonsense

The Paladin of Nonsense

Reading & Writing. Music & Movement. Coffee & Code.