- SalesforceChaCha
- Posts
- π A Quick Intro to Design Patterns πΊ
π A Quick Intro to Design Patterns πΊ
Patterns = Efficiency πͺ
Good morning, Salesforce Nerds! We all know that designing software solutions π° solving problems.
We also know weβre not the first βοΈ to come across most of these problems.
In fact, from a software engineering perspective π€, these problems rear their ugly head regardless of what platform your devβing on or what the underlying business requirement is. πΊ
Itβs our job as devβs to recognize this and know when to leverage pre-packaged π¦οΈ solutions.
This is what weβll start to cover in todayβs article.

Agenda for today includes
Intro to Design Patterns π§©
Daily Principle
All the Memes
Intro to Design Patterns π§©
Today we will discuss-
π What are they?πΊ
π BenefitsπΊ
π The different typesπΊ
What are they? π€
The common definition will be something like this:
Reusable solutions to common software engineering problems found in real-world application development.
They are NOT β code, but rather, really just templates for how to solve these common problems within your solution design.
Weβre talking solutions for things like:
How to create instances in your application βοΈ
How to relate these instances π¨βπ¨βπ¦βπ¦
How to modify their behavior (even dynamically at run time!) π€―
It all started in β94 when the Gang of Four (GoF) dropped their book titled Design Patterns - Elements of Reusable Object-Oriented Software
This really kicked off the concept of Design Patterns in the development world.
Benefits ποΈ
This is easy π°π₯±
While I believe there are many benefits, Iβd say the three primary ones are:
π Common language
Design patterns provide a standard terminology. AKA, developer jargon. This helps devs understand an implementation without having to see the code. π
ποΈ Best Practices
Design patterns follow well-understood paths. In this way, they encourage more legible, maintainable code that can be reused. π
ποΈ Speed
Design patterns speed up development by providing tested & proven development paradigms. π―
The different types π§©
Where the rubber meets the road! π£οΈ
The GoF listed 23 patterns and classified them into three different categories. ποΈ
In the coming weeks, weβll pluck a few from each category and take a good look under the hood. π
For now, letβs get a high-level πͺ view of these are:
πͺ Creational
These design patterns provide a way to create objects while hiding π₯· the creation logic.
ποΈ Structural
These design patterns concern class and object composition. π§©
π Behavioral
These design patterns are specifically concerned with communication between objects. π’
Daily Principle
"Receive without pride, let go without attachment."
and now....Your Daily Memes



What did you think about today's newsletter? |