Win a copy of Kotlin for Android App Development this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

What is the suggested online resource to learn design patterns?  RSS feed

 
Ranch Hand
Posts: 44
1
Java Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to learn design patterns but I can't find understandable and right(Actually I don't know which is right) explanation.Can you suggest me such website for learning design patterns.Actually I have read many explanation in different websites but each explanation is different and therefore I don't know which one is right. For example, for Factory design pattern: In one resource factory method is not static but in another one the method is static.That is really confusing me.As a book I think "Head First Design Patterns" is great but I need online resource.Can you suggest me such websites,please?
 
Asif Haciyev
Ranch Hand
Posts: 44
1
Java Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If sharing online web resources is illegal here,I am sorry to ask it.
 
Bartender
Posts: 10750
68
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Asif Haciyev wrote:If sharing online web resources is illegal here,I am sorry to ask it.


I don't think you've asked anything illegal, it's just that "design" is a very wide subject and we don't know what level you're at.

Personally, the best "design" book I've ever read - in fact, the best book I've ever read about ANY computer language - is Effective Java, but I suspect that what you may be looking for is a book about Design Patterns, and that's a different thing altogether.

The nice thing about EJ is that it doesn't blind you with science (or "computing"). All the examples (I think) are from java.base, so it's actually more about "best practices" than specifically about "design". And you probably need at least three months on a full-time Java course before it'll start to make sense.

For the vast majority of programmers, good design comes with experience, and there's no magic bullet - even with the best book on the planet.
You need to get things wrong and (most importantly) understand WHY they were wrong.

HIH

Winston
 
Bartender
Posts: 20353
111
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There isn't an official set of design patterns. Different sources have different patterns, although the seminal work on design patterns is the so-called GoF book. Head First is certainly popular, though.

Sun/Oracle made some stuff on their website regarding Enterprise Java Design Patterns, which address best practice with J2EE.

Design patterns aren't forever, though. The J2EE design patterns included a DTO (Data Transfer Object). This was a way of presenting Enterprise Java Beans to and from an application by copying their contents. Since the EJB3 standard and Java Persisence Architecture, they're no longer needed, since you can attach and detach POJO database entities directly instead of having to copy their contents.

As far as online goes, Google remains my friend.
 
Asif Haciyev
Ranch Hand
Posts: 44
1
Java Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Winston Gutkowski wrote:
I don't think you've asked anything illegal, it's just that "design" is a very wide subject and we don't know what level you're at.
Winston



In design patterns I am beginner.

Winston Gutkowski wrote:
Personally, the best "design" book I've ever read - in fact, the best book I've ever read about ANY computer language - is Effective Java, but I suspect that what you may be looking for is a book about Design Patterns, and that's a different thing altogether.

The nice thing about EJ is that it doesn't blind you with science (or "computing"). All the examples (I think) are from java.base, so it's actually more about "best practices" than specifically about "design". And you probably need at least three months on a full-time Java course before it'll start to make sense.

Winston



Actually I wanted to start to read this book but when I read just first chapter I thought that I have to learn and understand Design Patterns firstly before reading this book.
 
Asif Haciyev
Ranch Hand
Posts: 44
1
Java Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For example here the method is not static.

But here the method is static

So I don't know which one is right.Therefore I want to get your suggested online resource to learn
 
Tim Holloway
Bartender
Posts: 20353
111
Android Eclipse IDE Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that that question falls outside of the domain of Design Patterns.

One reason that you've never seen an overpriced software product that allowed untrained monkeys to just select design patterns and produce programs is that Design Patterns are just that - patterns. Not templates. Not code. So whether a factory is a static class or an instance with a static method or an instance with an instance factory method, they're still all factories. It's how they behave, not how they're implemented.
 
Winston Gutkowski
Bartender
Posts: 10750
68
Eclipse IDE Hibernate Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Asif Haciyev wrote:Actually I wanted to start to read this book but when I read just first chapter I thought that I have to learn and understand Design Patterns firstly before reading this book.

Absolutely not. And that's what's so good about it.
You may well see references to the "GoF" book Tim referred to, but that's just "FYI" stuff.
If you've put in your three or six months on a full-time Java course, you should be able to read it from cover to cover without too much trouble.
And if you can't, or you don't understand everything you read, don't sweat it. I didn't either. And maybe you'll get something wrong, and you'll remember the name of a chapter, re-read it, and get it right next time.

Programming is COMPLEX, and nobody expects you to understand, or get it right, first time. And if your bosses expect you to, they're morons.

All you can hope for is to become less of a (programming) idiot as time goes by. :-)
 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!