How Sharp is Your C#? | Riddle #2

Sdílet
Vložit
  • čas přidán 9. 05. 2023
  • In today's video, we'll break down a short riddle that almost everyone guessing the correct answer out of 4 possible answers got wrong.
    This riddle is all about the implicit operator in C#. Hope you enjoy it!
    Connect with me on 'em socials:
    Twitter: / amantinband
    LinkedIn: / amantinband
    GitHub: github.com/amantinband
  • Věda a technologie

Komentáře • 18

  • @LetsLearnWithA.R
    @LetsLearnWithA.R Před rokem +16

    58

    • @Ianis58
      @Ianis58 Před rokem

      Because that's the answer I was gonna write, I know that you're wrong!

  • @rustamhajiyev
    @rustamhajiyev Před rokem +3

    Great one! More riddles, please 😃
    Good devs should be able to run short snippets of code in 🧠

  • @pirati02
    @pirati02 Před rokem +8

    I got right at very first time and now answer is 58.

  • @apfohl
    @apfohl Před 6 měsíci

    That was a great riddle. It shows what possible dangers can come from implicit operators if you don’t pay attention.

  • @Coburah
    @Coburah Před rokem +7

    Great, short video. Sadly, I got it wrong. Also a great show case of why we should be explicit in our code. Please don't write code like this! 😂

  • @rickyrick6901
    @rickyrick6901 Před 11 měsíci +1

    19 x 3 +1 I didn't know all this ! Excellent Amichai as always !! As improvement, i think it would have been interesting to see the percentage for each of the answer :)

  • @thatojadezweni
    @thatojadezweni Před rokem +6

    implicit methods/operators are great until they’re abused recklessly and you have to debug them

  • @marcovalenti2621
    @marcovalenti2621 Před rokem +2

    didn't know about the "automatic" conversion of value in a Foo object!

  • @raptorcheesus
    @raptorcheesus Před 7 měsíci

    gotta be 58 since nothing really changed after you just explained what tricked many of us and just repeats that nasty operation x)

  • @fkeyzuwu
    @fkeyzuwu Před rokem +1

    i thought i got it right until you said 19 and realized i didnt see the operator returns a Foo again haha

  • @CoderboyPB
    @CoderboyPB Před rokem +1

    (19 * (2+1)) + 1 = 58 would be my solution

  • @aezazhasan2890
    @aezazhasan2890 Před měsícem

    61?

  • @nage7447
    @nage7447 Před rokem +2

    I knew you can should to your leg by using implisit operator but this is like way beyond common sense

  • @piotrc966
    @piotrc966 Před rokem +3

    58