A Simple Example using elm


In this blog, we will see how to build a simple application using elm. Elm is a functional language that compiles into javascript with following features:-

1)  Great Performance
2)  No run-time exception
3)  Javascript Interop
4)  Friendly error message
5)  Ability to write functional code

Elm is getting popular day by day. According to Slant community, it is the 2nd most popular language, which compiles into Javascript. I have just started learning Elm and am still exploring this.

This is a very simple example to get country code of any location.  I have taken help from Elm tutorial.

Every Elm program in divided into 3 parts

1) Model

model

2)  Update

update

3)  View

view

For complete source code, go to A Simple Application using Elm.

KNOLDUS-advt-sticker

Advertisements

About Ayush Mishra

Ayush is the Sr. Software Consultant @ Knoldus Software LLP. In his 5 years of experience he has become developer with proven experience in architecting and developing web applications. Ayush has a Masters in Computer Application from U.P. Technical University, Ayush is a strong-willed and self-motivated professional who takes deep care in adhering to quality norms within projects. He is capable of managing challenging projects with remarkable deadline sensitivity without compromising code quality. .
This entry was posted in AJAX, Functional Programming, HTML, JavaScript, knoldus, Web, web application and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s