Browsed by
Month: July 2019

Aggregation operations – MongoDB queries to the next level

Aggregation operations – MongoDB queries to the next level

Commonly, when we work with MongoDB and want to retrieve documents from a collection we make use of the method find or a variation combined with some kind of filtering or processing on the code side. For most cases, the previous technique is going to be good enough, but there will be some other cases where that won’t be enough. For instance: The filtering or processing on the code side is becoming expensive due to the number of documents. The…

Read More Read More

The difference between “fulfill” and “resolve” a Promise

The difference between “fulfill” and “resolve” a Promise

When we are working with Promises in Javascript, there are two terms commonly confused: fulfill and resolve. According to the dictionary: Fulfill: Bring to completion or reality; achieve or realize (something desired, promised, or predicted). Resolve: Settle or find a solution to (a problem, dispute, or contentious matter). That’s everything we need to solve all the mess around these terms that we tend to use indistinctly. Let’s take the next code snippet as an example: According to the definition of Promise, the method resolve can receive either…

Read More Read More

Value first, the key before selling your product or service

Value first, the key before selling your product or service

When we are developing our business, we commonly tend to think about the core idea, aggregates and the payment model. In the beginning, it works well because the mindset of producing an MVP first and then iterate has been distributed in the entrepreneurship model. Unfortunately, sometimes our products or services don’t have as much traction as we would like them to. A lot of times it doesn’t depend on the quality or the desirability of what we offer. It simply…

Read More Read More

Tips for your first project in a software development team

Tips for your first project in a software development team

Starting to work in a team is hard for some of us. In the beginning, we are (badly) used to work alone and to know everything about the project we are working on (basically because we built it completely). So if it’s the first time you’ll work on a project with other people, please take these tips in the count before you start. Communication is the key One thing that we’ve learned with the time is that your perspective is your…

Read More Read More

Turn HTML into PDF with Node.js

Turn HTML into PDF with Node.js

As the title says, today’s post is about how to generate a PDF file based on HTML content, all in Node.js. To generate PDF files for reports or downloadable content is very common in a certain type of applications where those documents play the role of reports or receipts for a transaction. Unfortunately, while some documents are basically plain text, others require a more complex structure to display all that data. If that’s the case, you can get help with…

Read More Read More