Image for post
Image for post

Nowadays, front-end frameworks are like much-needed cheese in a pizza. Without them, it is very difficult for the pizza to reach your silver tongue. And Vue and React are like two types of Mozzarella cheese in web app development. In this article, however, we won’t discuss their taste, rather how they work and differ fundamentally.

Library vs Framework

The first difference to be understood is that React is a library and Vue is a framework. So what does that mean exactly? When you use a library, you are in charge of the flow of the application. You can call a method from the library wherever you want on the life-cycle. But when you are using a framework, the framework is in charge of the flow. It provides some places where you plug in your code, but you don’t get to decide when and where they will be invoked. The difference is subtle and lies in the term ‘inversion of control’. …


Image for post
Image for post

When coding a javascript function with a lot of matrix and string manipulations, ever wished if you could just ‘import’ python to use its libraries? I’ve been there too. Especially when I was writing a desktop application and I couldn’t use my favorite language python. It got me wondering, would it be possible to do the interface designing with html/css/js and write the business logic in python? How will you hook up the python routines in js? In this article, I tried to find an answer using Zerorpc.

The full code for this project is open-sourced and maintained in https://github.com/aswasif007/pyjs

Let’s give a brief intro to Zerorpc first. Its an RPC (Remote Procedure Call) library that enables you to call a function not necessarily from even the same computer. It creates a bridge between the caller and the callee using TCP protocol. You can call a function that is physically in another part of the world if the host computer has a public IP address. (Eh 😧? Why not do that instead of REST API? …


Image for post
Image for post

So, couple years back, me and my mates at work were tasked to migrate an existing Solr based search-architecture to ElasticSearch, a different storage system, with one little condition: ZERO DOWNTIME! Looking back at the challenges we faced, I thought this is a story that deserves to be sketched.

Before we jump into the fun part, let's do a bit introduction to Solr and ElasticSearch. Please feel free to skip this section if you are already familiar. Solr and ES are both data storage engines optimized for fast-searching. Basically, when you need to find a needle from a haystack in milliseconds, you keep one of these in your right pocket (assuming, you are right-handed). Both of them are open-source search engines build on top of Apache Lucene. Both engines offer distributed full-text search, faceting, near real-time indexing, and NoSQL features. …

About

Ahmed Sayeed Wasif

Software Engineer | NewsCred Inc. | aswasif007.github.io

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store