Follow

trying to learn to put random thoughts on here, as I do on twitter.

e.g. the tweet stream by two people on the question of are the original Design Patterns still useful 30 yrs later - one said Yes, one said No.

the arg for No was all of them are superceded by simple functional programming lines these days.

the arg for Yes is.... ?

(I'm for Yes, but won't share my reasons quite yet).

[attempt 1 to start a convo here instead of on Tw]

@totheralistair not everyone does “simple functional programming” because not everyone knows how to do it and not everyone works with new codebases 😉

@totheralistair In the real world you typically don’t get to choose the most modern programming styles as you will be making changes to legacy code. For doing modernization and refactoring of legacy code I would say that there is a place for Design Patterns. However, personally, I would start with SOLID, and then dive into design patterns for inspiration if needed.

@totheralistair I am with the Yes faction. Reason: I read this: kotaku.com/the-exceptional-bea
And after thinking about it... I am no developer, I see them as artisans. Like a carpenter you have lot´s of ways to build a table or chair. But not every design lasts for centuries to come.

@Baltram this was a good read - thank you!

ps i couldn't read the code, it wouldn't display for some reason :(( but I did enjoy the writing and the thinking

@totheralistair @tumbarumba I agree that many (not all) GoF design patterns can be expressed as a function.

I still find the nomenclature and intent really useful, even if the implementation differs.

(Also, “these days”? Isn’t LISP like 60 years old?)

@SamirTalwar @tumbarumba
I think as you and Kyle both said, it is about creating names for idioms, and knowing the idioms and having the names are both useful, not related to how many years ago they were named

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.