Skip to main content
  1. Posts/

BMI Calculator

··347 words·2 mins
Author
Hairizuan Noorazman
Software engineering experiments, implementation notes, and lessons learned.
Table of Contents

BMI or Body Mass Index is calculated by taking one’s weight (in kilogram) and divided by the square of the height of the person (in metres). You can utilize the following tool below to quickly calculate this.

The are 4 states for BMI calculations; Underweight, Normal, Overweight and Obese.

If you were underweight, it would best to check your diet to ensure that your body is receiving sufficient nutrition to ensure a healthy body to prevent diseases such as nutritional deficiency or osteoporosis. Do seek medical advice if necessary.

However, if you were overweight or obese, it is vital to begin to check diet and exercise to try to begin to lose weight over a time period. Being obese or overweight over long periods is worrisome - when you’re young, your health problems won’t be too obvious but it’ll worsen as time marches on.

Privacy Notice: The following tool will not record any details and is not sent to any server. All calculations are done within browser.

The statictics for diabetes looks relatively grim in Singapore; and it rose to the point where the country wanted to wage War on Diabetes. One of the factors to reduce the incidence of this is to ensure a healthy body weight - which is judged by calculating BMI (Body Mass Index)

In the case for Singaporeans (Asians), the ideal BMI currently is 23. Previously, it used to be 25 (just making use of research done on a mostly western audience), but further studies indicate of differnet fat/muscle composition differences between populations. Refer to some of the studies here: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5571887/

Technical details of BMI tool
#

This section has nothing to do about BMI etc; it would be detailing how the BMI calculator is embedded into the following site.

The following BMI calculator on this page is built on ELM and then embedded into Hugo. Do refer to the details by checking the following page: ELM Frontend in Hugo Static Site

In the future, the tool would be improved to accept various weight/height in various units such as pounds or feet/inches.

Related

Build Chat App with Golang Websocket and Elm Frontend

··1446 words·7 mins
While building Elm based frontends, I decided to take the opportunity to learn on how to craft a chat application. Truthfully, I’ve never really built one before (nor do I need to). But it does seem like an interesting programming exercise to kind of go thru - in order to understand how such applications are built, deployed, scaled and managed. For the frontend, I’m mostly set to use Elm (probably you’ve seen a previous post on my “dislike” for other Javascript based frameworks, which is essentially all the popular ones in the market). For backend, I will probably stick to Golang since that is the language I’m most comfortable with (all hail statically typed languages)

Elm Frontend in Hugo Static Site

··1840 words·9 mins
To view the Elm component in action - scroll down to the Elm Component Demonstration section Motivation # I wanted to learn to try to write a Frontend Application that provide some sort of dynamic functionality - e.g. doing quick mathematical calculation, fetching data from some backend APIs etc. However, the frontend world is a pretty complex world (and continues to be so to date) - there are many factors to take note when writing it:

CORS with Golang Microservices and Elm Frontend is difficult

··1597 words·8 mins
I am still building up my personal pet project: https://github.com/hairizuanbinnoorazman/slides-to-video; the aim of this project is a personal one - to build up a set of microservices that is able to be deployed in various ways such as locally via Docker Compose or even to Kubernetes or the serverless Cloud Run platform on Google Cloud Platform. There was a previous blog post describing an initial part of this journey: Lessons on building the project - Part 1