Useful tips for everyday
What is the difference between class and abstract class? Abstract class can have static fields and static method, like other classes. An abstract class cannot…
Why do we raise exception? By raising a proper exception, it will allow other parts of your code to handle the exception properly, such that…
How do we achieve code reusability in Python? And when it comes to reusing code in Python, it all starts and ends with the humble…
How do you name a software product? 10 Tips for Product Naming Success Be Descriptive. Use Real Words with a Twist. Add a Prefix or…
Which of the following is the correct way to define a constant inside of a class definition in PHP? PHP – Class Constants A class…
What is the main benefit of loosely coupled architectures for scalability? Loosely coupled architectures can also allow for more independent scaling. For example, in a…
Is it safe to use URL parameters? URLS and query parameters aren’t secure. They should never contain sensitive or important information (passwords, static shared secrets,…
Why shouldnt you test private methods? The short answer is that you shouldn’t test private methods directly, but only their effects on the public methods…
How do you implement the single responsibility principle in C class design? If there are multiple reasons for a class to change, it breaks SRP.…
What is aggregate in Domain Driven Design? Aggregate is a pattern in Domain-Driven Design. A DDD aggregate is a cluster of domain objects that can…