Development

Understanding defer in Go — step-by-step Programming tutorial on Progressive Robot

Understanding defer in Go

Go has many of the common control flow keywords found in other programming languages such as if, switch, for, etc. One keyword that isn’t found in most other programming languages is defer, and though it’s less common you’ll quickly see how useful it can be in your programs. In this article we will learn how to properly use the defer statement for cleaning up resources as well as several common mistakes that are made when using defer.

Read more
Entendendo o init em Go — step-by-step Programming tutorial on Progressive Robot

Entendendo o init em Go

Em Go, a função pré-definida init() faz com que uma parte do código execute antes de qualquer outra parte do seu pacote. Esse código vai executar assim que o pacote for importado e poderá ser usado…

Read more
Understanding Objects in JavaScript — step-by-step Javascript tutorial on Progressive Robot

Understanding Objects in JavaScript

Objects are an integral and foundational aspect of most JavaScript programs. For example, a user account object may contain such data as usernames, passwords, and e-mail addresses. Another common use case is a web shopping platform’s shopping cart that could consist of an array of many objects containing all the pertinent information for each item, such as name, price, and weight for shipping information. A to-do list is another common application that might consist of objects.

Read more
Understanding the Event Loop, Callbacks, Promises, and Async/Await in JavaScript — step-by-step Javascript tutorial on Progressive Robot

Understanding the Event Loop, Callbacks, Promises, and Async/Await in JavaScript

In order to avoid blocking code in JavaScript development, asynchronous coding techniques must be used for operations that take a long time, such as network requests made from Web APIs like Fetch. This article will cover asynchronous programming fundamentals, teaching you about the event loop, the original way of dealing with asynchronous behavior through callbacks, the updated ECMAScript 2015 (ES6) addition of promises, and the modern practice of using async/await.

Read more
Использование буферов в Node.js — step-by-step Javascript tutorial on Progressive Robot

Использование буферов в Node.js

Автор выбрал COVID-19 Relief Fund для получения пожертвования в рамках программы Write for DOnations. Буфер — пространство в памяти (как правило, оперативной), в котором…

Read more
Built-in Python 3 Functions for Working with Numbers — step-by-step Python tutorial on Progressive Robot

Built-in Python 3 Functions for Working with Numbers

This tutorial will go through a few of the built-in functions that can be used with numeric data types in Python 3. Becoming familiar with these methods can give you more flexibility when programming. We’ll go over the following functions: abs() for absolute value, divmod() to find a quotient and remainder simultaneously, pow() to raise a number to a certain power, round() to round a number to a certain decimal point, sum() to calculate the sum of the items in an iterable data type.

Read more
Customizing Go Binaries with Build Tags — step-by-step Programming tutorial on Progressive Robot

Customizing Go Binaries with Build Tags

In Go, a build tag, or a build constraint, is an identifier added to a piece of code that determines when the file should be included in a package during the build process. This allows you to build different versions of your Go application from the same source code and to toggle between them in a fast and organized manner. In this article, you will use build tags in Go to generate different executable binaries that offer Free, Pro, and Enterprise feature sets of a sample application.

Read more
CHAT