dotGo 2016 - Dave Cheney - Do not fear first class functions

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

КОМЕНТАРІ • 34

  • @dreamworm8
    @dreamworm8 4 роки тому +5

    I saw this talk at the beginning of my journey to Go, and it was not so easy to understand. Now two years later I see it from so much different point of view. That's mindblowing at the beginning, but so amazing.
    Thank you Dave for the great talk.

  • @diff9646
    @diff9646 5 років тому +22

    I don't fear first class functions anymore but I'm terrified of Dave Cheney now.

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

      Why? Dave Cheney looks as such friendly guy.

  • @DimaKurguzov
    @DimaKurguzov 8 років тому +4

    Fantastic talk changing the way I see programming in Go!

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

    Dave Chaney at his best! Thanks for sharing amazing knowledge!

  • @jokicnikola07
    @jokicnikola07 4 роки тому +3

    This man is a treasure. Great talk for real!
    But just have to check, am I the only one that sees an error on 16:21, SendMsg function where you return what you read from the error chan, but the function does not return anything... It does have sense to put the

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

      After reading your comment I also see error in SendMsg. I think Dave Cheney was thinking along these lines. "In the line >>return

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

    13:35 In the first case in select should it be m.conns[conn.RemoteAddr()] or conns[conn.RemoteAddr()]? I think latter, since conns is not a field of structure Mux, but map defined in function loop().

  • @jingjibunandong
    @jingjibunandong Рік тому +1

    Genius

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

    As a kid I learned BASIC while dabbling with my C64, in elementary school we were taught Pascal to make a snake game, at the Polytechnic were taught C and other languages but I picked up Common Lisp myself. First class functions and higher order functions? Not a very scary concept to an ex-Lisper.

  • @AndreKhan716
    @AndreKhan716 7 років тому

    Thank you, Dave! Great content.

  • @victornoagbodji
    @victornoagbodji 8 років тому +2

    great talk : ) the Mux example was too short.

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

    I think there’s an error in the chat channel example. The local map in the mux loop is never used. All operations in the select statement use fields on the mux

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

      Yes,I found that too.

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

      Yeah the typo was ‘m.conns’; should have been just ‘conns’ each time. At 13:55 he says that the conns map is just local to the function and can’t be mutated outside of it.

    • @BigJuggsOnly
      @BigJuggsOnly Рік тому

      On 16:30 he returns an error from the function SendMsg() which signature doesn't imply returning anything

  • @esmaelmohamed8209
    @esmaelmohamed8209 Рік тому

    Dave Wow wow❤❤❤ ur extremely valuable for Go community

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

    any well written, open source apps with these good practices (this and the Option funcs)?

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

    I'd like to see the complete code for the concurrent implementation which does not use locks, where can I find that?

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

    Ah, so a part of what Peter Bourgon says in ua-cam.com/video/LHe1Cb_Ud_M/v-deo.html about his actors stuff comes either from here (or their ideas just share common ancestry). Does anyone have earlier examples of this "ship a function on an actionc or an ops channel to synchronize"?

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

    What is the talk he was inspired by a couple of months ago? I can't hear him clearly and can't find the video.

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

      I think it's this one: ua-cam.com/video/yCbon_9yGVs/v-deo.html
      (the surname Boreham is not something I would've figured out, but the closed captions got it for me, or well, it got me Botham but youtube autocompleted it perfectly :D)

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

    Dave and Rob kind of look like the gopher :)

  • @WickedLogic
    @WickedLogic 8 років тому +1

    Monads should not be scary.

  • @mhcbon4606
    @mhcbon4606 7 років тому

    cool stuff as always, would be better as Stream.Map(Add(2)).Push(1)=>3

  • @vorandrew
    @vorandrew 7 років тому +8

    Great knowledge, terrible speaker

    • @vorandrew
      @vorandrew 7 років тому +1

      3rd time watching... Great knowledge!, terrible speaker

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

      What makes him a terrible speaker in your opinion?

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

      @@joonasfi judging from his last name he isn't a native speaker, so that must be it

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

      @@nxxxxzn so non-native english speaker = terrible speaker?

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

      @@nxxxxzn He's Australian