As a specific example, consider the usage of annotations in Java. These solutions might be not as attractive, with less “magic”, but in effect make the code better. Apart from being a great language for building big data and distributed systems, Scala can have a huge role in offering simpler solutions to every-day problems than their current Java counterparts. On the contrary, I think that there’s yet another opportunity for Scala to shine over Java, Kotlin or Go. languages with fewer features) and taking away some of the freedom that we have in Scala is the way to go. Here, competent and responsible means that we must resist the temptation to over-engineer (and this temptation is no way unique to the Scala ecosystem), and carefully consider the balance between the complexity of language features used and the problems at hand. I don’t believe that using crippled tools (i.e. #QUICKLENS SCALA HOW TO#This potential complexity might be seen as an argument against using Scala at all: maybe using a more basic language will save us, at least partially, from writing complex code? I don’t think so as competent, responsible software engineers, we are more than capable to choose how to best solve a specific problem. We just need to keep in mind, what kind of problem are we solving (see also the Principle of Least Power by Li Haoyi). This, in turn, can lead to complex code but certainly doesn’t have to. The Scala language offers a number of features while each of them is relatively straightforward, it’s their interaction where the language gets its expressive power. In the long run, this will allow us to spend less time writing and reading these “simple” parts, leaving more mental space for the complex code solving complex problems.Īs far as Scala is concerned, it’s sometimes easy to loose focus on solving simple problems using simple code. It’s not Machine Learning or Fast Data, but I think it’s still worth exploring how to simplify the more mundane parts of code. The use-cases for the above mentioned projects aren’t particularily exciting or novel however, they solve practical, “everyday” problems. sttp: a programmer-friendly http client, with easy request templating, an uri interpolator and exchangeable backends. #QUICKLENS SCALA MANUAL#
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |