If you had to teach Swift from scratchβ¦
β¦how would you structure the chapters for a book? π€
This is what we came up with @tiborbodecs.bsky.social so far.
What would you add, cut, or reorder?π
@kittibodecs.bsky.social
π©βπ» Self-taught Swift developer π Co-author of Learn to code using Swift π§ UX brain π§© Making code less scary
If you had to teach Swift from scratchβ¦
β¦how would you structure the chapters for a book? π€
This is what we came up with @tiborbodecs.bsky.social so far.
What would you add, cut, or reorder?π
Honestly, I never realized that the βif letβ syntax is actually pattern matching behind the scenes...
...until @kittibodecs showed me this snippet. ‡οΈ
After seeing how difficult it is to work with pointers in C, Iβm convinced I made the right choice with Swift π¦
07.08.2025 19:12 β π 2 π 0 π¬ 0 π 0Whatβs the hardest concept in Swift to grasp on? π€
- Memory management
- Associated types
- Variadic generics
- Concurrency
Comment belowπ
The whole unsafe memory topic is rather an insightful detour in the book. The line is thin between keeping things βeasyβ and actually connecting the dots for deeper understanding. At least memory safety can feel like a blessing afterwards and not just smth to take for granted.
06.08.2025 08:54 β π 1 π 0 π¬ 1 π 0I thought the same but the co-author made me change my mind π
05.08.2025 22:23 β π 0 π 0 π¬ 0 π 0Just finished writing about unsafe memory in Swift. How deep is too deep? I drew the line at the Unmanaged type. Itβs chapter 14 yet itβs still a book for absolute beginners.
05.08.2025 19:09 β π 4 π 0 π¬ 2 π 0I have one chat window right now about it which is a constantly growing pile, so I rather don't share that. I'll keep it in mind for the future that this stuff is also worth sharing, so thanks for the tip
05.08.2025 19:08 β π 0 π 0 π¬ 0 π 0LLMs are amazing learning toolsβif you use them with intention.
These 3 things helped me not just get answers, but grow as a Swift beginner.
Got your own AI learning tricks? Tell me π
π£οΈ Tip 3 β Ask it to challenge you
Instead of asking for help, Iβd say:
"Can you check if I understood what I just learned?"
It turned reading into recall.
It made learning feel like a game.
π¦ Tip 2 β Talk it out
After learning something new, Iβd explain it to the LLM like I was teaching it.
Itβs like rubber duck debuggingβwith answers.
I reinforced what I knew and found out what I didnβt.
π Tip 1 β Rephrase it yourself
Instead of asking for an explanation, Iβd rewrite the code in my own words.
On lazy days, I wanted a shortcut. But forcing myself to retype a snippet as I understood it helped more.
By the end, I often realized I got itβI just needed affirmation.
3 ways I used LLMs to actually learn Swift - A threadπ§΅
Who isnβt using AI to learn these days?
But itβs not just about shortcutsβitβs about learning smarter.
Hereβs how I used LLMs as a beginner π
LLMs have a wide range of applications and its reliability varies depending on the field and use case. Iβm happy that you can successfully make stuff work in your businessπ
04.08.2025 14:55 β π 0 π 0 π¬ 1 π 0Donβt worry, itβs not going on a physical shelf, though youβre half right, which is about as accurate as an LLM. A ~50% error rate wouldnβt fly in any classroom, would it?
04.08.2025 08:19 β π 0 π 0 π¬ 1 π 0Thanks for reading.
More info soon!
I soon finish writing a Swift book with @tiborbodecs.bsky.social for absolute beginners β the kind I wish existed when I started.
03.08.2025 20:31 β π 0 π 0 π¬ 2 π 0I left the corporate comfort to teach myself coding β Along the way, I realized how few truly beginner-friendly resources exist.
03.08.2025 20:30 β π 0 π 0 π¬ 1 π 0After years in UX, I realized I wanted to build more than screens β I wanted to build things.
03.08.2025 20:30 β π 0 π 0 π¬ 1 π 0Hello, World!π A thread π§΅
03.08.2025 20:29 β π 1 π 1 π¬ 1 π 0