1,667 reputation
513
bio website inf.puc-rio.br/~hgualandi
location Brazil
age 24
visits member for 3 years, 4 months
seen Sep 22 at 4:57

4h
awarded  Explainer
Sep
21
awarded  Good Answer
May
17
awarded  Yearling
Mar
21
answered To make a class function or not?
Mar
10
comment Are there programming languages that their programs don't run on a VM or natively, but rather on an interpreter?
@NPElover: I think the more important point is that the distinction between interpreted vs VM vs native is subjective and thus not as useful as one might think at first.
Mar
10
answered Why does Rails do config in code?
Jan
23
answered How to remove redundant code that enables button. Or “if” statement
Jan
11
awarded  Nice Answer
Nov
17
answered Why languages that compile to C/C++ generate unreadable, cryptic code?
Nov
8
comment Design Patterns - Why the need for interfaces?
@JörgWMittag: Interfaces define the specification for the ADT (the A part) and the classes specify different implementations. In a way, things would be simpler if the type of variables were always an interface and classes were used only for the constructors. In Java you can use class names as types (MyClass x = new MyClass()) but you can kind of see this as if the language were automatically creating an interface for you (MyClassInterface x = new MyClass())
Nov
8
comment Design Patterns - Why the need for interfaces?
You might want to read a something about Abstract Data Types.
Oct
31
revised Functional programming and stateful algorithms
added 30 characters in body
Oct
7
answered Optional semicolons
Oct
5
comment Does functional programming ignore the benefits gained from the “On the Criteria To Be Used in Decomposing Systems into Modules” (data hiding)?
@SK-logic: From an "expression problem" point of view, revealing the data is good when you want to extend with new function in the future (and are OK with keeping the data fixed) and hiding the data is good when you want to extend with new datatypes in the future (at the cost of keeping the functional interface fixed)
Oct
5
comment Functional programming and stateful algorithms
@bigstones: I think you should try to understand how my code works before tackling monads - they will basically do the same thing I did but with extra layers of abstraction to confuse you. Anyway, I added some extra explanation to try to make things a bit clearer
Oct
5
revised Functional programming and stateful algorithms
added 3416 characters in body
Oct
5
revised Functional programming and stateful algorithms
added 5 characters in body
Oct
5
revised Functional programming and stateful algorithms
added 1 characters in body
Oct
5
comment Functional programming and stateful algorithms
@Philipp: functional programming is about making state explicit, not about forbidding it. In fact, tail recursion is a really great tool for implementing those state machines full of gotos.
Oct
5
revised Functional programming and stateful algorithms
added 339 characters in body