Alessandro Lacava (@lambdista) 's Twitter Profile
Alessandro Lacava

@lambdista

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

ID: 1111134668

linkhttp://www.alessandrolacava.com calendar_today22-01-2013 10:01:50

3,3K Tweet

484 Takipçi

76 Takip Edilen

Alessandro Lacava (@lambdista) 's Twitter Profile Photo

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.

Alessandro Lacava (@lambdista) 's Twitter Profile Photo

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.

Alessandro Lacava (@lambdista) 's Twitter Profile Photo

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:

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:
Alessandro Lacava (@lambdista) 's Twitter Profile Photo

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.

Martin Odersky (@odersky) 's Twitter Profile Photo

Exciting news: We are starting a large scale research project to develop a universal theory of resources and effects based on capabilities.

Alessandro Lacava (@lambdista) 's Twitter Profile Photo

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.

Alessandro Lacava (@lambdista) 's Twitter Profile Photo

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.

Alessandro Lacava (@lambdista) 's Twitter Profile Photo

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.

Alessandro Lacava (@lambdista) 's Twitter Profile Photo

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 discord.com/channels/63215… and it has readily been reported as a bug by som-snytt github.com/lampepfl/dotty…

Alessandro Lacava (@lambdista) 's Twitter Profile Photo

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. developer.mozilla.org/en-US/docs/Web…

Alessandro Lacava (@lambdista) 's Twitter Profile Photo

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.