Global Feed Post Login
Replying to Avatar Matej Cerny

Is Scala difficult to learnâť“ I believe that F[_] might be the reason many people think Scala is hard.

Simply put, the idea behind F[_] is that you should not force programmers to use your preferred async system. This is great for library developers, but many apps adopt this highly abstract way of programming. In reality, there is usually no reason to switch from one effect system to another.

In our projects, we chose cats effect IO. We use it directly, avoiding unnecesarry abstraction. The result? Super simple and clean code, even for newcomers who have no prior experience with Scala. Not caring about all the effect system bounds is liberating. #scala

Avatar
Get Real w/ Ryan 1y ago

Yeah IMO there is a huge jump in difficulty from "regular Scala" to using effect systems but most people who are Scala evangelists are advanced and therefore use effect systems and try to get new people to use them. It takes a lot of experience to be able to understand the benefits of effect systems and how they work, and trying to get newbies to use them is a mistake IMO.

Reply to this note

Please Login to reply.

Discussion

No replies yet.