iluwatar / java-design-patterns Goto Github PK
View Code? Open in Web Editor NEWDesign patterns implemented in Java
Home Page: https://java-design-patterns.com
License: Other
Design patterns implemented in Java
Home Page: https://java-design-patterns.com
License: Other
hello iluwatar
when I read the Singleton pattern ,the ThreadSafeLazyLoadedIvoryTower class use the default constructor method ,you don't specify it ,should it right ?
I think must add a private constructor as the IvoryTower class.
is it right?
Can you tell me the UML diagram is used what software to draw?
hey,I see a file ends with ucls in some package,I open it and find it is an xml format file
and my question is what kind of soft you draw it
Thanks!
Add the "real" project(or link to good project) where the most of patterns will be represented.And fully documented.To see how they used in real life.For example text editor.Or something else.
Hello, may I ask you what software tool to draw a class diagram?
I want to get it.
Can you send it to my email ? Or tell me what its name . Thank you very much!
My email : [email protected]
Hi @iluwatar ,
First of all, thank you for this comprehensive repo! I haven't seen the dao design pattern among the rest. So, I am just wondering whether it is actually part of the design solutions or not.
It is recommended to implement null object as a singleton.
In the example, NullNode (https://github.com/iluwatar/java-design-patterns/blob/master/null-object/src/main/java/com/iluwatar/NullNode.java) is not a singleton.
We could use this: https://github.com/trautonen/coveralls-maven-plugin
Removed a redundant word and added an Acronym.
@llitfkitfk You made ALL the diagrams link to files from your FORK. The BASE readme is pointing to files from a FORK.
commit hash is 97431a62af9881fa046b69b690e72d4fb4777209
How about making startMemento an inner class of Start class?
Is it possible that we add web application and database patterns here as well? By web application patterns, I mean
and the database patterns I had the data access (DAO) pattern in mind.
First, I'd like to thank you for providing the examples, really great job! However, I'd like more practical explanations since currently they are rather theoretical and hard to understand, don't you think?
For example the Builder pattern, I've read the explanation and honestly do not know when to use in my daily work. Wouldn't it be better just to write that you use it if you have few required and many optional construction parameters?
Great job.
How about repository?
Reference: http://martinfowler.com/eaaCatalog/repository.html
Hi, I'm a new user to github and I would like to help to this project. I've been researching about a few patterns and the work you've done and I think it's so cool.
In my college I've developed an application which comunicates with a MySQL Database and I had to build a pattern to make that communication work. I'm talking about the Abstract Mapper.
I have an example here: https://github.com/jesusvazquez/java_examples/tree/master/AdvancedDatabaseSystems/src/modelo/DBMapper
I'm wondering if it would be a good idea to add this pattern to your project.
Best Regards.
There's a new (I think) pattern called the Virtual field pattern, introduced in Java 8. https://kerflyn.wordpress.com/2012/07/09/java-8-now-you-have-mixins/ Scroll half way through till you find "Another Approach".
I was reading the code and then I wondered why was used the NullPointerException in that case, won't be more readable throw a custom exception? I mean create something like BuilderException and then this can be treated in the caller method ...
*Line 97,98 from HeroBuilder.java for reference
Heya there,
first of all, i love this resource and use it quite often. the only thing slightly annoying is the layout. Would be really awesome to view this resource in bootstrap with categories or something like that.
If something like that is done "hardcoded" the project will probably loose on contributions, so a converter of sorts should be used.
One last point, i found this Site that looks pretty good, but i dont know if it would be suitable. I also have no idea if it even works, because here everything is one single markdown document, while those at the site are multiple.
http://phpmyadmin.readthedocs.org/en/QA_4_4/
(topic is not important)
Just an idea C:
~Markus
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.