Grading Students -- HaskellRank #02

Поділитися
Вставка
  • Опубліковано 6 січ 2025

КОМЕНТАРІ • 49

  • @valigotech
    @valigotech 6 років тому +50

    That windows error sound distracted me. Because you know, I watch it on Windows XP ;)
    The video is as dope as the first one btw, sad I can't watch your streams these days cuz I finally got a life

  • @harshitjoshi3082
    @harshitjoshi3082 4 роки тому +2

    I am a javascript programmer and I just watched your Haskell for js programmers video and I got to tell you I was able to follow along pretty swiftly. thanks for such great content

  • @davidyanceyjr
    @davidyanceyjr 6 років тому +6

    Wow that was quick. I love haskell, love the series, already looking forward to the next one. Thank your for your time.

  • @d3h0ds0n
    @d3h0ds0n 6 років тому +5

    Fantastic stuff. I've been feverishly checking my subscription box waiting for this one. Its fun to work ahead on hackerrank and to see how closely my solution matches up with yours when the episode comes out. This series is way better learning material than any stuffy tutorial. Keep up the good work!

  • @asdfghyter
    @asdfghyter 6 років тому +21

    You should enable warnings in Haskell, especially -fwarn-incomplete-patterns (or -W or -Wall which includes this), so the missing branch would become a compile time error instead of a run-time one.

    • @Tsoding
      @Tsoding  6 років тому +9

      Yeah, I agree. I use this option for all of my serious Haskell projects github.com/tsoding/HyperNerd/blob/master/HyperNerd.cabal#L56 but for simple problem solutions I don't usually bother. Maybe I should. :)

    • @asdfghyter
      @asdfghyter 6 років тому +5

      I think it might be good from a pedagogical perspective, to teach your viewers that they are useful and how to use them. :)

  • @pliavi
    @pliavi 6 років тому +8

    Woah, thats a interesting series of yours!
    (And love your voice, it's so smooth :v)

  • @aBamieh
    @aBamieh 6 років тому +7

    Awesome! I love this series. Thank you!!

  • @lemattbox
    @lemattbox 6 років тому +5

    I'm new to Haskell and finding it difficult to learn. I love watching this series, please keep it up!

  • @hansschenker
    @hansschenker 4 роки тому

    Devide and Conquer: devide the problem into smaller problems , solve them and compose them to build the solution!! Thank's for the teaching!!!!

  • @joaovcarvalho
    @joaovcarvalho 6 років тому

    Awesome simple solution ! I love the elegance of Haskell programming !

  • @waynee95
    @waynee95 6 років тому +36

    I love the series! Although its not a long video, you learn a lot :D!
    Why are their templates for the solution always so bloated xD Your solution is far more concise and readable.

    • @CliffStamp
      @CliffStamp 6 років тому +3

      Because they need to learn to Haskell.

    • @swordwaker7749
      @swordwaker7749 Рік тому +4

      Their template was probably auto-generated from a domain-specific language designed to generate imperative code.

  • @pdr.
    @pdr. 6 років тому +27

    You could have just done:
    main = interact $ unlines . map (show . round5 . read) . tail . words
    Then you wouldn't need the solve function either.

  • @hansschenker
    @hansschenker 14 днів тому

    I like the way you are applying your logic to the problem: What is divison? How does modulo function work? how can I find the next multiple of 5 formula?

  • @joshuarowe8410
    @joshuarowe8410 5 років тому +2

    That "Your internet is bad" made me chuckle haha

  • @valcron-1000
    @valcron-1000 5 років тому +2

    Now this is what I was looking for. I 'studied' haskell in college but the teacher was just atrocious at it. Now I can see where's the potential

  • @ludvigsundstrom6218
    @ludvigsundstrom6218 6 років тому +5

    Great stuff, also for a non-beginner haskeller

  • @azizulkarim9636
    @azizulkarim9636 3 роки тому +1

    Is he using Emacs with evil mode?

  • @billyblackburn864
    @billyblackburn864 5 років тому

    Im a bit confused about why you need the tail function? why are we removing the first number from the list?

    • @anuraghooda8439
      @anuraghooda8439 4 роки тому +1

      Because we don't need to know the number of elements in the list.

  • @rodelias9378
    @rodelias9378 2 роки тому

    You solved the problem👍🏻

  • @RohitKumar-zi4ue
    @RohitKumar-zi4ue 4 роки тому

    how to stop taking arguments in program which use interact?

  • @purovenezolano14
    @purovenezolano14 6 років тому

    Great explanations!

  • @tahamagdy4932
    @tahamagdy4932 6 років тому

    I DO love your videos; what color-scheme do you use?!

    • @Tsoding
      @Tsoding  6 років тому

      github.com/rexim/gruber-darker-theme

  • @oleksandrklimenkov5988
    @oleksandrklimenkov5988 4 роки тому +1

    Using dark skin in your editor and switching to the white bright screen of the browser hurts eyes, especially if it is being watched on the smartphone.

  • @Darwin226
    @Darwin226 6 років тому

    What's the song in the outro?

    • @Tsoding
      @Tsoding  6 років тому +1

      ua-cam.com/video/WGEV2SSxgSE/v-deo.html

  • @robert33232
    @robert33232 3 роки тому

    Thatks for the video!:))

  • @raccoons_stole_my_account
    @raccoons_stole_my_account 5 років тому +1

    Love the series and the channel. Thanks for sharing!

  • @scotthamilton228
    @scotthamilton228 4 роки тому

    I can tell his is running NixOS from the .emacs-wrapped binary name at the top right corner XD.

  • @daweiliu6452
    @daweiliu6452 6 років тому

    Thanks for the video. What recording software do you use?

    • @Tsoding
      @Tsoding  6 років тому +1

      obsproject.com/ Absolutely Free and Open Source. It's usually used for streaming, but it can record as well. I record and live stream on www.twitch.tv/tsoding simultaneously.

    • @daweiliu6452
      @daweiliu6452 6 років тому

      @@Tsoding Wow just what iven been looking for! Many Thanks again!

  • @neutrino5695
    @neutrino5695 6 років тому

    Excuse me, what code editor do you use?

    • @Tsoding
      @Tsoding  6 років тому +2

      It's Emacs. www.gnu.org/software/emacs/

  • @planccck
    @planccck 6 років тому +1

    What vimrc/plugins are you using? I really like that windowed terminal and the general look

    • @Tsoding
      @Tsoding  6 років тому +4

      You can find my dotfiles here: github.com/rexim/dotfiles

    • @AhmedKhaled-sj1zx
      @AhmedKhaled-sj1zx 6 років тому +6

      I think he use emacs not vim

  • @ArturRains
    @ArturRains 5 років тому

    Yes!! It was very usefull !! Thanks !!

  • @AhmedKhaled-sj1zx
    @AhmedKhaled-sj1zx 6 років тому

    Nice go ahead.
    I there are another version by lisp, but anyway. thnx

  • @jotaro387
    @jotaro387 3 роки тому

    enjoyed

  • @BV-mg1ek
    @BV-mg1ek Рік тому

    Cool vid. But i dont think i can ever get over how you calculated m5 by adding x, and then did (m5 - x) in the condition. That was mildly infuriating ngl...

  • @top_cat26
    @top_cat26 6 років тому

    thanks

  • @johnwarren6966
    @johnwarren6966 6 років тому +1

    Emacs rocks.