StemFox IO

132 posts

StemFox IO banner
StemFox IO

StemFox IO

@StemFoxIO

iOS since 2011. 6 kids, one wife. Life is good!

Provo, UT Katılım Nisan 2022
92 Takip Edilen19 Takipçiler
StemFox IO
StemFox IO@StemFoxIO·
@azamsharp One of my favorite examples of this was in a personal project. I'd been working with Claude at changing some behavior. Was reviewing the code and noticed 4 variables with similar names. I re-prompted asking if they were all necessary (I knew it could be done with one). 🙄
English
1
0
0
45
Mohammad Azam
Mohammad Azam@azamsharp·
I think developers need to ride out this AI wave. Eventually companies will realize that most code generated by AI is not that great and even though it works, it is hard to maintain and 10X in size.
English
4
1
19
1.4K
StemFox IO
StemFox IO@StemFoxIO·
@azamsharp This makes a certain amount of sense. Good system design is a top tier skill. Few really posses it. There for, there would be much less training data on it.
English
0
0
0
23
Mohammad Azam
Mohammad Azam@azamsharp·
I have reached the conclusion that AI is pretty bad at the overall system design. It does not understand the context of the code in the grand scheme of the application. This is why I am still writing code by hand and using AI for reference and some grunt work. PS: I like typing code manually too :)
English
2
1
5
745
StemFox IO
StemFox IO@StemFoxIO·
@dhh I love this. I remember when I started college (2003). I first had a PC, but found setting up the dev environment unpleasant. Then I got a mac and loved how easy it was.
English
0
0
1
2.5K
DHH
DHH@dhh·
We can just decide that our world should be different. That modern JavaScript can be made with #nobuild. That SaaS services can move out of the cloud. That Apple is not the end of history.
English
99
126
2.3K
213.3K
StemFox IO
StemFox IO@StemFoxIO·
The one question that answers every case: "Does the caller decide, or does the type decide?" Caller → <T> Type → associatedtype Both → combine them Full breakdown with a Scientific Instruments example + playground code: youtu.be/FfwKXOhRn7Y
YouTube video
YouTube
English
0
0
0
4
StemFox IO
StemFox IO@StemFoxIO·
Same concept. Different decider. struct Cache<T> ← caller decides T protocol Cache { ← conformer decides Item associatedtype Item } Both parameterize by type. The only difference is who makes the call.
English
1
0
0
10
StemFox IO
StemFox IO@StemFoxIO·
Swift won't let you write this: protocol Cache<T> { ... } Compiler says: "Protocols do not allow generic parameters; use associated types instead." Here's why: Generics are for CALLERS. Associated types are for IMPLEMENTERS. Same variable. Different decider.
English
1
0
1
12
StemFox IO
StemFox IO@StemFoxIO·
It would really be nice if SwiftUI environment variables would update with any regularity.
English
0
0
0
13
StemFox IO
StemFox IO@StemFoxIO·
@azamsharp And the audio clicking…. Killing that process over and over.
English
0
0
1
30
Mohammad Azam
Mohammad Azam@azamsharp·
I hate macOS Tahoe!! So many issues. Mac Mini goes to sleep and never wakes up. Everything has become super laggy. Absolute garbage OS!!
English
13
0
51
6.5K
StemFox IO
StemFox IO@StemFoxIO·
One of the fun parts of SwiftUI is the wide variety of implementation choices.
English
0
0
0
16
StemFox IO
StemFox IO@StemFoxIO·
I feel like SwiftUIs Divider should have some way of adjusting its height. Alas, that does not seem to be the case.
English
0
0
0
18
StemFox IO
StemFox IO@StemFoxIO·
Went to learn some cool Swift for-loop tricks? Checkout my new video. 3 Loop Tricks Every Coder Should Know! (Plus a bonus!) youtu.be/libDQGE3Ft4
YouTube video
YouTube
English
0
0
2
131
StemFox IO
StemFox IO@StemFoxIO·
Interested in expanding your Swift For Loop skills? Checkout this video for some neat tricks! (And thanks to @natpanferova for her excellent tips in her Swift Gems book!) youtu.be/libDQGE3Ft4
YouTube video
YouTube
English
0
1
3
1.7K
Mohammad Azam
Mohammad Azam@azamsharp·
Just wrapped up another chapter for my SwiftUI Architecture book.
English
1
0
8
967
StemFox IO
StemFox IO@StemFoxIO·
TIL you can test screen zoom levels in the simulator via the Settings app (Settings -> Developer -> Display Zoom). It's normal in Settings -> Brightness & Display. @rocketsim_app any chance to get this as a feature?
English
1
0
1
22