The Module System: A JavaScript Tale
JavaScript is an alive language. And a relatively new one, too. That is really relevant information when it comes to explaining some questions that we naturally stumble upon when diving deeper in our journey to master it.
For example, a single question that once stuck to my mind was: Why do we sometimes use “const … = require(…)” and in other occasions “from … import …”? As a developer whose first language was Python, those kind of particularities has always intrigued me a lot. I couldn’t seem to understand why there was more than one way of doing things, but most importantly, why did sometimes one way or another wouldn’t work right away.
Of course, first of all we are programmers. Problem solvers. For that very reason, it is common for us to focus a lot more in the technical aspects of our target programming language, many times not knowing its history. And that makes sense. After all, we got problems to solve and that’s what pays our bills in the end of the month. However, there are sometimes when a bit o historical context can give us a great advantage in understanding why does one feature works the way it does. Talking about JavaScript, the module system couldn’t be a better example of this.
If you are -like me- a developer, you’re probably very familiarized with the idea of modularization and why it is so important for us. Basically, when we have a more complex application we want to have it all organized in smaller files, so that we can easily reuse logic, components, functions, and also having a happier experience when the time comes to refactor some functionality. Until now, I’m not saying anything new to you, am I? I hope not. Anyway, here’s the catch: JavaScript was never intended to make use of this modularization.
THE BLOG
News, lessons, and content from our companies and projects.
41% of small businesses that employ people are operated by women.
We’ve been talking to several startups in the past two weeks! This is a curated list of the top 5 based on the analysis made by our models using the data we collected. This is as fresh as ...
Porto Seguro Challenge – 2nd Place Solution
We are pleased to announce that we got second place in the Porto Seguro Challenge, a competition organized by the largest insurance company in Brazil. Porto Seguro challenged us to build an ...
Predicting Reading Level of Texts – A Kaggle NLP Competition
Introduction: One of the main fields of AI is Natural Language Processing and its applications in the real world. Here on Amalgam.ai we are building different models to solve some of the problems ...
Porto Seguro Challenge
Introduction: In the modern world the competition for marketing space is fierce, nowadays every company that wants the slight advantage needs AI to select the best customers and increase the ROI ...
Sales Development Representative
At Exponential Ventures, we’re working to solve big problems with exponential technologies such as Artificial Intelligence, Quantum Computing, Digital Fabrication, Human-Machine ...
Exponential Hiring Process
The hiring process is a fundamental part of any company, it is the first contact of the professional with the culture and a great display of how things work internally. At Exponential Ventures it ...
Exponential Ventures annonce l’acquisition de PyJobs, FrontJobs et RecrutaDev
Fondé en 2017, PyJobs est devenu l’un des sites d’emploi les plus populaires du Brésil pour la communauté Python. Malgré sa croissance agressive au cours de la dernière année, ...
Exponential Ventures announces the acquisition of PyJobs, FrontJobs, and RecrutaDev
Founded in 2017, PyJobs has become one of Brazil’s most popular job boards for the Python community. Despite its aggressive growth in the past year, PyJobs retained its community-oriented ...
Sales Executive
At Exponential Ventures, we’re working to solve big problems with exponential technologies such as Artificial Intelligence, Quantum Computing, Digital Fabrication, Human-Machine ...
What is a Startup Studio?
Spoiler: it is NOT an Incubator or Accelerator I have probably interviewed a few hundred professionals in my career as an Entrepreneur. After breaking the ice, one of the first things I do is ask ...
Social Media
At Exponential Ventures, we’re working to solve big problems with exponential technologies such as Artificial Intelligence, Quantum Computing, Digital Fabrication, Human-Machine ...
Hunting for Unicorns
Everybody loves unicorns, right? But perhaps no one loves them more than tech companies. When hiring for a professional, we have an ideal vision of who we are looking for. A professional with X ...
Stay In The Loop!
Receive updates and news about XNV and our child companies. Don't worry, we don't SPAM. Ever.