
Unit testing is one of the software testing types which includes the initial testing phase where the smallest components or the modules of a software are tested individually. With this method of testing, both testers and developers can isolate each module, identify and fix the system defects at a very early stage of the software development lifecycle (SDLC). Primarily, a unit test verifies different behavioral aspects of the system under test and can be broadly classified into state-based and interaction-based unit testing.
Better Design
When developers write unit tests, their emphasis is on thinking about how their code will be…

If you’ve ever worked with a database, you’ve likely worked with CRUD operations. CRUD operations are often used with SQL.
CRUD stands for create, read, update, and delete. These are the four basic functions of persistent storage.
Entities can read, created, updated, delete, and can be modified by taking the data from a service and changing the setting properties before sending the data back to the service for an update.
Most applications have some form of CRUD functionality. In fact, every programmer has had to deal with CRUD at some point. …
To explain what is a No SQL database I will use MongoDB as an example.

MongoDB is an object-oriented, simple, dynamic, and scalable NoSQL database. It is based on the NoSQL document store model.
What is a No SQL database?
Databases in no SQL we don't have tables instead we have collections inside the collections we have documents, not only they look like JSON format, the interesting thing here is that they do not have to use the same schema and you can have different documents in a collection.

While I was trying to upload my personal portfolio on LinkedIn, I faced a problem, my images, description, and title of my website did not show up. I had to configure them to be displayed, using Open Graph Protocol.
The Open Graph protocol enables any web page to become a rich object in a social graph.
The Open Graph protocol builds on these existing technologies and gives developers one thing to implement. Developer simplicity is a key goal of the Open Graph protocol which has informed many of the technical design decisions.
This is an example of how the format…
Definition: Recursion is a process that calls itself. A function inside of a function.
You can think that you just run in an infinity loop, but recursion works similarly loops containing a condition that stops the function of calling itself.
Let’s see an example to clarify recursion better.

In this example, we have a countdown function that when we pass in a number, it’s going to run the loop and print “ i “ while the loop is running ex. 5…4…3…2…1…” All done !”.
We can achieve the same result taking a recursive approach:
Part 1

I first learned about CORS the way I learn about a lot of things in web development: by copy/pasting an error message into Google.
While the exact details of what I was trying to accomplish are a bit fuzzy, I do remember being stopped in my tracks by the error message appearing in my browser console:
“No ‘Access-Control-Allow-Origin’ header is present on the requesting resource.”
I’d stumbled across the same-origin policy, which controls the way you can make requests from one location to another in JavaScript. CORS is a way to whitelist requests to your web server from…

The last week I red an article related to what are common questions in
software engineer interviews and I found the article pretty useful to anyone looking for a job and getting ready for the next interview. The next 5 question are the summary of it.
This question allows you to see how many programming languages the candidate knows and whether they are familiar with a language you commonly use at your company.
Since coding is a big part of being a software engineer, if a candidate isn’t spending much of their time coding and they aren’t in a management…

Now that we learned about Big O Notation, let’s spend some time learning how it works working with objects, arrays and built-in methods.How do they perform? What are the fastest things we can do in an array? Which method is slower?
In this section, we are going to focus on 3 concepts of Big O Notation:
-Time complexity: It means how long…

First and foremost,I love to Code! and is my passion! Software Engineer|Traveler|Learner