Create blob and file from data uri

samundrak

samundrak

JavaScript Dev

Creating a file in client side (browser) is something we may have to do frequently. Every time I have to work with it I try to google and always end up with the long solution. After digging and doing some research I found this clean way to create file and blob from data uri.

Adapter Design Pattern

samundrak

samundrak

JavaScript Dev

The adapter pattern helps us to connect or communicate with two or more than two interfaces that are not compatible with each other. In a simple word if we have to consume data from a source which our current implementation doesn't support then we can use this pattern to communicate with incompatible sources.

Proxy design pattern in short

samundrak

samundrak

JavaScript Dev

We can use the Proxy pattern whenever we want to control access to any third-party library or service which can be resource-heavy or expensive. For example, if we are integrating an SMS service in our application and sending every SMS can cost us a cent and there can be many chances where SMS content can be duplicated. In such a context we can create a proxy pattern that controls twillo access and help us to dedupe messages.

Policy and Details in Software Architect

samundrak

samundrak

JavaScript Dev

Software systems can be decomposed into two major elements which are Policy and Details. The policy element embodies all the business rules and procedures. It is where the true value of the system lives.

The details are those things that are necessary to enable humans, other systems, and programmers to communicate with the policy, but that do not impact the behavior of the policy at all. They include IO devices, databases, web systems, servers, frameworks, communication protocols, and so forth.

SQL and defination of DDL, DML, DCL and DIL

samundrak

samundrak

JavaScript Dev

The first version of SQL was developed by IBM called Sequel as part of the System R project. SQL stands for structured query language and is a combination of simple english words. SQL is used as a language to communicate with database. Same SQL code can run on multiple database albeit some database have slightly different syntax than others but still they have to maintain specification of SQL.

Entity and Entity Relationship model

samundrak

samundrak

JavaScript Dev

ER or Entity Reletionship model is used to create and model the data which is simple, non technical and easily understood by people describing a diagram with relation. It helps us to analyze requirements systematically to produce a well designed database.

Notification Service Architecture

samundrak

samundrak

JavaScript Dev

A system which notifies the user when some event occurs. Users will be notified about the activity or event generated from different parts of our application, for example, birthday notification, quote received, lead generated, etc. The system can notify users using a different medium like email, push notification, SMS(mobile), WhatsApp.