moroz.dev

Blog

Go 入門:函數定義

函數與做蛋糕有什麼關係?如何定義一些簡單的函數?寫布林函數的時候要注意什麼?

Go 入門:軟體包、宣告變數

此篇為編程的初學者介紹了 Go 程式語言的基本概念,初始化專案的方法,以及宣告變數的兩種語法。

Using UUIDv6 or v7 as primary key in Ecto

UUIDs are a great choice for primary keys in PostgreSQL. However, not all UUIDs were created equal. This post discusses the pros and cons of different UUID formats and explains how to use newer formats in Ecto for Elixir.

Absinthe Tips and Tricks: Generic Types

Over the years, I have developed a big collection of modules and macros that I copy and paste in all Elixir projects using Absinthe. It is high time I started sharing my experience with the community. Today I present a simple way to build “generic” types.

Learning iOS and Swift. Day 24: Building a carousel using UIKit interop

Following Apple’s SwiftUI tutorial, I explore the interoperability techniques used to embed SwiftUI components inside UIKit Controllers, and vice versa. The tutorial teaches how to build a carousel view, which I find pretty cool. I also learned how to overlay text and a gradient over an image.

Learning iOS and Swift. Day 22: Generic input field, toolbar

I spent the whole evening going through tutorials and working on my side project, Ngöndro Tracker, leaving little time to post updates to the blog. Among others, I implemented a text field component with label, a helper to initialize colors from CSS hex strings, and began work on the view to edit practice settings.