r/iOSProgramming • • Jul 30 '24

Discussion Xcode is actually a great IDE.

Post image

I am no software engineer nor do I work in a big team at a tech company, so I appreciate that I might not be the ideal candidate to judge this, but:

Is it only be that actually REALLY likes Xcode?

As a hobby programmer Xcode has everything I want:

  • great syntax highlighting

  • responsive autocomplete / suggestions

  • nice text editing features like the side-ribbon to quickly collapse code blocks, comment out code etc, refactoring, multi-file-editing

  • modern programming language

  • hot reload previews for quick „live“ iterations

  • simple way to manage assets

  • simple way to handle language localization

  • simple version control with Git integration

I honestly don‘t know what else I could wish for. I‘m building my app using an entry level M1 MacBook Air that I bought for 700€. It only has 8GB of RAM but so far I didn‘t notice any performance limitations because of it. I think that in itself is quite impressive.

Why does Xcode get so much hate online? What are some „real“ shortcomings? What would you say is „the best“ IDE in comparison?

520 Upvotes

261 comments sorted by

View all comments

9

u/NullRef Jul 30 '24

So cute of you to love it building a tiny toy project 😂

I’m sure everything loads instantly and indexing is snappy and predicable.

2

u/Cultural_Rock6281 Jul 30 '24

Pretty much, yes. Creating this App has been the first time in a decade that I‘ve programmed. My amateur experience was pretty great: There is just so much that comes built into SwiftUI like localization, state management and data persistence that it was really easy to just start implementing my idea.

Browsing reddit, Stack Overflow etc, I saw that Xcode is generally disliked by professionals, and some answers here are really good.

2

u/Rudy69 Jul 30 '24

Came to say this.

I work on codebases with well over 50k lines and 100s views, packges etc. Xcode really struggle.

1

u/CrazyDef 18d ago

50k lines is still a hobby project. My core libraries at home (encompassing my cross platform renderer and UI engine and a bunch of platform abstraction/utility code) are over half a million lines on their own. Add another 60k for an application that uses those libraries.

At work I deal with two primary code bases: libraries with 3.3m lines (but some of those are open source/third party), and a primary application with 350k lines.

Fortunately I no longer have to deal with MacOS at work, but I do still need to support it at home.

And yeah, XCode is embarrassingly poor in every way. VSCode (which I use on Linux) isn't worthy of the name Visual Studio in the first place, but it is still a bazillion times better than XCode.

Now, some of that might be me not using MacOS very much, but I don't think so. It seems XCode just goes out of its way to make it as slow as possible to accomplish anything. The way it works is just fundamentally weird. Unfortunately the arrogance that pervades the culture at Apple means that it will never get better.