evancz / elm-architecture-tutorial

How to create modular Elm code that scales nicely with your app
https://guide.elm-lang.org/
BSD 3-Clause "New" or "Revised" License
4.17k stars 738 forks source link

Counters examples #110

Closed PetrSnobelt closed 4 years ago

PetrSnobelt commented 7 years ago

Hello, some time ago I read Interesting sample/tutorial with Counter and List of Counters, but I can't find it anymore. Is there any reason why it is removed? Is there another such advanced example?

Thanks Petr

process-bot commented 7 years ago

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

evancz commented 4 years ago

The examples generally match https://guide.elm-lang.org/ these days. The content there has been updated many times as we found ways to present things better. I believe the "list of counters" example ended up being confusing for a lot of people.

Many people coming to Elm are used to thinking in terms of "components" so the guide has been adjusted to put a lot more emphasis on reaching for functions first. We found that those old examples (1) made people feel like they could bring their habits over directly from React and (2) those people were then disappointed when those habits led to difficult code, code that someone coming from a functional background would have never thought to write. In other words, the guide was not teaching them some important fundamentals of coding in a functional language.