When developing an application some will think about security and some may not. Security is very crucial during the development phase. Before dive deep into the article let’s look at some basics like what’s API security and why is it so important? API Security is the protection of the integrity of APIs that we use and own. These days most businesses use API to connect services and to transfer data. If that API is broken, exposed, or hacked it will lead to a data breach. So based on the information transferred, we need to consider the level of API Security that we going to implement in the application. …
In this article, we are going to look at how to implement the react-formik library to a simple form with validation. Formik is a small library that helps you deal with forms in react.
Why do we need to use Formik?
· Managing form data
· Form submission
· Form validation and displaying error messages
· Formik helps you deal with forms in a scalable, performant, and easy way
Let’s design our simple form first!!
I know how difficult is to build and deploy your applications manually. Deployment is really a developer’s nightmare. In this tutorial, I’ll show you how to deploy the NodeJS application with a single command. All of the processes will be handled by AWS CodePipeline and AWS Elastic Beanstalk. Before diving deep into the application you need to have the following:
· AWS Account
· NPM installed
· GitHub account
First, let’s create a simple NodeJS application that’ll return simple JSON data. Open your VS Code terminal and type the following command:
$ npm init
These days the term serverless is very popular. Most of you might think serverless means there aren’t any servers but the concept here is you don’t have to manage servers yourself instead cloud platforms like AWS gives you the service like Lambda to host your API there. Thank god we have these services because we don’t need to worry about managing our servers. This will be very cost effective too.
This is good for lightly used applications. You are only charged for what you have consumed rather than reserved capacity. For example, if your application uses 1000 API requests per month. So you’ll be charged only for the computing time that takes to make these 1000 requests. Imagine if you use the EC2 instance here. You need to pay for the instance that was used for the month. This serverless service has auto scaling facilities too. If your application gets more requests, everything will be automatically handled by the service provider. …
Do you think is it possible to create a city where humans can understand each other? As everyone knows that we are very complicated creatures. We have different boundaries that could separate us from each other. I always have a dream that I could live in a society where everyone could understand each other’s pain and where people would never look down on each other. I know my dream is silly but imagine that if we could create it. It would be peaceful a city without a war, jealousy, and greed.
“In order to measure a person’s worth, you must do more than push them. The real way to test their worth is to give them power. When they gain the freedom to act outside the boundaries of law and ethics you can sometimes see their souls.” …
To many of us, the term machine learning is a fancy one. Yeah, we have seen the application of it in several fields and be amazed by it. I’m writing this article to give you an introduction to the machine learning to start your journey from zero to hero. It would be like a kick-starter for your journey on machine learning. In addition to machine learning, I want to introduce the other two terms which would be very important in this journey. Those are Artificial Intelligence and Deep Learning. …
Entity Framework (EF) Core is a lightweight, extensible, open-source, and cross-platform version of the popular Entity Framework data access technology. EF Core can serve as an object-relational mapper (ORM), enabling .NET developers to work with a database using .NET objects, and eliminating the need for most of the data-access code they usually need to write. EF Core supports many database engines. In this article, I will teach you how to connect with SQL Server from ASP.NET MVC using Entity Framework Core.
Before we dive deep into the lesson I want to teach you some basics. It’s better to have some basic understanding of these things to understand the bigger picture that we are going to learn. …
Before we dive deep into the article I want to explain about the frameworks.
What’s a framework?
The word framework is very trending these days and you may know some frameworks like Angular, Laravel, Django, ASP.NET, etc. Some people don’t grasp the basic understanding of it and dive deep. I think it’s best to have some basic knowledge about it. I will explain this with a simple example. During the Vesak season people build Vesak lanterns. If you are planning to build it from scratch it will take lots of time and effort. Instead of building whole on your own you can simply buy the frame in the shop and make it colorful as you wish. Similar to this framework does the same functionality as that frame. In the early days when people using C they have to write everything even to connect with a database or to do memory management etc. framework helps us to simplify these complex programming and reduce the time to program an application. They let us focus mainly on what we want to implement rather than how we are going to implement it. In this article we will mainly be focused on the .NET …
These days most of us know how to code in a programming language but many of us don’t know how to write production-level codes efficiently. This will be a series of articles that will focus on different software engineering practices. I will go through some of the important practices being followed in the software engineering industry. Let’s explore them one by one.
Writing clean and modular code
When you are writing a code you have to post that code to the production server. For example the code which was running on Google, amazon was production level code. The code that is used in production should pass the number of criteria such as reliability and efficiency before it becomes public. So, how can we achieve this reliability and efficiency? To make the code more reliable and efficient we should always write our code clean. The code is clean when it’s readable, simple, and clean. …