JavaScript Coding Dojo: The DictionaryReplacer Kata

A dojo is the exercise room of Japanese martial arts. The exercises itself are called kata. The coding dojo is about mastering an exercise (kata). According to the motto “Learning by doing”. The cross-platform blog will now regularly publish JavaScript Katas.

The DictionaryReplacer Kata

This kata is about making a simple string replacer. It is inspired by Corey Haines Lightning talk about practicing. Create a method that takes a string and a dictionary, and replaces every key in the dictionary pre and suffixed with a dollar sign, with the corresponding value from the Dictionary.

Node.js: A REST Web-API with Express.js and TypeScript

There is one Web-Application Framework, which has been strongly enforced with Node.js: Express.js. It has been inspired by the Sinatra-Framework, known of the Ruby world. It extends the Node.js Build-In modul http, so developing a modern web-app will be simplified:

  • Comparable to the Microsoft Web-API (just better :))
  • Communication with REST (HTTP) is norm
  • Request/Response-Handling
  • Routing
  • View Templating
  • Session Support
  • Static Files Support
  • Middleware
    • e.g. functions, which are able to log between request and response (Logger etc.)
  • and many more…