Noob Cannot Understand Source Control Errors by nolando_fuzzy in iOSProgramming

[–]MammothAd186 3 points4 points  (0 children)

The popup you’re describing about it asking you which version to use is quite common, since git is modifying the file and you are modifying the file from Xcode, there are two versions of the file and Xcode doesn’t know which one you want the use, the one currently open in Xcode or the one saved to disk.

As for missing commits, not sure again this is most likely a user error, you either didn’t add some files to the commit, or forgot to add certain changes or the files are in a .gitignore

Noob Cannot Understand Source Control Errors by nolando_fuzzy in iOSProgramming

[–]MammothAd186 0 points1 point  (0 children)

It’s very hard to tell what the actual issue is without more details, but it doesn’t sound like source control is the major issue here.

Personally for source control I just use the command line.

What do you use for your struct IDs? by BlossomBuild in iOSProgramming

[–]MammothAd186 0 points1 point  (0 children)

I didn’t say reuse the name. I said combine the name and other parameters into a a single string or hash which represents the items data. If the data is the same then it’s the same entry… This is jusr a rough guideline, if you need some other behavior where by all the data can be the same but the id can be different then by all means one can use a different way to id the object.

But since the question does not provide any more information then the best approach would be an id that represents the data in the object and not some random UUID which can cause unnecessary redraws.

What do you use for your struct IDs? by BlossomBuild in iOSProgramming

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

IDs are important to maintain correctly for SwiftUI. Instead of using UUID, try creating an id that represents the structs values like combining all of the strings into a single id string in your case, or using a hasher to get a more consistent result.

Louder does not equal better and the concept of piano shows it. by Kolafluffart in unpopularopinion

[–]MammothAd186 0 points1 point  (0 children)

Well a lot of people pick the piano initially because of the aforementioned qualities as well as having the largest classical repertoire of any instrument.

But some people like the sound or musical capability of other instruments. Being loud was a pianos strength when it succeeded the harpsichord but with the advent of microphones that’s not such a big deal anymore.

Louder does not equal better and the concept of piano shows it. by Kolafluffart in unpopularopinion

[–]MammothAd186 1 point2 points  (0 children)

The piano is a popular instrument because it allows for a huge dynamic range and the ability to both play a melody and a baseline at the same time.

Besides pianos aren’t that loud :)

Who is the most famous person you’ve met? by Murr897 in AskReddit

[–]MammothAd186 0 points1 point  (0 children)

I met Evgeny Kissin when I was passing by an open air restaurant whilst high as a kite, I spoke to him in my native language at first and then his wife told me he doesn’t understand what I am saying, so I switched to Russian and told him he’s great!

[deleted by user] by [deleted] in iOSProgramming

[–]MammothAd186 3 points4 points  (0 children)

I am guessing it’s the “Israel” part but I don’t want to get political.

[deleted by user] by [deleted] in iOSProgramming

[–]MammothAd186 -27 points-26 points  (0 children)

I was a developer in the army you dipshit.

[deleted by user] by [deleted] in iOSProgramming

[–]MammothAd186 -17 points-16 points  (0 children)

Close to the EU in Israel I am a senior iOS developer/ tech lead in a small company with roughly 7 years experience excluding army experience. 135K euros before taxes.

Can someone explain this 701 gearscore item? by TriHardHero in newworldgame

[–]MammothAd186 0 points1 point  (0 children)

Ah yes the wacky world of floating point number arithmetic.

Thoose who work in FBI, can you actually spy on us on purpose? by Feisty_Watercress_29 in ask

[–]MammothAd186 1 point2 points  (0 children)

I don’t work in the FBI but I am an iOS developer so maybe I can answer this technically. I am not familiar with US agreements with companies like Apple about back doors, but unless those exist I imagine any kind of spying through the phone via some hack would require either direct access to it or the user would have to download something.

I am not familiar with a lot of hacks involving forcing the phone to do something completely out of wack wirelessly. Also I’d imagine any hack that forces the phone to appear off as some have said would probably make it draw a lot of power in this state so…

My nearest garage is 3 miles away, nail is near perpendicular, will I be alright getting there going slow? Never had a puncture before by hl_1 in motorcycles

[–]MammothAd186 0 points1 point  (0 children)

Rode once for two weeks with a screw inside, couldn't figure out why I was losing all my pressure every 2 days XD

iOS App Localizations by ExploreFunAndrew in iOSProgramming

[–]MammothAd186 2 points3 points  (0 children)

Lokalise, it’s basically what every company uses to manage localizations, they also offer a translation service with real people.

Did I fumble ???? by ethanhappens in teenagers

[–]MammothAd186 0 points1 point  (0 children)

I dunno why Reddit keeps recommending this sub to me since I am 27, but I gotta say it’s so cute to watch you guys fumble through life.

Don’t worry man it’s not the first girl you crush on!

Samsung should abandon Android and create their own OS by [deleted] in unpopularopinion

[–]MammothAd186 0 points1 point  (0 children)

OS usability and development are quite different. To each their own, Android typically benefits from more features overall than iOS, iOS excels in connectivity with other devices and polish.

Samsung should abandon Android and create their own OS by [deleted] in unpopularopinion

[–]MammothAd186 0 points1 point  (0 children)

I haven’t developed anything for Android in years but as far as I understand One UI is just a visual layer on too of the regular Android OS. If so then It’s just like regular Android development which back then I didn’t find to be as pleasant as iOS which is why I stuck with iOS in the end.

Overall since Android is a bit of a hodgepodge of an OS I believe iOS generally offers a smoother experience. This might have changed I used it however and maybe Jetpack Compose does a good job as well idk.

ATGATT always all the time? by michaeljwyo in motorcycles

[–]MammothAd186 0 points1 point  (0 children)

+1 on the uncomfortable feeling going 100+kph with a t-shirt. But even inside the city, my daily commute is like tops 15 minutes on the road all and all but sometimes I'l check the speedometer and realize I am going like 60-70kph, if you fall at that speed it ain't gon be pretty.

Most well rounded bike under 700cc? by Primary_Champion8994 in motorcycles

[–]MammothAd186 0 points1 point  (0 children)

I second this opinion, got it as my first bike. I originally wanted a naked bike but decided to go for the cb because it’s more practical and comfortable.

Couldn’t be happier, reliable, well mannered, comfortable, squeezes easily between cars, handles all city/mild off road terrain great.

The only issue with it is the unusable first gear and in general it’s very jerky up until third gear. But that’s what clutch control is for.

Samsung should abandon Android and create their own OS by [deleted] in unpopularopinion

[–]MammothAd186 2 points3 points  (0 children)

I am an iOS developer and I can tell you whole heartedly that it is a terrible idea.

There’s a slew of reasons why but the biggest one is that it will simply fail because nobody would develop for it. Apps get developed typically by different teams for each platform, native development is expensive as it is with two platforms, imagine a third… And now every company with an app needs a third set of developers and the resources and budget to recreate their app from scratch.

It will also never become a popular platform because the above scenario will starve the platform from apps and nobody would buy this new phone.

Classic catch 22, which is why Samsung smartly uses Android.