明天学习完Java基本语法知识
不得不说有swift语法基础, 学习Java就是快。。。。。。。 学习完我就要开始研究各种框架了
良禽择木而栖 良臣择主而事
良禽择木而栖 良臣择主而事
学习方向改变决定
学习了将近半年的iOS开发, 其实本来觉得自己好像是对iOS开发非常非常感兴趣,当然最后却发现还是挺有意思的,这一路下来,然后呢,但是对于这个其实好奇心挺重的,我那我觉得这个后端可能我更愿意去研究吧,因为的话我觉得就是像我以前摄影这样,我觉得一个兴趣去研究更好,但是你如果说如果把它当成职业的话,我觉得还是有点难受呢,我也决定一下以后当这个Java工程师吧,然后呢,我觉得我的业务呢,估计也是着重这个后端,但其实前端还是非常有兴趣去学的因此,以后我要认真的学习Java后端。
这是我第一个随笔
这是我第一个随笔
From Long Functions to Modular Code - Refactoring the User Account Creation Flow
Ⅰ.IntroductionIn my recent iOS project ChatApp , I refactored the account creation functionality. The original code was overly long and lacked modularity, making it difficult to maintain and extend. By refactoring the code, I improved its readability, maintainability, and reduced potential memory leak risks. In this blog, I will share a comparison of the code before and after the refactor, as well as the advantages of the refactor and the lessons learned. Here is the whole code before the re...
Taking more medicine doesn’t make you a doctor
“Taking more medicine doesn’t make you a doctor.” This simple sentence carries a quiet yet profound truth. On the surface, it appears obvious: one does not become a medical professional by virtue of being a patient. Swallowing pills, no matter how many, imparts no real understanding of anatomy, pathology, or healing. But the deeper implication of the phrase reaches far beyond medicine. It gently mocks a widespread illusion—that passive accumulation of experiences, repeated motions, or expo...
Persist
If you want to gain something, you have to give something in return. And if you choose to give, you must also learn to persist. If you truly feel it’s too hard, then give up — but if you choose to give up, don’t complain. That’s just how life is. The world is, in its own way, fair. Everyone must rely on their own effort to decide what kind of life they want to live.
Understanding Protocol-Delegate Pattern in Swift with Real Examples
Table of Contents Ⅰ. Introduction Ⅱ. What is a Protocol? Ⅲ. Why Use Protocols? Ⅳ. What is a Delegate? Ⅴ. How to Use the Protocol-Delegate Pattern in Swift Ⅵ. Protocol-Delegate Pattern in UIKit with Real Examples Example 1: RingViewDelegate – Custom View Delegation Example 2: WorkoutDelegate – View Controller Communication Ⅶ. Why Use the Protocol-Delegate Pattern in Swift? Ⅷ. Summary Ⅸ. References Ⅰ.IntroductionOne of the most powerful and elegant patterns in iOS development is the protocol...
When and Why to Use @escaping in Swift - A Practical Guide
Ⅰ.IntroductionIn my last article, Escaping vs Non-Escaping Closures in Swift, we discussed the difference between escaping and non-escaping closures in Swift. Today, we’ll take a deeper look at escaping closures through real-world examples. Core Concept Sentence:A non-escaping closure executes during the function execution, while an escaping closure executes after the function has returned. Ⅱ.Non-Escaping ClosuresLifecycle The closure is passed as a parameter to a function The closure is exec...
Escaping vs Non-Escaping Closures in Swift
Ⅰ.What is an Escaping Closure?Definition:An escaping closure is a closure that is passed into a function as a parameter, but may be called after the function has already returned.In other words, the closure “escapes” the function’s scope. When declaring a function that takes a closure parameter, you use the @escaping keyword to indicate that the closure is allowed to escape the function body. This means the closure “escapes” the function’s body. Ⅱ. Why Do We Need Escaping Closures? (Example: ...