πŸ’ƒ 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πŸ•Ί

salesforce

Job Board | πŸ’ƒ Click Here πŸ•Ί

Socials | πŸ’ƒ Linkedin | Instagram | Twitter!πŸ•Ί

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."

Marcus Aurelius

and now....Your Daily Memes

What did you think about today's newsletter?

Login or Subscribe to participate in polls.