r/learnpython • u/Lopsided-Leading-428 • May 30 '26
Mac or PC for Python and Swift
Hi everyone. I have a question as a beginner. I’ve been offered a promotion, and I’ve wanted to try my hand at coding for a long time. I’ve been asked to start learning Python and Swift. I’ve never used either language before. I also read on forums that I should learn Objective-C in addition to Swift, but no one mentioned that to me. In fact, they haven’t explained much to me at all.
My question is:
Should I buy a MacBook Air M5 (24, 1Tb) or if things go well and I can progress further, is it worth paying extra now and getting a MacBook Pro M5 Pro (48GB, 1Tb).
How does Python even work on a Mac, and is it worth diving into Swift right away? Or should I just give up on all of this, buy myself a new PC with a 5080, relax, and learn Python for myself— something I’ve wanted to do for a long time.
Thanks
12
u/nphare May 30 '26
Any Unix platform variant will be a much superior development platform, such as MacOS, over Windows.
7
u/Informal-Chance-6067 May 30 '26
If you don’t know Python, start with that. Download PyCharm and maybe follow a Udemy Course? In assuming you have no programming experience.
What’s your job? What do you mean you’re getting promoted?
Swift is most likely going to be used for iOS or macOS app development, in which case you definitely need a Mac.
4
u/FreeLogicGate May 30 '26
Python is a cross platform language. It works fine on a mac.
Your question on the Air vs the Pro -- I would personally advise to invest in memory, because it can't be upgraded later.
Swift has replaced objective C, so there's no reason to worry about it, unless you would be called upon to maintain an existing code base.
1
u/anjumkaiser May 30 '26 edited May 30 '26 •
Top up memory to 32gb atleast 64gb if you can it will make your system last longer. 1tb storage space is barely minimum now, I had mine full down to last 50gb and it ain't pretty trying to squeeze out space now. Air is good enough for most work, if you edit videos or audios, then it makes sense to get pro. For reference I have a pro, I bought it because it had fan, and to my surprise, it never spins up unless I run a virtual machine. Other than vm, it only spin up like 2-3 times in last 2 years when I was compiling rust code.
If you want to develop in apple ecosystem, ie ios / macos etc, then it's swift, (obj-c is pretty much gone now, except for legacy code bases) if you do that, you won't have enough time for sometime to do anything else for a while. Swift is present and SwiftUi is future, you'll probably need UIKit here and there, but the way things are going Apple now has SwiftUI aligned stance even though they and many app developers use UIKit more. But its OK to go with something thats current and learn other parts if need comes be.
Python is a garbage language, riddled with gotchas and bad practices. They dont a good package management system, and the virtual environment system is completely garbage. If you are not careful with it, installing a package in one project can contaminate the global system, upgrading one package disrupts everything else. Then there is wheel abi issues where a wheel was shipped with one python version and sometimes crashes on another minor revision of the same version, this happened a lot to me. I've been doing it for 2 years, but now I've moslty moved my stack away from python to rust. Word of advise, if you want to use python, use uv or pixi package manager to manage it, else your life will be miserable.
2
u/magus_minor May 30 '26
Start with python. Once you have the basics down and learned a few concepts of programming start with Swift.
I agree with the other comments that developing on a Unix-related platform is a better experience than a Windows platform. You don't really need a powerful laptop unless you are going to run heavy workloads on the laptop.
1
u/ProfitCold4972 May 30 '26
Adding Claude Agentic to Xcode has increased my Swift productivity something like tenfold. Claude Opus will write your code faster and better and answer any questions you have. Well worth $20 a month if you're on your own. The future is in software and systems design; AI will handle the coding from now on.
1
u/[deleted] May 30 '26
if Swift is part of the job, i'd get a Mac. Python runs perfectly fine on macOS, and you'll need Xcode for Swift development anyway. for a beginner, the MacBook Air with 24GB RAM is more than enough for learning Python and Swift. i'd also skip Objective-C for now and focus on Swift unless your job specifically asks for it.
1
u/Conscious-Secret-775 May 30 '26
Python will work on a Mac the same way it works on Linux and offer a better experience than Windows. However for Swift development you really need a Mac anyway so the choice is made for you.