Learn Rust by Building a Full-stack Todo Application

What I want to write a blog about how I learned Rust. Please forgive me that I just started learning such a great programming language in 2022. To learn Rust by doing, I have built a full-stack todo application. You can try it here. The source code is available at GitHub. Here I am going to write about how to build it. How Firstly, as everyone beginning, I learn Rust from the book as well....

May 1, 2022 · 3 min · Lex Cao

Generate Converter for Kotlin Class by KAPT

Background In web backend development, the operation of an entity need to code a number of similar classes to handle request (avoiding the direct use of entities), which resulting in related terminology: PO (Persistent Object) DTO (Data Transfer Object) BO (Business Object) VO (View Object) Most of these classes trim a few fields directly from the entity. For example, by using OrderEntity in a request to create an order, it would process like following:...

April 13, 2020 · 4 min · Lex Cao