Giter Club home page Giter Club logo

haskell-course's Issues

Bug in last exercise on lesson 6 Homework

I think the filtering is applied to the wrong list, it should filter "bevogBeerPrices" with orderList", it's doing the opposite as it is right now

It works as it is now because the "orderList" has only the first three types of beers but won't work for other order lists.

Example: if we change orderList so it is
orderList =
[ ("Tak", 5),
("Kramah", 4),
("Baja", 7)
]

Then answer should be 8.5+(56+47+7*7.5)=119
beerCosts orderList gives = 126 as it zips "Ond" cost with # of Baja beers ordered.

Solution proposal:

`beerCosts orderlst =
  foldr (+) deliveryCost
 . zipWith (*) (map snd orderlst) 
 . map snd
 $ filter (\name -> fst name `elem` map fst orderlst) bevogBeerPrices`

Enclosed pdf file with handwritten comments on VSCode might help!

Lesson 6 Homework Solution Bug.pdf

Spanish translation

Hi Rober, I thought it was a great idea to have a community translation so I´ve forked and translated the repo to Spanish (up to lesson 1).
Here´s the repo, anyone can help improving it.
Saludos ;)

A tiny, not so important, thing in the solution of Homework 06

In lines 98 & 104 of 6th lesson solution, namely

factorial :: Int -> String

and

    result = product [1 .. n]

I think the type should be Integer instead of Int, it seems the same but this code won't work if n > 20. I know this homework isn't meant to deal with such things, but I think it's a good opportunity to show when Integer is more suitable than Int.

Free Online Integrated Development And Education Environment (IDEE) For Cardano To Grow The Community

I am grateful for the invitation to make requests about the course.

First, congratulations to Robertino Martinez for being the very first to write Haskell course material that I can actually follow. I have tried and failed to understand Haskell using all the Haskell courses listed in this index. So if Robertino has found a way to teach me, then he has found a way to teach everyone. And that is exactly who we want joining the Cardano developer community - everyone.

I have the distinction of having failed the Plutus Pioneers program all 3 times.
I failed each time because I was never able to setup my development environment.
I am not the only one who had this problem.
There must be many like me who have failed before even getting started.

On joining the Marlowe Pioneers I received extensive help from the community and was able to setup the development environment well enough to participate. Then with much help from our teacher Brian Bush I was able to understand the lessons and contribute in small ways.

(Brian presents his lessons using Jupyter Notebook)
In this video you can see Brian generating and running smart contracts on the testnet using Jupyter notebooks.

Despite many attempts, I was never able to run Brian's lessons from Jupyter Notebook. Instead I was forced to cut and paste mountains of code from the notebooks into my local terminal window. This extra step was inefficient and very error prone. As far as I know, none of the other students were able to run the code from Jupyter Notebook either. Something about our local environments were different from Brian's

Robertino has clearly solved the setup problem by using a version of Jupyter that runs in the cloud.

In summary:
In this video, Brian has demonstrated the advantages of generating and running Cardano smart contracts from Jupyter.
Robertino has demonstrated that he can distribute to all a cloud version of Jupyter that we know will work because it runs with no install or local complications.
We know we are losing developers before they even arrive because it is so difficult to setup the development environment.

Ask Number One
Please, can Robertino's Haskell lessons in Jupyter be expanded to include Plutus and Marlowe such that we can query and deploy to the testnet right from the lesson materials the way we see Brian doing it?

Aside from providing course materials in Jupyter, Robertino has also provided us with an online version of the VS Code IDE which hosts Jupyter. When I saw that I thought "Oh My God!, That's Remix for Cardano"
Remix is Ethereum's free online integrated development and education environment (IDEE).
It's the gateway drug to Ethereum smart contract development.
Anyone with access to the Internet can go to https://remix.ethereum.org/ to learn Solidity and then deploy a smart contract for free (not counting the enormous transaction fees)
We need that too!

Robertino's online VS Code implementation has something that Remix does not have - Jupyter.
Well it almost has Jupyter. It displays Jupyter but sadly it doesn't run it.
That's because the online VS Code implementation is not free after 50 hours and Robertino wants users to have the service available for the lesson homework.

Ask Number Two
Please, Give us a free IDEE for Cardano like Remix but that also runs Jupyter.
You are so close. Please, you are almost there.

Ask Number Three
Finally, when Robertino's lessons are all recorded, May we please see the lessons in one giant video on FreeCodeCamp much like this one for Remix which is 32 hours long and has been view more than 800,000 times? That will bring more developers to Cardano as they learn to love Haskell, Plutus, and Marlowe.

Much thanks for considering all these requests.

Solutions

Hi, can someone point out where can I find the solutions to the Homework? Thank you!

Suggestion: Provide a readme for an off-line setup

Hi,

In order to be able to work on the course at home and at work (Win, IHaskel on WSL/Ubuntu) an more importantly for me off-line on my laptop when I travel/fly (Mac M1 Max with IHaskell in Docker container) I arrived at a configuration that works well and allows me to sync (I forked the course repository and use my own solution branch).

I am willing to write up a readme if there is any interest.

Best regards,
Andrei

Speedup the Integrated Development Environment (IDE)

From: #6

I understand that IDE is coming but the timeline is a discouraging. Developers are struggling. They can’t wait months. See: https://forum.cardano.org/t/developers-are-having-dismal-experience-building-on-cardano/110080

There are projects (like Sundaeswap, JPG.store, etc) currently running on Cardano. I can imagine they already developed in-house IDE or something similar. Can you reach out and ask them to open-source their tools? Or maybe form some kind of co-development of a Cardano IDE, based on what they already have, to be share with the ecosystem? That would speed things up immensely. Developers, especially new ones wanting to get into Cardano, desperately need the IDE. Most of them can't wait months.

This is urgent. Make it happens before they go build elsewhere.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.