Journal Entry #4: 06/22/2015-06/26/2015


Constructing a simple Elm program that takes multiple strings from the user, such as the first name and last name will print what is typed into the field into a greeting. First, one will have to define a Record (Model). The record contains last name, first name, greetings, and log. Then one will have to define a function that holds these strings and defines their types. The string will have to be updated constantly just in case there are some changes made to the input. After, these strings are updated, and actions are made to input the string by using pattern matching. In order to display the strings and the greeting message, the view function is created to take the Address Action to communicate the program in terms of the Action. Learning the input of strings by the user helped me understand how the model can take string types from the keyboard and display them on the screen.