Skip to main content

Posts

Showing posts from April, 2018

Getting started with Spring Boot

In this blog post I am gonna give you all an introduction on Spring Boot, an application framework and inversion controller for the java platform. Before diving in to Spring Boot framework, let's get a brief idea about the Spring framework on top of which the Spring Boot was created. Spring is a very popular application framework for java web and enterprise and web applications which was initially written by Rod Johnson.Millions and millions of people around the world use this to make their codes high performing, easily testable and reusable.Spring framework is build on top of the Dependency Injection (DI) concept. What is Dependency Injection? When it comes to a complex java application, the classes should not be depending on one another, in order to reuse our code and to make the unit testing easy.For such situations, dependency injection is used to connect the classes together while making them independent.So what exactly happens here? Let's think of Dependency in

Overview of the JavaScript Closures

   Today I am gonna give you all an introduction to JavaScript closures, an important concept that every programmer should be familiar with. According to MDN,  " Closures are functions that refer to independent (free) variables. In other words, the function defined in the closure 'remembers' the environment in which it was created."   It uses lexical scoping, meaning that the function will be executed with the scope in which it was defined rather than the scope in which it was invoked.    To make the concept clear let’s take an example. Assume we need to keep track of the number of times a button is clicked on a certain web page. So the below piece of code will do it.    If you run the above code, it’s perfectly fine and gives the number of clicks on the button as we expected. But the problem with this approach is, here the variable ‘count’ is a global variable. So any script on the page can access and change the value of it. To avoid that we can

Medical Center Management System (Devoloped using Java and MySQL)

This system is designed and developed with the intention of  meeting the essential functionalities of a medical center. This system is developed using Java and MySQL by me and another four students as the second year second semester ITP project. The receptionist,pharmacist,doctors,lab assistant and admin can log in and access the system using their username and password. Basically, A pharmacist can, 1.Add a drug to the inventory 2.Update received order details 3.Update the inventory when issuing drugs and send an alert to the suppliers when a drug is reaching its marginal level. 4.Suggest alternatives when the prescribed drug is not available. 5.Generate pharmacy and inventory related reports A doctor can, 1.Prescribe drugs and medicine to a patient 2.View and update the medical history of the patient 3.Generate patient related reports  A receptionist can, 1.Register a patient 2.Deal with the payments and billing 3.Add/Reschedule/Cancel appointm