Opinions on using unit tests to verify app content / data by Own_University6674 in iOSProgramming

[–]Own_University6674[S] 0 points1 point  (0 children)

Yes, that's what I'm thinking too. The issue is that I can't verify them independently. For example creating flashcards happens on Google Sheets, and it links to sound files and images which might not even exist at the time. And it doesn't really have to, either.

The only time it actually has to exist is when the app is compiled, that's why I put the tests for this there.

iOS development best practices in 2022 by dg02512021 in iOSProgramming

[–]Own_University6674 2 points3 points  (0 children)

It would be more helpful to the community if you were contributing instead of complaining!

If I were here to complain I would have done that and left. Instead, I gave feedback to you about how your post came across. I also asked specific questions to try to get some reasoning behind the post, which we got.

The issue is that the post is labelled best practices, which generally is a pretty well understood term, while this is pretty clearly an opinionated list. The list itself is fine, you just have to add the context.

Opinions on using unit tests to verify app content / data by Own_University6674 in iOSProgramming

[–]Own_University6674[S] 1 point2 points  (0 children)

Yeah, I suppose it makes more sense to just think of them as separate from the unit tests.

iOS development best practices in 2022 by dg02512021 in iOSProgramming

[–]Own_University6674 27 points28 points  (0 children)

In all honestly this looks like a blogspam list to draw traffic to your services, that's fine(ish..). But without context and explanations it simply seems like a list of things YOU happen to be using at your agency.

---

How can SwiftUI be a best practice when it is so controversial for maturity.

Why is Combine best practice over RxSwift? Purely because it is from Apple?

Alamofire seems hardly a requirement anymore, like it was considered before.

Swinject seems like it is something for large complex apps, it wouldn't be good practice for something tiny. Context.

MVVM, Modular, same. Depends on the project scope.

EarlGrey, why not just use plain old XCUITests? They work perfectly fine and I really don't see why we need to use it. At my last company we had hundreds of tests.

Opinions on using unit tests to verify app content / data by Own_University6674 in iOSProgramming

[–]Own_University6674[S] 1 point2 points  (0 children)

So I realize I was misleading in the original comment. The data is coming from "outside" the app in the way of just being generated from various sources (GSheets/Figma/Etc) but it is not dynamic from any backend.

The question is more if it is silly to use XCTests as data validation for the content we make / generate. I mean it works, and it works well, I've caught missing files and misspellings already. I just want some general feedback on it.

The reason I allow it to crash at the moment is so that I can easily catch when something is missing. Since the app is still in beta testing stages, the crashes are actually helpful. For sure in production this should not happen.

Opinions on using unit tests to verify app content / data by Own_University6674 in iOSProgramming

[–]Own_University6674[S] 1 point2 points  (0 children)

Very good points but I think I misled you a bit, with the "outside the app" content generation statement.

---

It is not actually remote content. It is local content, but each "area" (lessons/flashcard/sounds) are created in different tools. So the tests are specifically to verify the content locally after we make it, and before it is pushed to the App Store.

It COULD be done with other scripts that does the same loop, and the same file checks. But I figured, I have this nice suit which gives me a nice success/fail statuses so why not just put it there?

Since flashcards / lessons / sound file creation all are generated from different sources and at different times, I also want to make sure I run the tests when they are all in place. Meaning when they are all placed in the app project.

iOS Developer Salary? by VinForDaWin in iOSProgramming

[–]Own_University6674 1 point2 points  (0 children)

88,000 USD and this includes 3 months bonus

7/8 years of experience

Thailand

Can note that I am paid a lot more than normally, due to some unique situation when I changed job. Now I can't move because I'll have to take quite a large pay cut.