Hi there folks!

We are back with the last part of Collections, this time we are talking about Strings!

Yeah, you read it right. In Rust, Strings are part of collections family.

So let’s begin.

Strings are a sequence of characters that can represents texts. They are encoded following a Unicode Standard Character Encoding. In some languages they can be designed as a Set of characters, in others just a value to hold by variable.

This data type is not a simple one and brings a lot of challenges. There is a good number of written languages and some of…


We continue our adventurer through the Rust lands with Hash Maps this time!

This kind of collection is really useful to make your programs faster, so let’s go and see how it is like. All the code you can find here.

What is a Hash Map?

Hash Maps are a really common structure in all programming languages. Some call it a dictionary, hash table, etc. The basic idea is to have a key that points to a value. This key is processed by a Hash Function that maps our data. …


Hi there folks! Let’s continue our journey over Rust lands.

Today we are going to cover Collections. It is a central aspect of every programming language.

But what are collections?

In a previous article, we discussed the Rust ownership and variable values. Variables are memory locations where our values are stored. If you want to make a simple program to calculate the mean of a student's notes.

Assuming that we have three students let’s code a little:

That seems to be OK, but what in the middle of the year a new student comes into class? We could always put one more variable…


“Poorly designed code usually takes more code to do the same things, often because the code quite literally does the same thing in several places.”
Martin Fowler

Hi there, folks! I’m learning Rust as a 2020 goal.

Today we are going to talk about the Rust project structure and how to organize your code. Although cargo workspace also enters in this equation we’ll not talk about it, for the sake of simplicity.

Introduction

When we write small programs it’s simple to keep tracking of the entire functionalities inside our head. To make simple calculus or exercise some algorithms you can…


Hi, the Rust Adventure continues!

Today we are going to discuss conditional flow in Rust and how it helps the language to solve some complex problems with simple solutions.

Introduction

I would like to start with Pattern Matching.

Pattern Matching is the act to resolve a sequence of tokens into some pattern. It’s a very broad explanation with many applications. I think the most know pattern matching is Regular Expression.

The Regular Expression is a special type of Pattern Matching called Sequence Patterns, because it works over a text like it was a Time Series using some kind of Backtracking


Hi there folks!

As you already know I´m learning Rust as one of my goals to 2020. The major of my experience was with Java up until now, although I played with some others. So the Object-Oriented Programming is part of my daily life.

Classes are in the core of Java, there is simply no way to write a Java program without a class, even to print a Hello World you will need a class.


Hi there folks!

As you know I’m learning Rust as a 2020 goal and today I decided to learn more about the key feature of the language: Ownership.

Beginning

My career up until now was based solely under Java stacks, so I summed up some experience with Java, Javascript and their libraries. For a long time I heard of the trails of people from C and C++ used to have managing the memory allocation of their programs and how the Garbage Collector saved the day.

The other side of the coin is that I always heard about the low-level languages programmers…


Hi there folks!

As you know I’m using the Exercism platform to learn Rust as 2020 goal. Today I´m going to talk about the Bob exercise.

It’s a really simple at first, Bob is a robot that answers you with the following rule:

“Bob answers ‘Sure.’ if you ask him a question, such as “How are you?”.

He answers ‘Whoa, chill out!’ if you YELL AT HIM (in all capitals).

He answers ‘Calm down, I know what I’m doing!’ if you yell a question at him.

He says ‘Fine. Be that way!’ if you address him without actually saying

anything.


Tudo bem, pessoal?

Estou aprendendo a linguagem Rust e estou utilizando a plataforma Exercism para resolver problemas dentro desta linguagem e gostaria de trazer para vocês minha experiência com o problema Armstrong Numbers, do Exercism.

Sobre o Rust

Está sendo muito legal essa experiência com Rust e ao mesmo tempo desafiador devido a forma como a linguagem foi idealizada, mas ela promete grandes desempenhos e tem um benchmark muito interessante.

Aqui você pode ver como ele desempenha em relação a linguagem C, Clang, C++ e Go.


Hi there folks!

Today I´m going to test how the Java lambda performs over with their implementation of lambda functions.

Overview

Lambda is the Greek letter λ, it is used in a variety of fields of knowledge but in our case it has to do with Lambda Calculus, that is a form of mathematics made just for computational problems and it’s the base of all Functional Programming. The principal difference between a functional and a non functional language is that functions are First-class Citizen, meaning that they can be type, object, entity or values. …

Floriano Victor Peixoto

Writing to make ourselves better programmers.

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