Using Functional Binding to Observe in SwiftUI

Story This week, my colleague asked me a question: how to observe user selection behaviors on SwiftUI's Picker ? This is a question came from real bussiness. Thus I think it worth to take me time to solve it. The example code is as shown below and my colleague wanted to observe user's behaviors on…

Unexplained SwiftUI - The Programming Language Nature of SwiftUI

Preface Apple introduced SwiftUI at WWDC 2019. Most people may seem SwiftUI as yet another UI framework likes Flutter , React.js or Vue.js which rides on the trend of declarative stateless UI programming. Even though there are some common points between them, SwiftUI is far different from…

Conforming to Codable for Associated Value Enums in Swift

Understanding Associated Value Enums Why there are associated value enums in Swift? I mean, why the Swift core team designed associated value enum? To understand it, firstly, let's take a look at the following example in C: The C struct Device represents a device. The member pointer is an…

A Glimpse into Swift Generic Meta-Programming

Make VFL Reborn in Swift with Compile-Time Safety

Preface What is the most critical thing swings your decision when you choose a programming language? Some people may say, the less lines of code they write, the better the language itself is. (Nope, the best programming language is PHP.) OK. It might be true. But writing less code is not an…

Use crontab to Automate Updates of CLI Softwares

crontab , an abbreviation of chronic table (periodical time table), is a task scheduler which schedules tasks in period of time on UNIX systems. Each user in UNIX systems have its own "crontab". Editing the crontab File By executing crontab -e , you can open the crontab of the user you logged in…

Notes On Implementation of Gatsblog

This post has been revisited with LLM technology to improve its English fluency. In this post, I'll discuss the implementation of Gatsblog, a blog system built with Gatsby.js. If you missed my previous posts about the overview and design of Gatsblog, please check them for context about the…

Notes on Design of Gatsblog

This post has been revisited with LLM technology to improve its English fluency. I had limited time to create a modern design for the first version of Gatsblog. The design is somewhat "old school," but I carefully tuned the grid system to achieve a high-quality layout. Grid System Grid systems are…

An Introduction to Gatsblog

A Blog Built with Gatsby.js

This post has been revisited with LLM technology to improve its English fluency. As mentioned in my Hello World post, no existing blog system fully meets my needs, especially given my deep involvement with frontend technology. This led me to create my own solution. This post documents my journey…


Freiheit ist Wille. Handeln ist Fähigkeit. Mut ist der Glaube, der mit der Zeit nicht nachlässt.
Built with Astro.