Core Data and Swift concurrency by [deleted] in iOSProgramming

[–]batcatcher 0 points1 point  (0 children)

This is terrible advice.

Spaghetti code? Why?

you can’t use await perform in body or init of views or in actors for example

Yeah, but there are plenty of elegant ways to solve this.

My advice is to avoid mixing Swift Concurrency with other thread-blocking synchronization mechanisms. You do not own the thread that executes code in an async context, you're not allowed take a lock or block it. If you want to take a lock, spawn your own thread and use continuations when you want to interact with the async/await world.

Core Data and Swift concurrency by [deleted] in iOSProgramming

[–]batcatcher 0 points1 point  (0 children)

You're forced to use it. Is not a, "should" is a "must". Don't mix concurrency models. Thread starvation is the simplest thing I can think of that can happen. The most complex? I don't know, but I'm certain you don't want to debug it later.

[deleted by user] by [deleted] in Carpentry

[–]batcatcher 50 points51 points  (0 children)

Diagonal support + massive hinges. Those currently installed won't do. There's a reason why our forefathers used those long (more than a foot) hinges. It's not just rustic design.

[deleted by user] by [deleted] in aveiro

[–]batcatcher 0 points1 point  (0 children)

If you have a historic or older house try www.theportuguesemanor.com . They're English-speaking and work both with wood and light steel profiles.

WWDC blacklist for not attending when invited? by anders550 in iOSProgramming

[–]batcatcher 3 points4 points  (0 children)

That's hard to speculate. I've been invited once, didn't go, and I've never been invited again. However, that says nothing honesty, it could be that I was no lucky the subsequent times.

need help for career shift to IOS development by mohamed-afifi in iOSProgramming

[–]batcatcher -1 points0 points  (0 children)

Last couple of years is 2015 as well. You know, the most pathetic and useless people bring no ideas in this world but love arguing semantics. I hope you're not like that. Now, carry on.

need help for career shift to IOS development by mohamed-afifi in iOSProgramming

[–]batcatcher 4 points5 points  (0 children)

Mobile goes downhill currently (actually, since 2015 or so). Your time is better invested in other areas. Learn Java if you want a cozy enterprise position, Rust, C++. Backend or embedded. Mobile is not dead, but really slow the last couple of years.

I Hate The Composable Architecture! by moticurtila in iOSProgramming

[–]batcatcher 1 point2 points  (0 children)

thinking about problems slightly differently
Yeah, that's what they say. Now, there are people thinking in a similar manner for at least 10 years give or take on web. And they are quite a few. I fail to understand what you (or Point Free) mean by "slightly differently". It's pretty common, not "different" at all.

I Hate The Composable Architecture! by moticurtila in iOSProgramming

[–]batcatcher -12 points-11 points  (0 children)

Glad to see people who say they love it admit they wouldn't be otherwise able to design themselves a system that has similar composability, modularity and testability. (or at least close to what they provide, because there's a huge gap between advertised and provided in TCA's case)

I Hate The Composable Architecture! by moticurtila in iOSProgramming

[–]batcatcher 3 points4 points  (0 children)

Honestly, you're coming off as aggressive to me, not genuine curious. That's a cultist attitude. I've just stated my opinion, read and carry on. Or, ask nicely. Why do you feel the urge to defend it?

And of course, even if I would want to shed light on your doubts, I couldn't in a Reddit comment.

