Elegant Objects and Cactoos

Elegant Objects and Cactoos

Overview of the EO paradigm and small overview of the Cactoos library for Porto Codes Meetup

64999497a1bea392bb5f23c9353e6c3a?s=128

Filipe Freire

December 21, 2017
Tweet

Transcript

  1. 2.

    Quick intro Learner, tester, developer, husband
 OSS contributor 2y work

    as a “coding” tester
 1y work as a developer Currently @ filfreire.com 2
  2. 15.
  3. 17.

    17

  4. 22.

    An object isn’t: 1) A link between worlds 2) A

    collection of procedures 
 plus data 22
  5. 24.

    A Finder of Prime Numbers vs A List of numbers

    that 
 returns only primes 24
  6. 34.

    Example “I want results for a Tennis match” Tennis_31Feb.xlsx TENNIS.txt

    tennis_res.json Sources: … ExcelTennisMatch TextTennisMatch JsonTennisMatch 34
  7. 35.

    Example “I want results for a Tennis match” ExcelTennisMatch TextTennisMatch

    JsonTennisMatch TennisMatch GameMatch implement extends 35
  8. 40.

    Some benefits Thread Safety Avoiding Temporal Coupling Avoiding side effects

    Avoiding identity mutability (more at http://yegor256.com/2014/06/09/objects-should-be-immutable.html) 40
  9. 43.

    - Hello, is it a software department?
 - Yes.
 -

    Let me talk to your employee "Jeffrey" please.
 - Hold the line please...
 - Hello.
 - … 43
  10. 44.

    - Hello, is it a software department?
 - Yes.
 -

    Let me talk to your employee "Jeffrey" please.
 - Hold the line please...
 - Hello.
 - Are you NULL? (more at http://www.yegor256.com/2014/05/13/why-null-is-bad.html) 44
  11. 48.

    Meaning… No null No code in constructors No getters and

    setters No mutable objects No static methods, not even private ones (among other stuff) 48
  12. 55.