한국어 | English | 日本語
Senior Web Application Developer (8.8+ years)
Tech & Dev
engineering
Focusing on web frontend and backend development
Understanding Decorator Through Makeup and Adapter Through Disguise
The Decorator, Adapter, and Facade patterns, all structural design patterns, share the commonality of using 'composition' by holding another object internally within a class. However, they are clearly distinguished by their purpose: whether it's to add functionality, match interfaces, or simply bundle complex structures.
2. Factory 'Method' Pattern & 'Abstract' Factory Pattern
When developing software, you often encounter situations where you need to process 'different flows based on state.' For a single state, like a simple 'yes' or 'no,' an `if` statement is sufficient. For multiple states, `if-else` or `switch` statements can be used. However, if the logic corresponding to these 'different flows' becomes complex, an `if-else` block might easily exceed 100 lines of code. Does this truly promote reusability? Not only does such code become difficult to read, but it will undoubtedly contain repetitive logic within those many lines. A pattern is needed to cleanly separate 'varying logic' from 'common logic,' where the varying part either returns or creates different implementations based on the current state.
Understanding 'Hoisting' and 'Closures' through the JavaScript Engine Execution Process
Newcomers to JavaScript are often surprised by its ease of use. While C and Java required compilation every time, JavaScript allows immediate coding right in the browser's developer console. This highlights its lightweight nature and user-friendliness. But how exactly does code execute within a JavaScript engine (specifically V8)? Understanding this process helps us grasp the principles behind Hoisting and Closures, rather than just memorizing them, as they relate to variable and function interactions.
1. What is a 'Design Pattern'?
I remember learning about design patterns briefly in university. While they were always a topic for graduate school or job interviews, I had little practical experience, so I never truly felt their importance. Perhaps it's different in today's project-heavy, theory-light bootcamp era, but I only empirically understood *why* patterns are used after joining a company.
How to Create a Professional-Looking Email Address
An email address created in childhood, often amusing or quirky, can cause embarrassment not only for yourself but also for the recipient. The foundation of effective business communication and career management begins with possessing an email address that is both memorable and conveys professionalism.
토스트 예시 메세지