RESOURCES

Keyboard recommendations for developers

Some links may be affiliate links. This means if you click on the link and purchase an item we may receive commission at no extra cost to you.

As developers we don’t need many tools to work, many would say that we just need a laptop or computer, and even though that’s true, there’s a difference between having the minimum required to work to have the tools that you need to work comfortably, productive and healthy.

Today we are going to discuss keyboards that you would love as a developer. …

Demystifying threads in Node.js

A purple banner with an illustration of a construction worker and the text “Worker Threads in NodeJS”
A purple banner with an illustration of a construction worker and the text “Worker Threads in NodeJS”
Image by the author

Often, we talk about how Node’s single-threaded nature makes Node applications easily scalable and resource-efficient. But it also makes Node an unsuitable choice for implementing CPU-intensive tasks.

But as a workaround to this problem, in its v10.5.0 release, Node introduced the concept of worker threads. Worker threads provide a mechanism to spawn new threads to handle CPU-intensive tasks in a Node program.

So in this tutorial, we’re going to give you a simplified introduction to worker threads and how to use them. …

Learn how to use the JavaScript-based library in your HTTP requests

Drawing of computer screen and cloud
Drawing of computer screen and cloud
Photo by the author.

Axios is one of the favorite HTTP clients among JavaScript developers. It is used to send HTTP requests, especially AJAX requests, from the client side as well as the server side.

Sending HTTP requests from the JavaScript side is now almost a necessity when developing dynamic web applications. Axios simplifies this task by providing an easy-to-use abstraction over JavaScript’s XMLHttpRequest interface with a number of user-friendly functions and configuration options.

In this tutorial, we are going to walk through everything you need to know about sending HTTP requests with Axios with code examples and simplified explanations.

Let’s start our introduction…

Learn the basics of NLP with Python and give meaning to text

Reading a book
Reading a book
Image by the author.

“The limits of my language means the limits of my world.” — Ludwig Wittgenstein

Computers speak their own language: the binary language. Thus, they are limited in how they can interact with us humans. Expanding their language and understanding our own is crucial to setting them free from their boundaries.

NLP is an abbreviation for natural language processing, which encompasses a set of tools, routines, and techniques computers can use to process and understand human communications. Not to be confused with speech recognition, NLP deals with understanding the meaning of words beyond interpreting audio signals from those words.

If you…

PRODUCTIVITY

Tips to stay productive as a developer

Graphic that says ‘productivity tips for developers’
Graphic that says ‘productivity tips for developers’
Image by the author

If you’re a programmer, there’s a good chance that you have an inability to just do your job. You’d want to work on your passion project in your free time. You’d want to contribute to open-source projects that you love. Becoming a programmer is not just a job — it’s a lifestyle.

Even if it were just the job, with the increasing demand at your workplace, you’d struggle to juggle your workload and personal life when you only have 24 hours on the clock. …

PROGRAMMING FOR KIDS

Do you want to teach kids how to code? Here’s how to get started

Girl on laptop
Girl on laptop
Photo by the author.

I’m the father of a three-year-old boy, and as he grows up, I’m starting to wonder how I can teach him coding. Of course, he’s too young right now and I’m not even sure if he will be interested in pursuing his old man’s career. But if he’s interested, I want to have the right resources available for him to spark his curiosity and learn.

While discussing ideas with some of my friends, we realized how little we know about teaching kids some of our skills. We all learned to program when we were older. I was the youngest to…

Animate like Flash, but in a cool way

Visualization of animation
Visualization of animation
Photo by the author.

Under today’s standards, web applications not only need to be fast and look cool, but they also need to give the feeling of being alive. The latter is quite hard to manage well. With CSS becoming super powerful, new ideas and concepts have been introduced (e.g. animations) that can provide the user with unforgettable experiences when done well.

Animations in CSS are a beast, and people are doing amazing things with them. Don’t believe me? Check out this alpaca built by CSS ninja Annie:

Perhaps you don’t need that level of complexity for your web app, but having a…

Web development can’t survive without encryption

A lock on a webpage
A lock on a webpage
Photo by the author.

As web apps continue to gain access to large amounts of sensitive data that belongs to people, organizations, and even governments, the threat to data security is at an all-time high. Since the early days of programming, programmers have used cryptography and encryption techniques to protect such sensitive data against malicious parties. Especially after the introduction of the internet, cryptography techniques play a crucial role in guaranteeing data security.

In web development, cryptography is often used to secure data while it is being transferred over a network or stored in databases. Most of the cryptographic operations are executed in a…

Know the ins and outs of this basic JavaScript array function

Image by the author

As one of the basic control structures in programming, loops are almost an everyday addition to the code we write. The classic for loop is one of the first code snippets we learn to write as programmers.

If you were a Javascript developer, you would know that Javascript is no stranger to iterating through the items of an array or a map using classic for loops. But did you know that Javascript has a much cleaner and safer method for the same task other than the simple for loop? It’s the Javascript forEach method.

Unlike the simple for loop, where…

Know the ins and outs of this basic JavaScript array function

Two hands holding puzzle pieces
Two hands holding puzzle pieces
Photo by the author.

JavaScript’s reducer is one of the most useful array methods in a developer’s arsenal. Introduced in ES5, it’s somewhat similar to the for…each and map methods that are used with arrays but improves on their performance and simplicity in specific situations.

The reduce method executes a callback function that we provide on each element stored in an array and outputs the final value the operation generates. It’s a cleaner way of iterating over and processing the data stored in an array.

Currently, it’s supported by all of the major browser versions and is available in Node.js from version 10.0 upwards.

Juan Cruz Martinez

I’m an entrepreneur, developer, author, speaker, and doer of things. I write about JavaScript, Python, AI, and programming in general.

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