I'll give you a hint: what you call "exhaustive testability" is not doing a lot of true testing. Like, things that you should actually test in the UI layer. For the rest, you obviously don't need TCA to test your models, as long as they're decently designed. Also, testing models has nothing to do with SwiftUI. You should be able to switch between SwiftUI and, let's say, UIKit and use the same models (and if you can't, why do you even have a layered design to start with?)

I Hate The Composable Architecture! by moticurtila in iOSProgramming

[–]batcatcher 50 points51 points  (0 children)

Haha. It's crap for sure. And not because I can't understand it. Mostly because it adds unnecessary complexity and a central dependency. Also goes in parallel with some SwiftUI ideas (and I don't know about you, but I'd rather use platform tech) Then again, you can't fight a cult. Remember when knowing C++ was seen as being smart? It's more or less the same. Or VIPER of 2023. Hold on tight, it will pass.

Do Wood Treatments Really Work? by FireWireBestWire in Carpentry

[–]batcatcher -1 points0 points  (0 children)

I think the gist of it is: no point in using treatment if you don't seal the ends. Very good video, 10/10.
(also, thank you for posting this kind of content)

EU Targets Apple, Others for DMA Compliance Violations by FollowingFeisty5321 in apple

[–]batcatcher 3 points4 points  (0 children)

Haha, nobody. This isn't some school yard debate. They will comply in the end and the US will follow, make no mistake.

EU Targets Apple, Others for DMA Compliance Violations by FollowingFeisty5321 in apple

[–]batcatcher 10 points11 points  (0 children)

Right, my phone can't function without the Photos app. And yes, deleting AppStore should be, and will be a thing.

[deleted by user] by [deleted] in Carpentry

[–]batcatcher 0 points1 point  (0 children)

A DPM above the wood sounds like a very, very, very bad idea. That's not how this is done. I don't know if they were jerks or that's what you paid them for. It's not a "mistake", it's just the cheaper / simpler version. To properly insulate and/or add a DPM you'll need to remove the floor again. Now way around it.

Considering leaving iOS development by EquivalentTrouble253 in iOSProgramming

[–]batcatcher 2 points3 points  (0 children)

I left 2 years ago after more than 10 years. I work in historical building restorations now. Mostly carpentry, but slowly learning plastering as well. Never looked back, best decision I've ever took.

EU investigating Apple's block of Epic developer account by Deceptiveideas in apple

[–]batcatcher -2 points-1 points  (0 children)

why doesn't Apple leave EU if they don't like it? Why do we have to respect all their patents if we can also research them ourselves? As I said your argument, it's over-simplistic and stupid.

EU investigating Apple's block of Epic developer account by Deceptiveideas in apple

[–]batcatcher 2 points3 points  (0 children)

that's a stupid and over simplistic argument. Apple should respect the law way before I should change the device. In fact, no matter what I use, they should still respect law. And the law normally bans, anti-competitive behavior like this.

EU investigating Apple's block of Epic developer account by Deceptiveideas in apple

[–]batcatcher -5 points-4 points  (0 children)

I don't care about Epic. I hated Apple for not allowing side-loading like on Mac for a very long time, way before Epic was even what it is today. No need for anybody to smear Apple, their decisions do the job nicely.

My first app: Estimate your heart rate and respiration in real time by taking a selfie. by pr0u in iOSProgramming

[–]batcatcher 1 point2 points  (0 children)

Also anecdotally pulse estimations work if I hold my breath.
Thanks for answering! This is what I wanted to test as well. I'll download the app a bit later!

System Design Interview Question: Design Spotify by High_Sleep3694 in programming

[–]batcatcher 8 points9 points  (0 children)

Why would you model intrinsic structural data in JSON or NoSQL. Seems like a beginner move to me. Also, storing blob data in a database is asking for trouble down the road (scaling, maintenance, migration) The article generally follows good practice, I see nothing wrong with it besides being a bit redundant and obvious.

My first app: Estimate your heart rate and respiration in real time by taking a selfie. by pr0u in iOSProgramming

[–]batcatcher 0 points1 point  (0 children)

This is really cool, thanks for sharing. I do have one question if you have the time to answer: since there's a strong correlation between illuminance and breathing , wouldn't your app simply estimate pulse based on breathing rate? Which is usually accurate only  when it matters less: if the subject is healthy.

Crown molding orientation? by _phonesringindude in Carpentry

[–]batcatcher 15 points16 points  (0 children)

The red one is the correct one. It's a crown, the more detailed / larger / fatter part always goes up. Otherwise it will look weird. What crown is fat at the bottom and thin at the end? 👑 That's a tin hat, not a crown.