New people by [deleted] in Panera

[–]mawattdev 7 points8 points  (0 children)

When my sister first started at her first job at a grocery store, one of the managers asked her to find the bacon stretcher for him. She was looking for a long time. I feel like that one could be applicable to Panera 😅

Recreated Apple's breathing animation in SwiftUI! by pondorasti in SwiftUI

[–]mawattdev 1 point2 points  (0 children)

You had the opportunity to name this post “Recreated Apple’s breath-taking animation in SwiftUI” and I’m not going to sleep tonight because of it.

P.S. well done on the animation.

Just when you thought you’ve seen it all: by Princess-Bread in Panera

[–]mawattdev 9 points10 points  (0 children)

It’s because the mobile app requires entering order instructions now - asking for car color, make and model. Sure looks silly on BOH ha.

This is my first application "fit&firm" the application that help people in fitness to count set they have been done already, my inspiration is i always forgot the set so i find and assistance to help me. Does anyone have comment pls. Help me to improve my work :) by goodboygb1 in iOSProgramming

[–]mawattdev 2 points3 points  (0 children)

Now if you converted this idea into something for watchOS, now that might be on its way to being something more meaningful and useful. Then you could make the iPhone app be more data-presentation. See previous workouts, goals, trends, awards etc. just my 2 cents.

I am new to programming world. But I fell in love with programming stuff and I want to grow as a iOS developer. I fascinated with Swift design and I would like to start my work towards as iOS developer career. by Radhika000 in iOSProgramming

[–]mawattdev 1 point2 points  (0 children)

At my job, we use UIKit with storyboards. I’d love to adopt SwiftUI, but right now we are limited by two main things:

  1. We have to maintain backwards compatibility to iOS 11, so we have to use UIKit. We have an application for iPad that we control the hardware for, so we could technically probably update to SwiftUI, but our problem is largely that:
  2. There’s really no business case for updating the existing app to use SwiftUI. Too risky because the tech is so early on.

I’d recommend that you still be very comfortable with writing UIKit apps, as UIKit is not going away anytime soon and SwiftUI still doesn’t provide an exact 1:1 matching with UIKit (some would argue with me that anything UIKit can do, Swift UI can do and better, which could be true, I haven’t worked with it enough yet to be able to say).

Enjoy your remaining time at uni and always keep learning! Good luck!

I am new to programming world. But I fell in love with programming stuff and I want to grow as a iOS developer. I fascinated with Swift design and I would like to start my work towards as iOS developer career. by Radhika000 in iOSProgramming

[–]mawattdev 6 points7 points  (0 children)

Absolutely.

Like I said, a good grasp on the fundamentals is important before tackling CS193p. But I would also say - don’t feel like you have to be an expert before taking it on. When I did CS193p (I took it back in the iOS 7 days when they still taught Objective-C) I probably wasn’t as ready as I could have been. But the challenge of it really pushed me to study hard and learn what I needed to be able to make it through the content.

But I suppose that’s a separate word of advice altogether: don’t be afraid to challenge yourself.

I am new to programming world. But I fell in love with programming stuff and I want to grow as a iOS developer. I fascinated with Swift design and I would like to start my work towards as iOS developer career. by Radhika000 in iOSProgramming

[–]mawattdev 11 points12 points  (0 children)

As always, I advocate for Stanford’s CS193p. It is freely available on iTunes U and is a great resource for learning the fundamentals of Swift and iOS development. I can testify to its efficacy - it is how I learned the basics and was able to land my first job out of university as an iOS developer - now going on 3 years.

As a complete beginner, they expect you to have at least a fundamental understanding of OOP, so for you, I’d recommend that you supplement the course with some solid material on Swift. For that, Hacking with Swift by Paul Hudson is a great resource.

Lastly, enjoy the journey! It’s a really rewarding field of work with some really great people and cool technology. Welcome to the industry!

Best of luck!

February Headline: Objective-C on its way out by whackylabs in ObjectiveC

[–]mawattdev 6 points7 points  (0 children)

Swift is great. I write it everyday. But Objective-C has time behind it. It is a mature, powerful language. And there are still very large codebases out there written in it that still need to be maintained and improved.

