Java Best Practices 01 | Static Factory Methods Over Constructors

Static Factory Methods Consider using Static Factory Methods Instead of Constructors The static factory method is a method that returns an instance of the class. Example In this example, we will build some HTML elements using Java. Here is the base class. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 class HtmlElement { private final String tag; private final String content; public HtmlElement(String tag, String content) { this....

May 27, 2021 · Noor · Java Java

Scalability 03 | Scale Vertically (Vertical Scaling)

Once your application (website) reaches the limits of your server, you should decide how to scale. In this post, we will focus on Vertical Scaling only....

April 3, 2021 · Noor · System Design System Design

Scalability 02 | Start Small (Single-Server Configuration)

In this post, we will take a step back, and discuss how could we start small and simple with our website before considering any scalability options, and we will discuss when should we start considering them...

April 2, 2021 · Noor · System Design System Design

Scalability 01 | What Is Scalability (Scalability in a Nutshell)?

Scalability usually means the ability to handle more users, clients, data transactions, or requests without affecting the user experience....

March 28, 2021 · Noor · System Design System Design

[Python 005] Output (print), Input, Mathematical Operations & Operators Precedence | جمل الإدخال والإخراج والعمليات الحسابية وأولويات العمليّات

March 21, 2021 · Noor · Python Python

[Python 004] Using Jupyter Notebook with Python | استخدام جوبيتار نوتبك مع لغة البرمجة بايثون

March 19, 2021 · Noor · Python Python

[Python 003] Install Python, PyCharm, Anaconda, Jupyter and More | تثبيت بايثون وأدواتها

March 19, 2021 · Noor · Python Python