knowthen / elm Goto Github PK
View Code? Open in Web Editor NEWSource companion for the Elmlang course at
Home Page: http://courses.knowthen.com/courses/elm-for-beginners
Source companion for the Elmlang course at
Home Page: http://courses.knowthen.com/courses/elm-for-beginners
There are some minor flaws in that excercise. Basically the solution provided does not match the logic that is suggested.
The exercise descriptions wants you to
[...] set the freeQty of each record using the following logic: Purchases of 5 or more receive 1 free. Purchases of 10 or more receive 3 free.
As I understand this, there are three cases here:
When I looked into the solution the logic behind it seems different, though. The implementation lets you get 3 free items for every 10 and 1 free item for every 5 purchases. The only issue is that if you already got any extra items for having a multiple of 10 purchases, you'll be missing out on another free item in case you have at least 5 more purchases remaining (because the free function checks freeQty == 0
).
I'd love to fix it (would be my first PR 🎉 ), but what would be the prefered solution? I think the second way of solving this is a bit more difficult, how about splitting the first exercise into two?
I'm working on setting up atom for my elm dev environment (I typically use Sublime and JS) and am attempting to follow these directions, but when I try to add the path for elm-oracle to my language-elm atom package, there is no settings button on my language-elm package and I cannot add the path. Is there something I'm doing wrong here or some way I can fix this?
Hello,
Just start your tutorials and upgrade to elm 0.18 and elm-package.json in "01 functions" for example break the build.
Thank you for your videos!
Hi,
I'm following the beginners course again, I did 2/3 of it in the spring of 2017, bought the full course, but got caught up with other stuff and want to restart.
I'm installing atom 1.20.1 on mac and the needed packages as shown in the instruction video for setting up your dev environment. The problem: when I install linter-elm-make in atom using apm and then fire up atom: there's no settings button for linter-elm make. I've uninstalled the package, uninstalled/reïnstalled the linter, nothing.
I noticed that linter now needs a number of sub-dependencies installed, which I've done. Is there some incompatibility with linter-elm-make and the atom linter package.
On my old mac system I checked the atom setup and there linter-elm-make does show the settings button. I did the exact same setup back then following the instructions, have no idea what's different now. I am not very experienced yet with atom though :-( . The other configuration instructions (path to elm-format) work flawlessly.
If you create 2 plays:
then delete an old Play so it becomes
then add a new play it becomes
which will mean if you delete or edit either of them then they both get edited. And this could be repeated so that eventually every play get edited/deleted.
Basically when delete is allowed the List.length for an ID generator doesn't work properly.
Normally in this case I keep a nextId in the model and increment it upon adding to the list.
is there any plan to update the material?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.