Tagless Final
Tagless Final is a coding pattern in Scala.
Tagless Final is a coding pattern in Scala.
In this blog, I will share some practice in our Scala project, hope this can help you.
We already introduced Reader Monad, It can inject dependency to function by returning a Reader effect.
Reader Monad is very popular in FP, you can find lots of high quality blogs by Google.
Cake Pattern is the inborn Dependency Injection in Scala.
In this blog, we will talk about Self-types which is not used very often, but it’s an important concept to understand Cake Pattern, so it’s worth to do a sim...
Database is always a thing for developer to consider, there are lots of tools in other languages. In this blog, Let’s introduce a tool for Scala developer: ...
When we talk about Free Monad, almost everyone just tell us Free Monad can split the definition and implementation of program which is more flexible and easy...
What is http4s?
In this blog we will talk about Monad which is the core concept of FP. We won’t touch any category theory which belong to mathematics. We will try to find ou...
In the micro service, we always use RESTFul API as communication protocol which pass data using JSON format. So the mapping between JSON and Data Model is an...
In this small blog, we will try to summarize the usage of underscore in Scala.
In this blog, we will talk about Algebraic Data Type in Scala and try to find out why we need it.
In this blog, we will talk about the nature of Functional Programming.
In this blog, we will talk about Type Class in Scala and try to find out why we need this pattern.
In this blog, we will talk about the basic knowledge of Implicits in Scala and some common programming situations where you can use Implicits.
Pattern matching is a powerful tool in Scala. it has a common syntax like
接触Python也有五六年了,一直都是小打小闹,撑死了也就一个几十行的小脚本。 大型工程也就知道需要一个requirement.txt去管理依赖,从来没有实践过。 前段时间用Python开发了一个图床工具simple-image-tool, 在这里分享一下用到的工程管理工具Poetry(主页很酷炫)
I developed a scala log library…
In 2022, I’m back to the Java tech stack(I should be crazy!). There is a poetry in China: “Of Mountain Lu we cannot make out the true face, For we are lost ...
Seems it’s very hard, but it follows the Pareto principle…