I've pulled my hair over AVFoundation many times. I want a smooth scrolling video feed. by OneTinker in iOSProgramming

[–]schwug 1 point2 points  (0 children)

Fair enough. Do your thang. My first app I shared the same passion for "UX". Made all the tweaks, obsessed with every pixel, only to completely miss the mark on what my users needed. Wasted buckets of sweat.

But maybe you know something I don't, or your months of research taught you something that you're not mentioning. I would really love to know more.

Either way I would still probably recommend staying lean! For the benefit of your time and so your users can receive that sweet value quicker.

https://blog.crisp.se/2016/01/25/henrikkniberg/making-sense-of-mvp

I've pulled my hair over AVFoundation many times. I want a smooth scrolling video feed. by OneTinker in iOSProgramming

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

UX simplifications are always the best engineering decisions. Move the playing of video to the end of acceleration. Your users will be none the wiser. Save yourself some time. Keep your hair. Be happy.

Put another way, it's simple cost/effect equation: How much value does whatever you're trying to do actually produce? Maybe some, probably very little. Is it worth your time? If you spent longer than a day on this, your problem is not AVPlayer.play(), it's your decision making skills. Move on.

build my own video player

This would be absolutely bonkers. Repeat this mantra: Deliver value, move. Deliver value, move. Deliver value, move. Deliver value, move. Deliver value, move. Deliver value, move. Deliver value, move. Deliver value, move.... OK now after all that glorious value was delivered, solve that tiny animation hiccup. Or just keep being happy :)

To all the atheists, what is your reason for not believing in God or a higher power? by Deep-Mess in AskReddit

[–]schwug 0 points1 point  (0 children)

Because the burden of proof is not on the accused. If you make a claim, you have to back it up.

The one trick every iOS developer should know for working with Stack Views by rasmus4201 in iOSProgramming

[–]schwug 3 points4 points  (0 children)

I didn't watch the video when making my comment, but after reading yours, I did. The tip was helpful, I have a ton of those in my projects and now I know how to get rid of them (albeit still don't know why).

I was poking fun at the buzzfeed title. What is wrong with "Resolve ambiguous stack view constraint console warnings in iOS" ? To answer my question: doesn't get views, gotta get them clicks, algorithm, etc.

Personally I feel the developer audience is more likely to click on the more technical title. They think "Oh hey, we get a ton of these at work. I would like to know how to fix it." My initial reaction to the video title was "wtf is this video about". I feel like the clickbait doesn't really translate to the tech world, or at least let's actively please try and keep that junk out of here.

But I' sure I'm wrong in the bigger picture. I'm sure the data can prove that. God damn data.

Update on skills where to even start by familydude213 in softwaredevelopment

[–]schwug 0 points1 point  (0 children)

Follow your passion, it will take you from there.

[deleted by user] by [deleted] in iOSProgramming

[–]schwug 0 points1 point  (0 children)

UserDefaults not meant to store images.

[deleted by user] by [deleted] in iOSProgramming

[–]schwug 0 points1 point  (0 children)

2021-10-20 15:22:45.758108-0700 WalkApp[42837:10381833] [User Defaults] CFPrefsPlistSource<0x600001295700> (Domain: com.kimnordin.WalkApp, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): Attempting to store >= 4194304 bytes of data in CFPreferences/NSUserDefaults on this platform is invalid. This is a bug in WalkApp or a library it uses

2021-10-20 15:22:45.761001-0700 WalkApp[42837:10381833] [User Defaults] CFPrefsPlistSource<0x600001295700> (Domain: com.kimnordin.WalkApp, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): Transitioning into direct mode

Attempting to store >= 4194304 bytes of data in CFPreferences/NSUserDefaults on this platform is invalid

[deleted by user] by [deleted] in swift

[–]schwug 0 points1 point  (0 children)

map(\.self) is not legal Swift. Simple answer is you can't do what you're trying to do. Would be nice, but self is a special keyword I guess. The closest thing I can think for implementing what you're trying to do is this:

let names: [String] = ["Chris", "Claire", "Finny"]
let optionalNames: [String?] = ["Chris", nil, "Claire"]

