r/ProgrammerHumor • • 3d ago

Meme dynamicProgramming

Post image
5.7k Upvotes

152 comments sorted by

View all comments

Show parent comment

46

u/NomaTyx 3d ago

yeah like the facade design pattern is incredibly obvious and is partially already covered by "don't repeat yourself". Like, why would you want to write every step of a 12 step process multiple times when you could just write one function that does every step and then just call that? Sometimes these things beget explaining again, but it's certainly something

19

u/Advos_467 2d ago

i feel a little vindicated reading all these because i always felt some of these GoF design patterns were kinda obvious like façade and adapter lol

42

u/bpkiwi 2d ago

People often misunderstand the idea of design patterns. Instead of 'here is a pattern you can use', think of them as 'we found a pattern that lots of people already use (because it makes sense), and we gave it a name so everyone can talk about it easier'

7

u/Advos_467 2d ago

yeah that makes sense. I've really only been exposed to them mostly in an academic environment so it always felt like the former to me (I never actually read the book either)

3

u/BastetFurry 2d ago

All these design patterns are nice and all until you are on a cheap microcontroller with 8k of flash and, if lucky, 1k of RAM and you begin to think about using bare assembler instead of C. ;)