Output text in a browser using the text function in Elm

Murphy Randle
InstructorMurphy Randle

Share this video with your friends

Send Tweet

This lesson shows a super simple, yet pleasant, look at the smallest Elm example. We will use the text function from the Html module to display text in a browser.

Stephen
Stephen
~ 4 years ago

This fist lessons poses far more questions than it asks. OK so setup is the following lesson, but I must say, watching this first lesson does not provide me with any insight whatsoever to this course, to ELM or related. What was the point, and how this sets up one for an ELM course, is beyond me. The Narrative is fast, confusing, and not at all useful at this point. In fact, it puts me off the rest of the course. Needs some revision, don't know why it was provided on Egghead in its current form.

Murphy Randle
Murphy Randleinstructor
~ 4 years ago

Thanks for the feedback, Stephen. We were thinking it'd be a little "get your feet wet" before jumping into the technicalities of setting up. But sounds like we could certainly improve on the execution.

Scott C
Scott C
~ 4 years ago

I agree that episode 2 is a bit useless, but it is a great introduction for me. I also agree it is confusing to follow, and needs some work. Maybe an episode on syntax before using string concatenation and backward function application. I was going to disagree with you at first typing this because you sounded cynical, but it truly is not useful in the current state.

Oisín
Oisín
~ 4 years ago

All that's missing is some brief context about what Elm is about, a couple of key ideas, in a separate episode inserted before this one, then you can lead into this one as a taster showing how you can start writing Elm programs with very little boilerplate.

Murphy Randle
Murphy Randleinstructor
~ 4 years ago

Thanks for the feedback!

Joel
Joel
~ 4 years ago

I'm getting an error on the first line.

I ran into something unexpected when parsing your code!

1│ module Main exposing (..)
               ^
I am looking for one of the following things:

    a listing of values and types to expose, like (..)
    reserved word `where`
    whitespace
Stephen
Stephen
~ 4 years ago

I returned to this course to see if there were any improvements, but nothing has changed in 10 months, the code shown doesn't run either, so all I can say is I don't think the author really cares in the end. Ill be looking elsewhere. This should not be listed under "Full course" this is more like an eclectic mix of ELM, with no obvious path to follow.