René's URL Explorer Experiment


Title: beforeold 博客 | beforeold blog

Open Graph Title: beforeold 博客 | beforeold blog

Description: 这里是 beforeold 的个人博客,与你一起发现更大的世界 | 要做一个有追求的程序员

Open Graph Description: 「梦未圆,心不老」

Keywords:

Opengraph URL: https://beforeold.github.io/

direct link

Domain: beforeold.github.io

NoneIE=edge
google-site-verificationxBT4GhYoi5qRD5tr338pgPM5OWHHIDR6mNg1a3euekI
theme-color#000000
og:typewebsite
og:imagehttps://beforeold.github.iohttps://github.com/beforeold.png
og:site_namebeforeold 博客 | beforeold blog

Links:

beforeold bloghttps://beforeold.github.io/
Homehttps://beforeold.github.io/
Abouthttps://beforeold.github.io/about/
Archivehttps://beforeold.github.io/archive/
Security Policyhttps://beforeold.github.io/SECURITY/
javascript:void(0)
Noticing That I'm Trying to Use OpenAI Codex 今天在整理实验项目时,忽然意识到自己已经把 OpenAI Codex 当成了随手可取的工具。它不像聊天机器人那样絮絮叨叨,而是能直接接管键盘,把我嘴里含糊的需求落成一段段代码。这个“察觉”的瞬间值得记录下来。 当下的念头 Codex 会认真追问上下文,让我在描述需求时自然地把场景、输入输出和边界条件都补充完整。 看着它补齐函数、生成注释,再回过头逐行解释,我感觉自己像在跟一位熟... https://beforeold.github.io/2025/09/20/noticing-i-am-trying-to-use-openai-codex/
在 Live Activity 中展示图片的 3 种方式 https://beforeold.github.io/2022/11/13/%E5%9C%A8-Live-Activity-%E4%B8%AD%E5%B1%95%E7%A4%BA%E5%9B%BE%E7%89%87%E7%9A%84-3-%E7%A7%8D%E6%96%B9%E5%BC%8F/
苹果官方:iOS 16.1 的 Live Activity 介绍 https://beforeold.github.io/2022/10/23/%E8%8B%B9%E6%9E%9C%E5%AE%98%E6%96%B9-iOS-16.1-%E7%9A%84-Live-Activity-%E4%BB%8B%E7%BB%8D/
【翻译】如何在 iOS 16 中获取系统文件夹的 URL 翻译自原文:Get URLs for system folders in iOS 16 在 iOS 16 中处理文件和文件夹变得容易多了。之前,为了获取一个应用文件夹下的某个文件的路径,不得不使用一些相当繁琐的 FileManager API。现在,可以直接从 URL 扩展的静态属性中获取到系统文件夹的路径了。 举个例子,为了获取应用沙盒中的 documents 文件夹,可以读取... https://beforeold.github.io/2022/10/06/%E7%BF%BB%E8%AF%91-%E5%A6%82%E4%BD%95%E5%9C%A8-iOS-16-%E4%B8%AD%E8%8E%B7%E5%8F%96%E7%B3%BB%E7%BB%9F%E6%96%87%E4%BB%B6%E5%A4%B9%E7%9A%84-URL/
SwiftUI对ViewState的表达语法 背景 在 SwiftUI 中 View 可以理解为 State 的运算结果,View = f(State),在处理映射关系中,比:在一篇分析文章中定义了如下 ViewState 类型,并试图通过扩展的方式映射到 SwiftUI View。 typealias BuilderWidget = (T) -> some View enum ViewStatehttps://beforeold.github.io/2022/03/28/SwiftUI%E5%AF%B9ViewState%E7%9A%84%E8%A1%A8%E8%BE%BE%E8%AF%AD%E6%B3%95/
Swift如何运用Never实现代码占位和API设计 1 什么是 Never Never 从字面意思理解就是“永不”。有以下应用场景 1.1 替代了早期 swift 版本中的特性 @nonreturn 例如,在一些方法暂时未来得及实现的情况下,可以使用 fatalError()函数 来实现临时占位: 这个函数的声明返回值就是 Never,该函数永远不会执行完后返回,会被编译器认为程序到此结束,因而可以临时代替函数的实现,其声明如下: func... https://beforeold.github.io/2022/01/10/Swift%E5%A6%82%E4%BD%95%E8%BF%90%E7%94%A8Never%E5%AE%9E%E7%8E%B0%E4%BB%A3%E7%A0%81%E5%8D%A0%E4%BD%8D%E5%92%8CAPI%E8%AE%BE%E8%AE%A1/
在Swift Codable中使用enum类型的风险 背景 枚举(enum)类型因其良好地表达对象不同的情况(case),是开发中的常用类型。 例如: enum OrderState: Int { case new = 1 case payed = 2 case done = 3 } 对于原始值为 Int 类型的 enum 类型,编译器可为其自动合成 Codable 实现。 extension OrderSta... https://beforeold.github.io/2022/01/08/%E5%9C%A8Swift-Codable%E4%B8%AD%E4%BD%BF%E7%94%A8enum%E7%B1%BB%E5%9E%8B%E7%9A%84%E9%A3%8E%E9%99%A9/
OC如何优雅地在performSelector指定未声明的selector 背景 由于 OC 的动态特性,可以通过 performSelector: 实现部分特殊情况下未声明 selector(一般是无法 import 其 API header 文件),比如: 调用私有 API 在低版本 SDK 编译环境下调用高版本 SDK 的 API 处于解耦的目的不便直接依赖导入(PS:常规情况,这样是不推荐的,可以通过不少解耦方案进行实现。) 由于 API ... https://beforeold.github.io/2022/01/07/OC%E5%A6%82%E4%BD%95%E4%BC%98%E9%9B%85%E5%9C%B0%E5%9C%A8performSelector%E6%8C%87%E5%AE%9A%E6%9C%AA%E5%A3%B0%E6%98%8E%E7%9A%84selector/
Swift如何解决《后台返回了一种让我讨厌的JSON》? 背景 浏览到一个关于 Swift Codable 应用的很有意思的案例(见后文参考文档),问题大意如下: 后端返回的字段与最初协议约定的类型不一致 期望:object 类型 实际: String 类型 这导致 Swift Model 声明该字段的不便利 不便利的原因在于: 1、如果属性声明为 String 类型,则使用时需要二次加工,从 stri... https://beforeold.github.io/2022/01/06/Swift%E5%A6%82%E4%BD%95%E8%A7%A3%E5%86%B3-%E5%90%8E%E5%8F%B0%E8%BF%94%E5%9B%9E%E4%BA%86%E4%B8%80%E7%A7%8D%E8%AE%A9%E6%88%91%E8%AE%A8%E5%8E%8C%E7%9A%84JSON/
如何解决 CocoaPods could not find compatible versions for pod RxSwift? 背景 在 pod install 时常遇到无法找到可用版本 pod 的问题,主要有以下情况 情况 1: 本地 pod repo 没有更新 如果使用了 pod install –fast-mode 命令,那么本地 spec repo 不会更新,这时的解决方案是更新 spec repo,可以直接尝试: 1、pod install --verbose 2、或者先执行 pod repo u... https://beforeold.github.io/2022/01/05/%E5%A6%82%E4%BD%95%E8%A7%A3%E5%86%B3-CocoaPods-could-not-find-compatible-versions-for-pod-RxSwift/
Older Posts →https://beforeold.github.io/page2
FEATURED TAGShttps://beforeold.github.io/archive/
iOShttps://beforeold.github.io/archive/?tag=iOS
Swifthttps://beforeold.github.io/archive/?tag=Swift
API Designhttps://beforeold.github.io/archive/?tag=API+Design
Objective-Chttps://beforeold.github.io/archive/?tag=Objective-C
函数https://beforeold.github.io/archive/?tag=%E5%87%BD%E6%95%B0
设计模式https://beforeold.github.io/archive/?tag=%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F
Codablehttps://beforeold.github.io/archive/?tag=Codable
Live Activityhttps://beforeold.github.io/archive/?tag=Live+Activity
MVVMhttps://beforeold.github.io/archive/?tag=MVVM
ABOUT MEhttps://beforeold.github.io/about/
https://github.com/beforeold
乱序(Midare)http://mida.re/
Ebn Zhanghttps://ebnbin.dev/
Kun Qianhttp://kunq.me
Sherry Woohttps://sherrywoo.me/
SmdCnhttp://blog.smdcn.net
JiyinYiyonghttp://tiye.me/
DHong Sayhttp://dhong.co
尹峰以为http://ingf.github.io/
https://github.com/beforeold
beforeold bloghttp://huangxuan.me

Viewport: width=device-width, initial-scale=1, viewport-fit=cover


URLs of crawlers that visited me.