Living, etc
Living, etc
  • 3
  • 864
Five More Features of Go 1 24
00:12 Directory-limited filesystem access
01:30 Improved Finalisers
04:40 TextAppender and BinaryAppender interfaces
06:01 GOAUTH Environment variable
09:29 go/types iterator functions
Previous video about Go 1.24 features: ua-cam.com/video/kcNZ-iLXroA/v-deo.html
Переглядів: 88

Відео

Five features in Go 1.24
Переглядів 85121 день тому
0:13 Generic Type Aliases 1:40 Weak Pointers 3:53 Managing tools in go.mod 5:39 New functions in bytes and strings packages 7:07 omitzero json tag
Error handling in Go from scratch
Переглядів 6828 днів тому
Locality of Behaviour (LoB) - htmx.org/essays/locality-of-behaviour/

КОМЕНТАРІ

  • @elgs1980
    @elgs1980 6 годин тому

    5:53 the AppendText behaves like prepend, isn't it? Or many it should be called AppendTextTo.

    • @livingetc-f8b
      @livingetc-f8b 5 годин тому

      It adds the text to the end, rather than the beginning, so it's not a prepend. Maybe the name is a little confusing.

    • @elgs1980
      @elgs1980 5 годин тому

      @@livingetc-f8b > It adds the text to the end, rather than the beginning, so it's not a prepend. now.AppendText([]byte(prefix)) yields "The time is 2025-01-25...". It doesn't add the text to the end of the "now", it prepends the text at the beginning of the "now".

    • @livingetc-f8b
      @livingetc-f8b 5 годин тому

      Derp, you're right. I really should have reread my own code before responding. :) Yeah the logic of the naming of the function appears a little confusing the you stop to think about it. Thanks for pointing that out :)

    • @elgs1980
      @elgs1980 5 годин тому

      @@livingetc-f8b I've never been happy with how go's developers name things. For example, context is doing cancelable things. And for a struct, in my opinion, nothing can be better than "this" or "self" to represent a pointer to an instance of the struct itself, and you know what, go discourages to name it this or self, rather, they recommend to name it the lower case of the first letter of the struct name. I never accept it and always name it "this" as a pointer to the instance of the struct.

  • @sebas11tian
    @sebas11tian 5 днів тому

    I love how well passed the code explanations are. Thanks