How does Scala work it’s Magic?
Hello everyone, today we’re gonna talk a little about the said “automagics” of Scala, how it does what it does, and generates Java code in the end. Because if you think about it, if all that it does is generate Java classes, then we should just do it directly with Java right? Wrong. I’m not [...]
Como Scala faz a mágica?
Bom dia a todos, hoje vamos falar um pouco sobre as ditas “mágicas” do Scala, sobre como ele faz o que faz, e gera código Java no final. Afinal, se tudo o que ele faz gera classes Java, por que não fazemos diretamente com Java não é mesmo? Não vou me aprofundar nos conceitos mais [...]
Tail Recursion
Hello, everyone, today we’ll talk a little more about recursion. I came here to explain the question I left on the last post. What can be done about that recursive method? How can we “fix” it? There’s a way to implement recursion that is called tail recursion.
Recursão de Cauda
Olá, pessoal, hoje vamos falar um pouco mais sobre recursividade. Estou aqui para responder e explicar o questionamento que deixei no post passado. O que pode ser feito com relação ao método recursivo? Existe uma forma de implementar recursividade que se chama recursão de cauda.
Recursion
Hello, everyone! How are you? Today we’ll talk a little about recursion. Recursion has many definitions, but in computing it describes algorithms that are defined in terms of itself, which means that in it’s implementations it calls itself. The concept might seem complicated for someone who has never heared of it, but it is something [...]
Recursividade
Olá, tudo bem? Hoje vamos falar um pouco sobre recursividade. Recursividade ou recursão é o termo usado para descrever algoritmos que são definidos em termos de si mesmos, ou seja, uma função que em sua implementação, chama a si mesma. O conceito pode parecer complexo para quem nunca ouviu falar dele, mas é algo incrivelmente [...]
What is the reserved word volatile used for?
Hello, everyone! Before we understand the use of the reserved word volatile, we first need to have some concepts in mind. How does a processor retrieve the value of a variable?
Para que serve a palavra reservada volatile?
Antes de entendermos o funcionamento da palavra reservada volatile, precisamos ter alguns conceitos em mente. Como um processador busca o valor de uma variável na memória?