https://github.com/codesmell/fluent-builder
https://github.com/codesmell/fluent-builder
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/codesmell/fluent-builder
- Owner: CodeSmell
- Created: 2016-10-07T19:25:40.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-08T20:57:18.000Z (over 9 years ago)
- Last Synced: 2025-04-15T00:11:18.215Z (11 months ago)
- Language: Java
- Size: 12.7 KB
- Stars: 5
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fluent-builder
Was mentoring some new developers at work and we discussed various ways to create objects in Java.
This project showcased how to move from a standard getter / setter approach to a constructor with parameters.
From there we looked at making a fluent API and then added the builder pattern.
Some blog entries
* [Fluent Object Creation](https://theagilejedi.wordpress.com/2016/10/10/fluent-object-creation/
"Fluent Object Creation") takes a look at the code smells associated with a long parameter list in a constructor and adds a fluent API to a POJO
* [Nested Fluent Builders with Java 8](https://theagilejedi.wordpress.com/2016/10/21/nested-fluent-builders-with-java-8/
"Nested Fluent Builders with Java 8") adds the builder pattern to our POJO. Then explores using Java 8 lamdas to support a nested fluent builder.