Programming

How To Use Comments in Ruby — step-by-step Programming tutorial on Progressive Robot

How To Use Comments in Ruby

Comments are lines in computer programs that are ignored by compilers and interpreters. You can use comments to make your programs easier for other programmers to understand by providing more context or explanation what each part of a program is doing. In this tutorial, we will look at how to use comments in Ruby programs to leave notes, as well as how to use them as a debugging tool.

Read more
How To Use IRB to Explore Ruby — step-by-step Programming tutorial on Progressive Robot

How To Use IRB to Explore Ruby

IRB, short for Interactive Ruby, is a REPL (read-eval-print loop) which serves as a quick way to explore the Ruby programming language and try out code without creating a file. In this tutorial, you’ll use IRB to run some code, inspect its output, bring in external libraries, and customize your IRB session.

Read more
How To Work with Arrays in Ruby — step-by-step Programming tutorial on Progressive Robot

How To Work with Arrays in Ruby

An array is a data structure that represents a list of values, called elements. Arrays let you store multiple values in a single variable. This can condense and organize your code, making it more readable and maintainable. In this tutorial, you’ll create arrays, access the values they contain, add, modify, and remove elements in an array, and iterate through the elements in an array to solve more complex problems.

Read more
Como escrever pacotes em Go — step-by-step Programming tutorial on Progressive Robot

Como escrever pacotes em Go

Um pacote é composto por arquivos em Go que ficam no mesmo diretório e têm a mesma instrução de pacotes no início. Você pode incluir funcionalidades adicionais dos pacotes para tornar seus programas mais sofisticados. Alguns pacotes estão disponíveis através da Biblioteca Padrão de Go e, por…

Read more
Importando pacotes em Go — step-by-step Programming tutorial on Progressive Robot

Importando pacotes em Go

Haverá ocasiões em que o seu código irá precisar de funcionalidades adicionais, fora do seu programa atual. Nesses casos, utilize pacotes para tornar seu programa mais sofisticado. Um pacote representa todos os arquivos em um único diretório em disco. Os pacotes podem definir…

Read more
CHAT