Oprea.Rocks Logo

Get updates on new articles, and other opportunities

Articles published under the Software Development category

How to check if a JavaScript object is empty

I had the following snippet of code and wanted to log an error only if whatever the block receives is an actual object with actual values. Needed a solution. The code calls a smart contract getter, using Web3.js , retrieves whatever the return value is, and returns its plain text representation…

What do the three dots (...) mean in JavaScript?

The title of the article is from a question I was asked to answer on Quora . Below, is my attempt to explain what do the three dots do in JavaScript. Hopefully, this removes the fog around the concept, for people who will find this article in the future and have the same question. Updates Added…

How to manage i18n translation files for web applications

Most software developers know that keeping hardcoded strings in your code is bad form. For the most part of our working life, we pester our colleagues to extract stuff in variables, make strings constants, so on and so forth. Text/translation file management became an interesting topic for me in the…