[{"data":1,"prerenderedAt":77},["ShallowReactive",2],{"term-d\u002Fdesign-pattern":3,"related-d\u002Fdesign-pattern":60},{"id":4,"title":5,"acronym":6,"body":7,"category":40,"description":41,"difficulty":42,"extension":43,"letter":44,"meta":45,"navigation":46,"path":47,"related":48,"seo":54,"sitemap":55,"stem":58,"subcategory":6,"__hash__":59},"terms\u002Fterms\u002Fd\u002Fdesign-pattern.md","Design Pattern",null,{"type":8,"value":9,"toc":33},"minimark",[10,15,19,23,26,30],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"Design patterns are like recipe cards for solving common coding problems. Someone already figured out the best way to do it, wrote it down, and gave it a fancy name. Instead of reinventing the wheel, you just say 'use the Factory pattern' and everyone knows what you mean.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"Design patterns are reusable solutions to commonly occurring problems in software design. Popularized by the Gang of Four book (1994), they are categorized as Creational (object creation), Structural (object composition), and Behavioral (object communication) patterns.",[11,27,29],{"id":28},"when-youll-hear-this","When You'll Hear This",[16,31,32],{},"\"We should use a design pattern here to keep this clean.\" \u002F \"The Observer pattern is perfect for this event system.\"",{"title":34,"searchDepth":35,"depth":35,"links":36},"",2,[37,38,39],{"id":13,"depth":35,"text":14},{"id":21,"depth":35,"text":22},{"id":28,"depth":35,"text":29},"architecture","Design patterns are like recipe cards for solving common coding problems.","intermediate","md","d",{},true,"\u002Fterms\u002Fd\u002Fdesign-pattern",[49,50,51,52,53],"Singleton","Factory Pattern","Observer Pattern","Strategy Pattern","Architecture",{"title":5,"description":41},{"changefreq":56,"priority":57},"weekly",0.7,"terms\u002Fd\u002Fdesign-pattern","XVp-LX1CAuRJGUD_XldfO-xsUZJFsV1iICoC7LJKo_c",[61,64,67,70,74],{"title":53,"path":62,"acronym":6,"category":40,"difficulty":42,"description":63},"\u002Fterms\u002Fa\u002Farchitecture","Architecture is the master blueprint for your app — like deciding whether to build a house, apartment block, or skyscraper before laying a single brick.",{"title":50,"path":65,"acronym":6,"category":40,"difficulty":42,"description":66},"\u002Fterms\u002Ff\u002Ffactory-pattern","You want to create a 'notification' object but it might be an EmailNotification, SMSNotification, or PushNotification depending on user preferences.",{"title":51,"path":68,"acronym":6,"category":40,"difficulty":42,"description":69},"\u002Fterms\u002Fo\u002Fobserver-pattern","Think of a newsletter. You (the publisher\u002Fsubject) publish content. Your subscribers (observers) automatically get notified when new content arrives.",{"title":49,"path":71,"acronym":6,"category":40,"difficulty":72,"description":73},"\u002Fterms\u002Fs\u002Fsingleton","beginner","Singleton is a pattern that ensures only ONE instance of a class exists in your entire app.",{"title":52,"path":75,"acronym":6,"category":40,"difficulty":42,"description":76},"\u002Fterms\u002Fs\u002Fstrategy-pattern","You're writing a sorter and want to sort by price, name, or date depending on user choice.",1776518273918]