Javascript frameworks boon or bane!
Nowadays people are so busy in learning new framework react/ angular /vuejs, they have stopped leaning the basics of javascript. Every one agrees that these frameworks make your web app development fast and easy but there are some tradeoffs to these frameworks like they are very heavy in size even a small app will be 1MB. WHY ? Because they have a heavy code base and dependencies. I have seen people so good at framework they can make YouTube, Pinterest clones so easily. But if you ask them to make a to-do list in vanilla javascript with some basic features like task checked ? ,strike through etc you will see they can even start to think how to manipulate the DOM/HTML.
Last sunday I took an interview for a startup of my friend, the candidate was from a good tier-2 college in Delhi NCR, he had a grate Github repo but all project were made using frameworks Angular and React. I was impressed a lot with the profile.
I asked him to make a todo list with 3 features just using vanilla JS:
- Add a checkbox in front of each task and when clicked add a strike through line on that task.
- Sort task based on the created timestamp.
- Color code each task as per the priority. When adding task assign a priority.
He was able to implement add to list feature using a for loop and onClick function but he was not able to start any of the task in the above list. So I rejected that candidate because when things go south there are less issues in the framework than the basic of javascript concepts like callbacks, event loop, dom manipulation, closures etc.
These framework are good to know for a grate career but if we want to make a feature where size constraints are 50kb or less then these frameworks are like fitting an elephant in a refrigerator.