Introduction to writing an Elm app - Hangman Game

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 พ.ย. 2024

ความคิดเห็น • 30

  • @purovenezolano14
    @purovenezolano14 4 ปีที่แล้ว +13

    Always great to see more Elm content!

  • @jg9193
    @jg9193 2 ปีที่แล้ว +3

    Awesome tutorial

  • @readytheory4330
    @readytheory4330 3 ปีที่แล้ว +5

    Thanks very much -- content is impressive (that is elm capabilities you're demoing, and also the clarity with which you show them). What is the screen capture/editing software you use -- it's clear + good sound, I want it.

  • @AdamSchelenbergCom
    @AdamSchelenbergCom 4 ปีที่แล้ว +4

    Thanks for making and sharing this!

  • @oscardanielvelandia7471
    @oscardanielvelandia7471 4 ปีที่แล้ว +4

    Is a really interesting tutorial. Thank you.

    • @michaeljones8902
      @michaeljones8902  4 ปีที่แล้ว +1

      You're welcome :) Thanks for saying so.

  • @joeyschmitz6882
    @joeyschmitz6882 4 ปีที่แล้ว +3

    This is magic to me.

  • @abdallahalsahhar9511
    @abdallahalsahhar9511 4 ปีที่แล้ว +1

    Thanks for a great video, one question though,
    I noticed that you type two letters at a time, How that works?
    I have been trying to prove my typing speed for a while but not much gain

    • @michaeljones8902
      @michaeljones8902  4 ปีที่แล้ว +1

      Thanks for the comment! I imagine if it looks like I'm typing two letters at a time it is just a result of how the screen capture software works. I type one letter at a time like anyone else :)
      I've never been a great typist but I do have a ergonomic keyboard called the Kinesis Advantage that I've found makes it much more natural to type in the "proper" way so I can sort of touch type but I'm no expert.

    • @abdallahalsahhar9511
      @abdallahalsahhar9511 4 ปีที่แล้ว +1

      @@michaeljones8902 Thanks for your reply, for a second I thought there is a secret technique for typing fast that no one talks about :)

  • @zeroows
    @zeroows 3 ปีที่แล้ว

    Thank you

  • @abdelmaxim5334
    @abdelmaxim5334 4 ปีที่แล้ว +1

    Merci infiniment

  • @timomuller1448
    @timomuller1448 4 ปีที่แล้ว +1

    Greeeeeeeaaaat :D

    • @timomuller1448
      @timomuller1448 4 ปีที่แล้ว

      would you mind doing another Elm beginners course? Would be glad!

  • @Doctor.Livesey
    @Doctor.Livesey 2 ปีที่แล้ว

    17:54 solution is not worked for symbol "w".

  • @jacekjacenty
    @jacekjacenty 4 ปีที่แล้ว +3

    Maybe you have missed the opportunity to talk about Maybe type?

    • @michaeljones8902
      @michaeljones8902  4 ปีที่แล้ว +1

      You might be right, mate :) Maybes would ideally be part of any introduction to Elm. I guess I stuck to the demo concept and I didn't come across an obvious use of Maybe but I could have figured out how to fit one in there!

    • @jacekjacenty
      @jacekjacenty 4 ปีที่แล้ว +1

      @@michaeljones8902 You will see if you take a step back :-)

    • @michaeljones8902
      @michaeljones8902  4 ปีที่แล้ว

      @@jacekjacenty For the empty phrase before introduce the custom type?

    • @jacekjacenty
      @jacekjacenty 4 ปีที่แล้ว +1

      @@michaeljones8902 I don't know, but I was wondering how the code would turn out to be if you used Maybe there. Would it avoid the possibility of the impossible state down the line?

    • @michaeljones8902
      @michaeljones8902  4 ปีที่แล้ว

      @@jacekjacenty I think it would be a better representation than using an empty string. But it would be hard to represent Loading, Running & Error all with a single Maybe. You could have `Maybe (Maybe GameState)` but I'm not sure that is the direction to go :)

  • @virgiliomurilloochoa2884
    @virgiliomurilloochoa2884 2 ปีที่แล้ว

    hello, so I want to learn elm and I know a little. I also know python and mariadb. can you give me a guidance on how to work with elm in the front end and python django on the backend? since I also know django

    • @michaeljones8902
      @michaeljones8902  2 ปีที่แล้ว +2

      Hey, good question. I've done some Django development myself. Elm is for front-end/browser programming and so will mostly naturally fit with Django if you expose JSON API endpoints in your Django app. You might also be able to explore GraphQL though I have limited experience with that. You'd make HTTP requests from Elm using the elm/http library and then decode the JSON responses using the Json.Decode module in the elm/json library. Json decoders are a bit daunting when you first see them but if you google around there are a few good blogs these days.
      Generally you'd treat Elm & Django like you would React & Django or any other front-end language. I don't know if that helps though. It is only useful if you want client side behaviour. Django can do a lot for you with just server side rendering though. Elm doesn't have good server side rendering support so you wouldn't use it on the back-end at all.

    • @virgiliomurilloochoa2884
      @virgiliomurilloochoa2884 2 ปีที่แล้ว

      @@michaeljones8902 thank you very much for the large response. It certainly will be very usefull what you just told me. The thing is that I never used javascript or react. So I was an empty sheet and trying to find information on how to use djando with elm is pretty much unexistent I think they expext yoy to come from react or something jajaja. even thoug it might be very easy. Thank you for the support brother will be following you for more elm content !

    • @michaeljones8902
      @michaeljones8902  2 ปีที่แล้ว

      @@virgiliomurilloochoa2884 If you've never done Javascript before then you might try something like javascript30.com/ which is a free 30 day course to cover the basics. It might be too basic, I'm not sure. I've not done it myself as it came after I'd learnt it already. It is probably worth investing a bit of time into being familiar with JS before diving into Elm. In some ways Elm is easier to use than JS but given that Elm compiles to JS and needs to work with JS for some stuff that isn't covered by the main Elm ecosystem then I think it is reasonable to invest in learning JS a bit first. It is also worth being familiar with the DOM and the browser APIs via JS so you have a mental model of what Elm is doing for you.

  • @mskiptr
    @mskiptr 4 ปีที่แล้ว

    sitelen tawa pi toki pali Elm li sona musi mute mute. pona!