MERN Stack

What is MERN Stack? Well, if you have been following this blog and going through the older posts, you’d know what it is already. It was all building up to get here. Finally, finished a full stack app with good logic.. Please do check the below github link attached at the bottom of the blog if you’re interested.

MERN is a combination of Javascript frameworks and a No SQL database.Which are, MongoDB as the database, ExpressJS and NodeJS as the backend and ReactJS as the frontend. Because of this you could easily create dynamic websites and web apps with very less refreshing times. As a person who got here after being doing websites with HTML/CSS/PHP its a great transition. It felt complicated at first. It looked as if even the tiniest logic requires a lot more work, but it’s not. If you had check previous posts you’d know when using NodeJS you could easily install different modules to make like recurring codes or complicated logic easier and also safer.

For my project i used the Bootstrap library for additional styling, but the things you could do with react is immense. For an example validating forms without submitting and actually fetching and check data from the Database without any page refreshes are added bonuses.

I’m still in the progress of learning more, hoping to fully understand MERN create more complicated apps to simplify problems.

Until then you can check my github repository below and leave your comments.

Train Reservation App, with dummy/test payment gateways

JavaScript vs Java

Battle of the Languages

JavaScript vs Java has been a debate for very long, while JavaScript is actually catching up with Java, letting several development complications really simple. I have been learning JavaScript and Java simultaneously, and I have to say that they have their pros and cons, but sometimes they do work great together.

First of all, before we head into their difference, let’s figure out what is JavaScript? and what is Java? JavaScript is a scripting language and Java is an Object Oriented Programming language. Both have a lot of similarities, we can actually use OOP concepts in JavaScript if used properly. However, JavaScript is much simpler and contains simple commands compared to Java.

The main benefit of using JavaScript is, it’s a client side programming language and to create a simple JavaScript applet all you need is a notepad to develop and a browser for it to work. But Java requires JDK+JRE (Java Development Kit + Java Runtime Environment) set up in your computer in order to compile, although once developed it can work as a stand alone application.

Now with Node.js, express.js and typescript being introduced there is more that you could do with JavaScript than what you were able to do previously.

Although there are differences, pros and cons it is always interesting to know more ways to develop things.