O'Reilly logo

TypeScript Blueprints by Ivo Gabe de Wolff

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Spreadsheet Applications with Functional Programming

In this chapter, we will explore a different style of programming: functional programming. With this style, functions should only return something and not have other side effects, such as assigning a global variable. We will explore this by building a spreadsheet application.

Users can write calculations in this application. The spreadsheet contains a grid and every field of the grid can contain an expression that will be calculated. Such expressions can contain constants (numbers), operations (such as addition, multiplying), and they can reference other fields of the spreadsheet. We will write a parser, that can convert the string representation of such expressions into a data structure. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required