Posts by Category

Scala Tutorial

Tagless Final

4 minute read

Tagless Final is a coding pattern in Scala.

Reader Pattern

5 minute read

We already introduced Reader Monad, It can inject dependency to function by returning a Reader effect.

Reader Monad

10 minute read

Reader Monad is very popular in FP, you can find lots of high quality blogs by Google.

Cake Pattern

8 minute read

Cake Pattern is the inborn Dependency Injection in Scala.

Self-types

5 minute read

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...

Doobie Introduction

7 minute read

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: ...

Free Monad

14 minute read

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...

Monad

7 minute read

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...

Circe Introduction

5 minute read

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...

Underscore

2 minute read

In this small blog, we will try to summarize the usage of underscore in Scala.

Algebraic Data Type

5 minute read

In this blog, we will talk about Algebraic Data Type in Scala and try to find out why we need it.

Type Classes

7 minute read

In this blog, we will talk about Type Class in Scala and try to find out why we need this pattern.

Implicits

6 minute read

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

8 minute read

Pattern matching is a powerful tool in Scala. it has a common syntax like

Back to Top ↑

Python Tutorial

Python 工程管理

1 minute read

接触Python也有五六年了,一直都是小打小闹,撑死了也就一个几十行的小脚本。 大型工程也就知道需要一个requirement.txt去管理依赖,从来没有实践过。 前段时间用Python开发了一个图床工具simple-image-tool, 在这里分享一下用到的工程管理工具Poetry(主页很酷炫)

Back to Top ↑

Project

Back to Top ↑

Discussion

Where should we check if the list is empty?

2 minute read

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 ...

Back to Top ↑

Reactor

Back to Top ↑