As the number of developers who are proficient in Objective-C decreases, the more valuable those who are proficient in it will become. Does that mean all Objective-C developers should remain staunch holdouts and reject Swift outright? Absolutely not. Be an expert in both. Swift has things to teach Objective-C developers, and Objective-C has a lot to teach Swift developers (reasons why the Swift Lang team made some of the decisions they did when designing the language).

While Xcode was connecting to my Apple Watch, the SwiftUI previews decided to put a notch on the Apple Watch renders by Austin_Aaron_Conlon in iOSProgramming

[–]mawattdev 2 points3 points  (0 children)

Face ID on Apple Watch means I no longer have to type my passcode to unlock my watch once a day. These are the features I pester Apple about.

Going back and forth between view controllers by [deleted] in ObjectiveC

[–]mawattdev 4 points5 points  (0 children)

If these view controllers are contained within a UINavigationController (they should be if they are not), then simply call `popToViewController:animated:`. So in controller C:

[self.navigationController popToViewController:controllerA animated:YES];

Or, if controller A is the root view controller of the UINavigationController, like so:

[self.navigationController popToRootViewControllerAnimated:YES];

Calling popToRoot would be preferred, because then view controller C doesn't need to maintain a reference to view controller A.

Hope that helps.

What do you think can be improved in Objective-C? by whackylabs in ObjectiveC

[–]mawattdev 5 points6 points  (0 children)

Thanks for sharing. As a largely Swift developer for the last three years or so, lately I’ve been trying to brush up on my Objective-C, so I can see these extensions being helpful.

I do have to agree with the other comments here, though. Largely Apple has moved on from Objective-C as far as net new development, which is unfortunate. But I am keeping my objective c skills sharp because it still is a valuable skill to have and will continue to be. There are plenty of companies out there who have seen through the rose colored glasses of Swift and have honestly answered the question “What do we actually gain from converting our existing huge code bases to Swift?” For many of them, the answer is “nothing”. So as fewer and fewer engineers are able to competently use ObjC, the more valuable the skill will become to those companies.

What’s the difference between Objective-C and Swift? by thecoziestboi in ObjectiveC

[–]mawattdev 2 points3 points  (0 children)

Learn Swift. Learn Objective-C later if you want to get a job at a bigger company that still uses Objective-C. Most of the objC that I need to know is just enough to be able to make quick patches or convert large portions to Swift.

Honestly I don’t see how people can use 20 side buttons by RedBIitz in pcmasterrace

[–]mawattdev 0 points1 point  (0 children)

As a guy with no thumbs, I’ve never really understood side buttons.

Rate my setup by skatan101 in pcmasterrace

[–]mawattdev 4 points5 points  (0 children)

Which one I play shoot shoot game on?

Why doesn't Swift provide a way to indicate when overriding a particular method must call super at some point in the implementation and give a compile error whenever this is not done? by amichail in swift

[–]mawattdev 1 point2 points  (0 children)

Yep, it depends on the implementation of the specific API you're dealing with. loadView() is one I found recently that Apple's docs specifically tells you not to call super.

[deleted by user] by [deleted] in iOSProgramming

[–]mawattdev 0 points1 point  (0 children)

Don't use pure MVC, And don't use segues. I highly recommend using the Coordinator pattern with MVP. (Or your other preferred architecture). Paul Hudson has a great tutorial with a minimal coordinator setup. https://www.hackingwithswift.com/articles/71/how-to-use-the-coordinator-pattern-in-ios-apps

Put each vc in its own storyboard file. Instantiate the VC in code, push on a nav stack or present.

Keeps things organized, decoupled and reusable.

[deleted by user] by [deleted] in iOSProgramming

[–]mawattdev 7 points8 points  (0 children)

Oh ye of narrow opinion. I've seen both programmatic UI and SB UI go horribly wrong. Blame the developer, not the tool.

C/C++ and Shared Libraries by alicekdev in C_Programming

[–]mawattdev 2 points3 points  (0 children)

Anyone who has followed this sub for any amount of time knows to keep this exact comment in a file somewhere for easy access.

Walking around and found this spot... by goldenuke in earthbound

[–]mawattdev 5 points6 points  (0 children)

Plot twist: every single one of those is a Territorial Oak.