#Did design pattern evolve?

1 messages · Page 1 of 1 (latest)

worn cedar
#

[Not necessary to read]
Few weeks/months on the discord, a user told me to research about the "decorator pattern". At that time i was acquiring the IOClass.
So i looked it up today, made clearance and read that there is the "factory pattern" which counters the negative side of the decorator pattern. Further researches lead to "Gang of Four" a book with 23 design patterns from 1994.

So my question is, is GoF still a thing? I mean i know some examples from the jdk (but as we know java is object driven and old), but is it still considered the standard and common knowledge or are there newer/better patterns or concepts?

To me it doesnt seem to hurt to know them (or rather beneficial). So i will definitely learn about them. I was just currious

half flintBOT
#

<@&987246841693360200> please have a look, thanks.

clever dove
#

What kind of answer do you want?
Design pattern emerge when people see a pattern and name it.

deft lark
#

yes, that's a bible when it comes to patterns

#

it's still unbelievably relevant

#

now post java 8, a lot of these patteens can be come more functional

#

elegant, simpler, less abstracty verbose

#

but it's hard to convey importance of these concepts

#

there is much more to design then these patterns

#

it's just one thing you can known and apply when applicable

#

there are likely better resources to learn

#

but GoF compiled them, ddefined and named them.. so that's what you reference

#

we all seen builders, factories, strategies..

#

people will be opinionated in one direction on other

#

trying to find some balanced view of gof patterns

#

still used, still relevant, still referenced

#

but not a big deal overall

deft torrent
#

This exactly. The patterns themselves are just as relevant. We just express them differently in the language due to new features or evolved conventions.

deft lark
#

they are modernized with some functional stuff, passing behavior as parameter makes strategies as simple as lambda.. etc

#

yep, pretty much

#

it's also important to keep in mind it's just one tool in design toolbox

#

some beginners think patterns or solid principles are all there is to it, and they tend to force them when they are not needed

#

but they are worth learning, for sure, among many other things

#

or at least being familiar with them, so you can reference them in need

wraith escarp
#

The modern versions

#

Because those were definitely made before functional types were a thing

worn cedar
#

thank you for your inputs

#

.close

half flintBOT
# worn cedar .close

Looks like you attempted to use a command? Please note that we only use slash-commands on this server 🙂

Try starting your message with a forward-slash / and Discord should open a popup showing you all available commands.
A command might then look like /foo 👍