Typescript and Test Driven Design don’t fix everything, but…

I’m a slow adapter

What has changed?

My Process

  • paper prototype planning
  • Empty functions
  • Typescript types
  • Tests (red)
  • Actual code
  • Green test check

1) Paper Prototype

  • the player can create and adjust gambits that will control his units
  • gambits will be checked one after another until a condition is met
  • get all targets matching the selection
  • filter them down based on the condition
  • see if the skill/attack is available
  • return the action and target or check the next gambit

2) Empty Functions

3) Typescript Types

Conclusion

Moving on

Some words about me:

--

--

--

I’m a Web / App Developer & father 👨‍👩‍👧 doing freelance and part-time agency work since 2003, 💻 building stuff on the side 🕹 and attending conferences 🎟

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Best video to explain the Dijkalgorithm

Axway Mobile Backend Services: Posts, associated Photos, and Alloy Collections.

Creating simple application with GoJS, part 1

Creating a AWS Lambda function with Haxe

Learn React: Top React Tutorials Recommended by the Community

Why choose the Angular framework

Modularizing the logic of your Vue.js Application

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
Konrad Abe

Konrad Abe

I’m a Web / App Developer & father 👨‍👩‍👧 doing freelance and part-time agency work since 2003, 💻 building stuff on the side 🕹 and attending conferences 🎟

More from Medium

Redux Considered Harmful

Micro frontends vs SPA’s

Rich Enums in Typescript?

Writing unit tests in typescript using jest.