Comments by "" (@diadetediotedio6918) on "ThePrimeTime" channel.

  1. 3
  2. 3
  3. 3
  4. 3
  5. 3
  6. 3
  7. 3
  8. 3
  9. 3
  10. 3
  11. 3
  12. 3
  13. 3
  14. 3
  15. 3
  16. 3
  17. 3
  18. 3
  19. 3
  20. 3
  21. 3
  22. 3
  23. 2
  24. 2
  25. 2
  26. 2
  27. 2
  28. 2
  29. 2
  30. 2
  31. 2
  32. 2
  33. 2
  34. 2
  35. 2
  36.  @isodoubIet  > Of course it's a bad thing. It inhibits code reuse It really depends on what you are calling "code reuse", I'd need to disagree with you on this one if you don't show some concrete real world examples of this. > loosens the system modeling as you're now encouraged to report and handle errors even if there's no possibility of such This is a sign of bad API design and not a problem with having errors as values. If you are returning a "maybe error" from a function then it <maybe> an error, it is a clear decision to make. > increases coupling between unrelated parts of the code I mean, not really, you can always flatten errors or discard them easily in an EAV model. > and can force refactorings of arbitrarily large amounts of code if even one call site is modified. Again, this is true for any kind of function coloring, including <type systems> and <checked exceptions> (like Java has). A good designed code should be resilient to this kind of problem most of the time. > You can say "this is a tradeoff I'm willing to make". That is fine. You cannot say this isn't a bad thing. I absolutely can say it is not a bad thing. It is not a bad thing. See? I don't think function coloring is necessarily bad, thus I would not agree with you upfront this is a bad thing. I think being explicit about what a code does and the side effects that it can trigger is a good thing, an annoying thing sometimes I can concede, but I cannot call it a "bad thing" on itself, only the parts that are actually annoying (and the same goes for when you don't have this kind of coloring and then it blows up in your head because of it, it is a "bad thing", not the lack of coloring itself).
    2
  37. 2
  38. 2
  39. 2
  40. 2
  41. 2
  42. 2
  43. 2
  44. 2
  45. 2
  46. 2
  47. 2
  48. 2
  49. 2
  50. 2