- 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? |