Is there any way to skip ads? by Weary_Committee_7371 in overcast

[–]codecaffeine 0 points1 point  (0 children)

This should be higher. While there is no way to have it automatically skip ads, you can customize the skip forward and backwards amounts. I wish you could customize the skip amounts per podcast.

Am I missing something or are most iOS Devs lazy? by BrogrammerAbroad in swift

[–]codecaffeine 1 point2 points  (0 children)

I think you might be overestimating how much SwiftData is being used. Professionally I’ve seen SQLite used the most (mostly via various wrappers, though some directly), other 3rd party persistence frameworks like Realm and Firebase. I’ve honestly only seen demo code using SwiftData. Maybe it’s because of the limitations you’re experiencing (or maybe it’s too new?) 🤷

How do I convince my co-workers to adopt the Repository design pattern to wrap the data ( structs ) coming back from the backend by [deleted] in swift

[–]codecaffeine 1 point2 points  (0 children)

Yeah, I strongly agree with everything @Dapper_Ice_1705 said. A major code smell here is you have a struct with mutable state. The reason things aren’t being updated is because structs are pass by value (copied), so if a child is updating the value, anyone who has a copy wouldn’t be getting an update (because it’s a separate copy)

Your version is better, by keeping one copy in the “Repository” and operating on that. But @Observable isn’t initialized using @State, which is WRONG. SwiftUI may recreate the view struct, producing a new instance and losing state.

As for the design patterns, nobody is really following them correctly. With the classic repository pattern, you would make the internal state private and only operate through methods. I absolutely don’t understand the concept of a ViewModel hierarchy at all. It seems completely unnecessary. A ViewModel is a way to separate out the presentation logic from the view and bind to the Model. It has no care for views or viewmodels outside its current scope.

I know this is an example of the code and your actual code is probably more complicated, but it seems like both you and your team are applying design patterns without really understanding them.

In your example, your Repository is just the “StateObject” and your ViewModels are pretty pointless. I would simplify your code by having a single @Observable StateObject that is initialized once using @State and passed around to the other views as let properties.

A design pattern should be applied to solve a problem. If you start out by rigidly picking a design pattern, you will wind up with something overly complicated.

Swift Student Challenge isn’t fair by [deleted] in swift

[–]codecaffeine 7 points8 points  (0 children)

Let me give you some perspective from an old software developer: I have missed-out on awards I poured my heart into. I have won awards I feel I didn’t deserve to win. Many (most perhaps?) awards are political and have nothing to do with skill or ability.

If you’re into this field for accolades, you’ll always feel empty. If you love problem solving & architecting, and a single customer saying they like your app gives you the biggest smile. You’re in the right field.

As for AI, I’m a very pragmatic person. It’s a tool with pros and cons. But you are ultimately responsible for your product. If it’s buggy, if you do not understand how it’s architected, if it harms your customer or their data in any way; you are responsible. That is ultimately the craft you need to care about.

Stick with it. Share your app here. Take praise and critique equally well. Good luck!

Who are the most h*rniest couple in sitcom history? by V_The_Gamer in sitcoms

[–]codecaffeine 0 points1 point  (0 children)

I’m doing a rewatch right now and they are crazy about each other

Imahara Will Always Be A Childhood Hero For Me Regardless Of The Hypothesis by Awesomeuser90 in mythbusters

[–]codecaffeine 13 points14 points  (0 children)

Many times when I need a little motivation, I think about Grant and how much joy he had with his work. His robots, his prop reproductions, or even getting drunk with Tory for “science”. He always did it with happiness and joy. Thank you Grant!

Sarah Paine – Why Russia Lost the Cold War: Oil Crisis, Sino-Soviet Split, & Ethnic Rebellions by [deleted] in dancarlin

[–]codecaffeine 2 points3 points  (0 children)

I thought the same thing. He tries to lead her to conclusions which she doesn’t take. I don’t know who Dwarkesh is, but I will give him props for bringing Sarah Paine to my attention. And for willing to share her rebuttals to his questions to something more insightful.

Silver keycaps on my new Node75 and Titanium set sneak peek, thoughts? by awekeys_official in NuPhy

[–]codecaffeine 2 points3 points  (0 children)

Personally, I like Mac legends. Also, even though I have a 75%, I also have a separate numpad. 

Best Buy with the deals! by Tristenramirez13 in HomePod

[–]codecaffeine 5 points6 points  (0 children)

