When is it NOT good to use actors in akka/erlang?
I’ve been working with akka for 7-8 months now daily.
When I started, I would be working on applications and notice that actors would be used basically anywhere once inside the actor system for communicating between most objects. So I did the same – spin up another actor for x/y/z.
Immutability across programming languages
I’m quite confused about the concept of mutability (or mutation?), especially across different languages. In a language like Python:
Read-only class properties [duplicate]
This question already has answers here: How does one decide if a data object type should be designed to be immutable? (9 answers) Closed 10 years ago. When is recommended to use read-only properties — if the language allows me? Are public read-only properties meant to replace getter methods or at least the Magic Methods […]
Complete immutability and Object Oriented Programming
In most OOP languages, objects are generally mutable with a limited set of exceptions (like e.g. tuples and strings in python). In most functional languages, data is immutable.
Complete immutability and Object Oriented Programming
In most OOP languages, objects are generally mutable with a limited set of exceptions (like e.g. tuples and strings in python). In most functional languages, data is immutable.
Complete immutability and Object Oriented Programming
In most OOP languages, objects are generally mutable with a limited set of exceptions (like e.g. tuples and strings in python). In most functional languages, data is immutable.
Complete immutability and Object Oriented Programming
In most OOP languages, objects are generally mutable with a limited set of exceptions (like e.g. tuples and strings in python). In most functional languages, data is immutable.
What’s the difference of an object being final and an object being immutable in java?
final String str = “do not change me”; str = “why not?”; //it will result in compile time error saying that final fields can not be re-assigned once created i.e. the reference cannot be changed String str1 = “hello world”; System.out.println(str1.replaceAll(“h”, “q”)); str1 = str1.replaceAll(“h”, “q”); System.out.println(str1); //An immutable object on the other hand means […]
What’s the difference of an object being final and an object being immutable in java?
final String str = “do not change me”; str = “why not?”; //it will result in compile time error saying that final fields can not be re-assigned once created i.e. the reference cannot be changed String str1 = “hello world”; System.out.println(str1.replaceAll(“h”, “q”)); str1 = str1.replaceAll(“h”, “q”); System.out.println(str1); //An immutable object on the other hand means […]
Decreasing vars in Scala programs
I have been studying scala for the past week or so and the ideologies associated with it and functional programming in general. As expected, the leap from imperative to functional programming is not as easy as I had hoped. For example, I converted a programming exercise that I did in Java into Scala. What I found was that it was near impossible for me to switch from mutable variables into the Scala style of immutable vals.