Skip to main content

Posts

Showing posts from January, 2020

Google Code-In 2020 Wrap Up

"You do not need to be a programmer, you don’t have to know how to code at all!" is where it all started.    Google Code-in  ( GCI ) As its name suggests, is an annual programming competition hosted by Google that allows students to complete tasks specified by various open-source organizations. the organization which I chose was - OpenMRS.  What is OpenMRS?  OpenMRS is both a software and a community. It serves as a medical record system (EMR) which is designed for developing countries. OpenMRS follows a principle that information should be stored in a way that makes it easy to summarize and analyze. If you are interested in learning more about the OpenMRS community, you may go  here  and know more about it. If one would ask me to define OpenMRS in one line, it would be "we write code for humans first and then computers." as their main motto is to save lives.  My interactions in OpenMRS My interaction with OpenMRS has been like a beautiful jou

Spring Boot or Plain Spring?

In Simple Terminology, Spring Boot = Spring Framework + Embedded HTTP Servers – XML / annotations. Here we don’t need to write any XML Configuration. (the reason it has been subtracted in the above explanation.) So firstly, I am going to talk about some benefits of using spring boot over Plain Spring. 1. It is easier to develop Spring Based applications with Java or Groovy. 2. It reduces lots of development time and increases productivity. 3. It avoids writing lots of boilerplate Code. 4. It is easier to integrate Spring Boot Application with its Spring Ecosystem. 5. It provides Embedded HTTP servers. 6. It provides a lot of options to work with embedded and in-memory Databases. The costs that would be uncured to switch to spring boot in OpenMRS, are – ·         Since we do not have to write the XML configuration in Spring Boot, there would be no value of the XML and a few annotations written using Spring. ·         The spring boot will reduce the length of th

BASIC CONCEPTS OF SPRING MVC IN OPENMRS

To start with, let us first know the basics and understand what is    spring model view   controller   Spring MVC   It is a Java framework which is used to build web applications. It follows the Model-View-Controller design pattern. The model here, contains the data of the application. The view represents the provided information in a particular format. The controller you can see here, contains the business logic of an application. Here, the @Controller annotation is used to mark the class as the controller. Also In Spring Web MVC, the DispatcherServlet class works as the front controller. It is responsible to manage the flow of the Spring MVC application. What is the flow of Spring Web  MVC ? Your question is answered below, As you can see, all the incoming requests are coming through the DispatcherServlet that acts as the front controller. The controller returns an object of ModelAndView. The DispatcherServlet checks the entry of view in the