My parents, OTT and the adapter design pattern
The adapter design pattern takes an interface and makes it compatible with another interface. — Say, we have got our source code (an interface and its subclasses). Our source code interface makes a request to the third-party library interface. Both the interfaces talk to each other and work in sync perfectly. But a new vendor walked in and wrote a new third-party library (interface). The…
Oversimplified: Computing Terminologies
File system: It is a module of the operating system whose job is to help users store and fetch data. The file system keeps track of free space and data in non-volatile memory with the help of indexes. These indexes come in handy when data is to be stored or…
The World Test Championship And The Observer Design Pattern
The observer design pattern is used when 1-M (one to many) relationship exists between objects. Many objects are dependent on one particular object. Such that, when ‘one object’ is modified, the dependent objects are notified automatically. — Well, the definition of the Observer design pattern is quite bookish. Let’s try to understand this with a real-life example. Recently, England hosted the World Test Championship and it was broadcasted by ‘HotStar’ and ‘CriccBuzz’ in India. These two media were concerned about the score and displayed the score ball…
Why Indian men deserve to be single
I am a 22-year-old male from India. Most often I and my friends engage in a discussion/debate that why it is difficult for Indian men to find a girlfriend, compared to the western countries, in general. — Dating comes later, the first step is to approach a woman. And while doing so, Indian men are failing to consider the perception of the Indian women towards Indian men. Think about women safety in India, why would an Indian woman even trust an Indian male approaching her?
Sending an email using Java
One month into a start-up as trainees, and we were asked to write a program to send an email, in the Spring project. After trying a lot of different ways, we finally got a solution. Come, let’s have a look. — Okay before moving to the actual coding part and importing java classes, responsible to send email. We need to add those classes (JAR / API), to the class-path of our project. By default, Java does not ship with those classes.
5 Must know uses of the ‘sys’ module in Python.
One can say, ‘sys’ is the interpreter’s module in Python because it provides access to some variables used or maintained by the interpreter and to functions that interact strongly with the interpreter. — 1. Command Line Arguments Command line arguments, passed to a Python program, are stored in a list called argv by the sys module. By default length of argv is 1 and it consists of the name of the program.