paint-brush
How to Build a Model Train Calculator the Right Wayby@madsphi
1,613 reads
1,613 reads

How to Build a Model Train Calculator the Right Way

by Mads Phikamphon4mAugust 25th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

A calculator where you can enter various factors like layout dimensions, scale, number of locomotives etc. and get a rough estimate of how much your new layout is going to cost you. Most of the calculator was written in Javascript, while the actual cost calculation was done by calling an API function. The calculation function has been written as an extension to the WordPress REST API. With the database table, I can also assign each calculation a unique id - with the id, people can share their calculations and tweak their calculation later on.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - How to Build a Model Train Calculator the Right Way
Mads Phikamphon HackerNoon profile picture
Mads Phikamphon

Mads Phikamphon

@madsphi

Programming something

About @madsphi
LEARN MORE ABOUT @MADSPHI'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Mads Phikamphon HackerNoon profile picture
Mads Phikamphon@madsphi
Programming something

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