C++ Systems are not Legacy Systems. They use new hardware, compilers, they evolve, connects with other systems and they can give a run for your money.
Tag: C++
Singleton Design Pattern in C++, not so simple!
Almost every C++ interview I go to, the candidate will claim that they know Singleton Pattern. I started calling it the interview pattern 😀. However most of the time people overlook its hidden complexities. That’s what we will discuss here.
C++: Design Pattern using templates, Policy-Based Class
Strategy pattern depends on inheritance and will rely on virtual functions. Accessing them comes with additional cost. Policy-Based Class Design pattern make use of templates to achieve what Strategy pattern does.
Modern C++: Your ptr, My ptr, Our ptr
Memory management is the most important part of C++. Since the inception of unique_ptr, shared_ptr, weak_ptr and deprication of auto_ptr it became important that we understand how to use them.
Modern C++: Function Templates
C++ requires us to declare variables, functions, and most other kinds of entities using specific types. However, a lot of … More