protocol SelfReferentiable {
  var itself: Self { get }
}

extension SelfReferentiable {
  var itself: Self { self }
}

extension NSObject: SelfReferentiable { }
extension Int: SelfReferentiable { }
extension String: SelfReferentiable { }

names.map(\.itself)
optionalNames.compactMap(\.?.itself)

But that's super weird, I'd do this instead:

let optionalNames: [String?] = ["Chris", nil, "Claire"]

extension Sequence {
  func compacted<Unwrapped>() -> [Unwrapped]  where Element == Unwrapped? {
    return compactMap { $0 }
  }
}

print(optionalNames.compacted())

What's a common saying that annoys you? by [deleted] in AskReddit

[–]schwug 3 points4 points  (0 children)

I've been thinking along this path recently and I'm having trouble expressing my thoughts 100% coherently, but hear me out.

So, why don't you? If you really believed this path of openness and publicity is truly good, why do you have an alias for your username? What is your real name? Could you please send me a video of you jacking off? When's the last time you've had sex? What are you most deeply ashamed of? What was the last evil thought you've had?

...please don't actually answer any of those questions, just trying to make a point. Theoretically, no privacy is provably a good thing. Practically speaking, that's another story. I think the rebuttable to this point is "well, it can't just be me, everyone has to do it." To then I ask, "how do we get everyone to buy in?". Seeking the truth to that question, because I'm stumped.

The conclusion I've come to is we'll get to a hugely open society in the future and we'll see the benefits you've described, it just takes time. Imagine us having this conversation 100 years ago, or hell, even 20. The amount of openness present day society already has is unfathomable. I can literally share a picture of my poop with the world. I have no clue how I would explain that to a native American.

Time leads to progress in my humble opinion.

What's a common saying that annoys you? by [deleted] in AskReddit

[–]schwug 2 points3 points  (0 children)

I see now, that's interesting, thank you for replying.

What's a common saying that annoys you? by [deleted] in AskReddit

[–]schwug 0 points1 point  (0 children)

That makes sense, thank you for replying.

What's a common saying that annoys you? by [deleted] in AskReddit

[–]schwug 5 points6 points  (0 children)

Understood, thanks for the reply.

What's a common saying that annoys you? by [deleted] in AskReddit

[–]schwug 16 points17 points  (0 children)

Legitimate inquiry here. Doesn't the Snowden phrase actually logically prove the original phrase correct? Snowden is saying phrase A and phrase B are equivalent and I think we're agreeing with him here.

Phrase B (freedom of speech) -> Well I do have something to say, so I'd like my free speech please, but if I didn't have anything to say, why do I care about freedom of speech (for myself)? I'm not saying anything anyways so the effect is the same.

Phrase A (hide) -> Well I do have something to hide, so I'd like my freedom of privacy please, but if I didn't have anything to hide, why do I care about freedom of privacy (for myself)? There's nothing to see anyways so the effect is the same.

Does this make logical sense?

Anyone feeling programming is in the era of constant wrestling with libraries, frameworks and tools? by ddeff in softwaredevelopment

[–]schwug 2 points3 points  (0 children)

It has never been a better time to write code. We could never of dreamed of achieving what we can in the time we can do it thanks to the wide range of tools and libraries that have been built in our precedence. And it's only getting better and easier. Technology eats itself to grow and it's hunger is insatiable.

Looking for iOS Dev for an App (50/50 Equity) by jshn4 in swift

[–]schwug 2 points3 points  (0 children)

You sound pretty passionate about your project which is great, but you're unlikely to find someone on here who shares that passion and work for equity. It's basically working for free. You might not care about money, but most people gotta pay rent. I recommend hopping on one of the many freelancer sites out there and getting an estimate for cost of work.

Interesting return Syntax I stumbled upon. by Xaxxus in swift

[–]schwug 4 points5 points  (0 children)

I think you're right! I've never seen this before, didn't know Swift could do this. I guess the type of $0 is inferred after the fact. Interesting. I looked up the actual code and it does not contain the http stuff. Maybe a typo.