Functional programming in C#

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

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

  • @tarquin161234
    @tarquin161234 20 วันที่ผ่านมา

    I'm a big proponent of many of these concepts: the static keyword, minimising state, immutability, pure functions, however I can't see the advantage of treating methods as variables, at least in my usage of C#, which is APIs. In the end I think a good old long procedural method is simplest and best for me. But in front-end, this could be of interest, though I feel like it would take something very special to top declarative reactive programming with rxjs.

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

    Very good video. One thing i would have liked to see is more info about immutability at the field and parameter input level (readonly, const, immutable /read-only collections, etc).

  • @BrazilMentionedHueHue
    @BrazilMentionedHueHue 4 หลายเดือนก่อน +2

    Didn't know you could have top level functions in C#! gonna be honest, my distaste for C# is slowing wearing off

    • @traintocode
      @traintocode  3 หลายเดือนก่อน

      Hahaha as it should...

  • @tore28
    @tore28 หลายเดือนก่อน

    5:13 - Here you use the builder pattern on record to provide a domain model for changing the UserRecord ?

  • @artsytechie2053
    @artsytechie2053 4 หลายเดือนก่อน

    could you do a brief overview of Clojure please x

  • @StephenBeale
    @StephenBeale 3 หลายเดือนก่อน

    nice one, thanks

  • @redmundperrz7234
    @redmundperrz7234 5 หลายเดือนก่อน

    I have feeling that the keyword ‘static’ will be omitted in the future release

    • @traintocode
      @traintocode  5 หลายเดือนก่อน

      Why do you think that?

    • @redmundperrz7234
      @redmundperrz7234 5 หลายเดือนก่อน

      @@traintocode most of the function comes with static keywords and redundant future release will come static by default and no need to put unless you will change to non-static

  • @learnnew4938
    @learnnew4938 หลายเดือนก่อน +1

    First we move from functional programming to object oriented and now we r moving back to functional...what I can say...programming is a circle 😂

    • @traintocode
      @traintocode  หลายเดือนก่อน

      We'll be moving back to punch cards next year ;) in all seriousness though developers have a tenancy to over index when we learn a new thing. You learn OOP and suddenly every problem looks like it needs OOP. Then a few years later people realised that was not correct.

  • @MiningForPies
    @MiningForPies ปีที่แล้ว

    The only issue I have is the name of the composed method. It incorrectly describes what the function does.

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

      You are probably right I could have picked a better name. Naming things is the second hardest part of software engineering

    • @csabraxas
      @csabraxas 3 หลายเดือนก่อน

      @@traintocode Whats the hardest part?