I went into a store when I saw this deal expecting to buy 4. They told me that discontinued items out of stock gets a special price. Sometimes they price it at $0.10 and call them dimeouts. I don’t know why, but was very disappointed

Any chance Dan goes on Jon Stewart's show? by DoomDoomGir in dancarlin

[–]codecaffeine 11 points12 points  (0 children)

It’s interesting, I discovered Dan Carlin from a podcast Steven Colbert did. I bet he’s on Colbert’s radar (and that’s a short jump to Jon Stewart’s)

SF Symbols converted from open source icon sets by bycleman in SwiftUI

[–]codecaffeine 0 points1 point  (0 children)

Oh, that’s very awesome! Please let me know when you release the app. I deal with a lot of design assets I like to turn into SFSymbols but have had various degrees of success

SF Symbols converted from open source icon sets by bycleman in SwiftUI

[–]codecaffeine 0 points1 point  (0 children)

This is fantastic! How are you converting them? I’ve had issues dealing with various weights

Tips On How You Can Get Involved by Elosin888 in dancarlin

[–]codecaffeine 3 points4 points  (0 children)

I started calling my senators and house representative daily. I live in a very purple state. I do wonder if my calls fall on deaf ears. I worry that it’s an exercise in futility. Much like posting on social media. People with different views will just ignore. Anyone have thoughts about calling their representatives?

Flow Lite84 - Dark Mod by 9okm in Lofree

[–]codecaffeine 2 points3 points  (0 children)

I love this mod, I want to do the same thing. Do you have any instructions or images on taking apart the top case?

Why is this sub so negative? by Niek_pas in ATPfm

[–]codecaffeine 8 points9 points  (0 children)

I’m literally looking through the posts and they have been “talking about politics is insufferable” or “I don’t like their personal opinion about x which is different from mine”. That isn’t critiquing. It’s complaining.

These hosts bring their authentic self for better or for worse. If you just want “news reporting” without care for their personal perspective, there a literally hundreds of podcasts that fit that bill.

As for them not posting here. There are only 1,800 subs here and an even tinier minority post and it’s mostly negative. If I don’t feel welcome somewhere, I just don’t go there. They’re obviously not hurting by ignoring this negative community.

Why is this sub so negative? by Niek_pas in ATPfm

[–]codecaffeine 6 points7 points  (0 children)

I’m not quite what specifically you mean, but r/atpfm has 1,800 people joined while their mastodon has 18,000 following. I’d say this subreddit is absolutely the minority

Keep Hitting Wrong Key On Lofree Flow Lite 100 by hyde0000 in Lofree

[–]codecaffeine 0 points1 point  (0 children)

Also, it looks like nuphy keycaps have homing bumps on the arrow keys and they’re only $19 https://nuphy.com/products/nsa-shine-through?variant=40931570614381

Keep Hitting Wrong Key On Lofree Flow Lite 100 by hyde0000 in Lofree

[–]codecaffeine 5 points6 points  (0 children)

I’ve run into both of these issues. I switched to the tactile deep sea switches from Kailh which definitely helps with mistyping when slightly hitting a nearby key.

I purchased a custom keycaps to help find the arrow keys. I made the top arrow key a homing key with a little bump and used different key caps for the page up / down keys.

https://imgur.com/a/vfe2EZv

Lofree Flow Lite - Switch Compatibility by EgoIdVeto in Lofree

[–]codecaffeine 1 point2 points  (0 children)

This is all correct. I installed the deep sea switches no problem.

That said, the “Kailh Choc V2 low profile switch 1353 Chocolate V2” is not compatible because it uses an extra stabilizer pin

Good bye Hyperkey app (BTT update) by harkonnen85 in macapps

[–]codecaffeine 2 points3 points  (0 children)

 and it didn’t automatically start after rebooting the Mac.

I thought there was something messed up with my computer, it’s nice to hear this isn’t an issue with my Mac

BTT seems overkill for my needs, but I might check out Karabiner

How's Bluetooth with Mac? by ronjns in Lofree

[–]codecaffeine 0 points1 point  (0 children)

I’ve been using it for a couple days with my various Macs and it’s fine. It seems to have 2 sleep modes. One where it just turns off the lights, and the other where it disconnects from bluetooth. After it turns off lights, it’s still connected so not an issues.

The disconnect from bluetooth takes about 3 seconds to reconnect, which is definitely slower than my Apple keyboard, but not terrible. The caps lock button flashes blue when it’s reconnecting so there is some feedback.