lambdista Profile Banner
Alessandro Lacava Profile
Alessandro Lacava

@lambdista

Followers
479
Following
4K
Media
185
Statuses
3K

In love with FP and type systems. Scala developer. Coauthor of Professional Scala - Wrox

Italy
Joined January 2013
Don't wanna be here? Send us removal request.
@lambdista
Alessandro Lacava
8 years
Let's be honest, learning statically-typed functional programming is harder than the imperative one BUT reasoning about pure functional programs is much easier. I myself prefer to spend more time learning than debugging programs.
7
63
169
@lambdista
Alessandro Lacava
2 years
Config files should be the exception, not the rule. Configuration is code.
1
0
0
@lambdista
Alessandro Lacava
2 years
TFW your integration test catches a bug, introduced in an external service, that could have been caught with a simple unit test on their side.
0
0
0
@lambdista
Alessandro Lacava
2 years
Now, seriously, why should anyone decide to design it like that? JavaScript is so f*cked up folks! year -> the actual year day -> the actual day month -> the actual...nope! it's 0-based.
2
0
1
@lambdista
Alessandro Lacava
2 years
So, yesterday I finally decided to tinker with Scala 3. Well, after like 15 minutes I stumbled upon a compiler bug. Srsly, what are the odds? Anyway I discussed it in discord https://t.co/XDVnmNiAay and it has readily been reported as a bug by som-snytt
0
0
0
@lambdista
Alessandro Lacava
3 years
A junior dev never applies DRY. A senior dev always applies it. A wise dev applies DRY only where it’s needed.
0
0
0
@lambdista
Alessandro Lacava
3 years
Don't get me wrong, comments are important. Nevertheless, never stop wondering if what you're writing as a comment can be expressed in your code, instead, and make it clearer.
0
0
2
@lambdista
Alessandro Lacava
3 years
Annotate every type in Scala. The time you're going to save when you read the code in the future is much more than the one you'd save taking advantage of type inference to avoid some more typing.
0
0
1
@lambdista
Alessandro Lacava
3 years
When designing your ADTs always keep in mind that: ab + ac + ad = a(b + c + d)
0
1
6
@lambdista
Alessandro Lacava
3 years
Bollocks! We Italians are great at queueing! (tongue in cheek)
@SoVeryBritish
VeryBritishProblems
3 years
Only a British person will quietly join the back of a five-mile queue, without even bothering to attempt to look how far ahead it stretches, not even looking up from their phone, maybe a small bottle of water in the other hand… showing the rest of the world how queuing is done.
0
0
0
@lambdista
Alessandro Lacava
3 years
It’s really amazing how many people didn’t understand it was a joke.
@hillelogram
Inactive; Bluesky is @hillelwayne(dot)com
3 years
Gen-Z programmers are always chasing the new shiny thing like Tailwind and Svelte instead of learning CS fundamentals, like React
0
0
0
@lambdista
Alessandro Lacava
4 years
Hey junior devs: many senior devs will suggest you read some academic/difficult books on programming, such as TAOCP. You can be sure most of them read from 0% to 5% of the pages of those books, so don't feel down if you don't fully understand them and move on.
0
0
1
@odersky
Martin Odersky
4 years
Exciting news: We are starting a large scale research project to develop a universal theory of resources and effects based on capabilities.
17
158
938
@lambdista
Alessandro Lacava
4 years
Talking about naming things: IMO `filter` is, probably, one of the worst and most ambiguous name ever given to a method of a std lib.
5
1
7
@lambdista
Alessandro Lacava
4 years
As a former Java dev I appreciate the effort its community is making to improve it. Nonetheless this thread reminds me how lucky I am to use Scala and have that and much more with a less verbose syntax. E.g. see the CompletableFuture example? Here is the return part in Scala:
@bazlur_rahman
A N M Bazlur Rahman 🇧🇩🇨🇦
4 years
Every programming language provides ways to express our ideas and then translates them into reality. This thread will explore ten #Java programming features used frequently by developers in their day-to-day programming jobs.
1
0
3
@entropiae
Riccardo
4 years
Proviamoci: vendo due biglietti per Brunori Sas a Firenze il 24/5 (un rt → un aneddoto da aperitivo)
0
3
0
@lambdista
Alessandro Lacava
4 years
Good news
@OpenJDK
OpenJDK
4 years
Proposed to target JDK 19: JEP 425: Virtual Threads (Preview): https://t.co/yXHU0dLDU7 #jdk19 #openjdk #java
0
0
3
@lambdista
Alessandro Lacava
4 years
In the future IDEs might even think and write code themselves, but I'm pretty confident that, nevertheless, they won't get matching parenthesis/brackets/quotes/... right.
0
0
0
@lambdista
Alessandro Lacava
4 years
When you write the docs for the Scala library you created, may I humbly suggest you include type annotations in the examples? That would make "following the types" much easier.
2
1
24
@lambdista
Alessandro Lacava
4 years
Added 0 after 18 and then halved it
0
0
0
@ScalaItaly
ScalaItaly
4 years
Il programma per #ScalaItaly2021 è ora completo! https://t.co/u98a1TB2mU Ci si vede Sabato 23 per una edizione "spaziale" con @DanielaSfregola @and_prf @AL333Z @lorenzoglorenzo @nivox @massimosiani ed altri!
scala-italy.it
The Italian Conference on Scala
0
12
14