paint-brush
More functional: A story in refactoring a 2d vector libraryby@FrancisStokes
1,662 reads
1,662 reads

More functional: A story in refactoring a 2d vector library

by Francis Stokes7mJanuary 25th, 2018
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

This article is about how I rewrote my library <a href="https://github.com/francisrstokes/vec-la" target="_blank"><strong>vec-la</strong></a> in a functional programming style. <strong>vec-la</strong> is a small 2d <a href="https://en.wikipedia.org/wiki/Linear_Algebra" target="_blank">linear algebra</a> library that models <a href="https://en.wikipedia.org/wiki/Euclidean_Vector" target="_blank">vectors</a> and <a href="https://en.wikipedia.org/wiki/Matrix_%28mathematics%29" target="_blank">matrices</a> as<em> plain javascript arrays</em>. This article <em>is not about</em> math and linear algebra though — you don’t have to know that much to be able to get some value out of it.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - More functional: A story in refactoring a 2d vector library
Francis Stokes HackerNoon profile picture
Francis Stokes

Francis Stokes

@FrancisStokes

L O A D I N G
. . . comments & more!

About Author

Francis Stokes HackerNoon profile picture
Francis Stokes@FrancisStokes

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite