User contributions for Java-Edits
Appearance
Results for Java-Edits talk block log uploads logs global block log global account filter log
A user with 12 edits. Account created on 15 March 2019.
17 March 2019
- 12:5412:54, 17 March 2019 diff hist −44 m State pattern →Java: Clean the code a little bit, use Suffix convention for a class that implements an interface, remove useless final on parameters (parameters are effectively final since Java 8)
- 11:1311:13, 17 March 2019 diff hist −1,781 Mediator pattern →Java: Change the example to not using swing components given that less and less people are using swing. This example also try to show that the mediator acts as a middle man of all calls
15 March 2019
- 18:2518:25, 15 March 2019 diff hist +6 m Bridge pattern →Java: fix comment wording
- 18:2418:24, 15 March 2019 diff hist −329 Bridge pattern →Java: Change the example that better separate the internal API "operate" and the external one "withdraw"
- 16:5716:57, 15 March 2019 diff hist −60 m Adapter pattern →Java: remove the word "Recharger"
- 16:5316:53, 15 March 2019 diff hist +2,133 Adapter pattern →Java: implements the hp
- 16:1116:11, 15 March 2019 diff hist +4 m Decorator pattern →First example (window/scrolling scenario): make the decorators non mutable
- 16:1016:10, 15 March 2019 diff hist +82 m Decorator pattern →Second example (coffee making scenario): add @Override and make decoratedCoffee non visible to the subclasses
- 10:5910:59, 15 March 2019 diff hist −11 Composite pattern →Java: add the imports, remove unused code, add @Override, re-organize the main() to better explain that a CompositeGraphics can itsef contains a CompositeGraphics
- 10:4910:49, 15 March 2019 diff hist −11 m Proxy pattern →Java: fields initialized during construction should be final (to avoid publication issue), local variable doesn't need to be declared final since Java 1.8
- 10:4010:40, 15 March 2019 diff hist +60 m Strategy pattern →Strategy and open/closed principle: use a constructor instead changing the field brakeBehavior directly in subclasses
- 10:2710:27, 15 March 2019 diff hist −93 Interpreter pattern →Java: fix indentation, use Map.of() to initialize the Map (so it's typed correctly)