30 Matching Annotations
  1. Mar 2025
    1. Using options is usually considered better coding practice than raising exceptions, because it forces the caller to do something sensible in the None case.

      And this is possible in Java since java 8 with [Optional] type and considered a good (modern) coding practice : https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html

      I would have thought that this came from Scala, another multi paradigm programming language, leaning towards functional programming. Functional programming as a time travelling machine !

  2. May 2024
  3. Feb 2023
  4. Aug 2021
  5. Jun 2021
  6. Feb 2021
  7. Jan 2021
  8. Nov 2020
  9. Oct 2020
  10. Sep 2020
    1. And normally, accepting a class prop is documented in the component's props, so passing a class prop to a component that doesn't utilize it, and see no effect is not surprising at all, in the sense that passing any undocumented prop normally mean that it will have no effect.
  11. May 2020
  12. Apr 2020
  13. Mar 2020
  14. Dec 2019
  15. Oct 2019
  16. Sep 2019
  17. Aug 2019