r/iOSProgramming • • Nov 05 '20

Discussion Just started learning Android Dev and using Android studio and...

WOW that's shit.

Like, I know we like to complain about Xcode and the long build times and whatnot, but when you're talking about error codes, autocomplete, warnings and what not - Xcode is simply LIGHT YEARS ahead of Android Studio!

Edit: well, some people here are butt hurt about my opinion like I told them their moms pasta is shit ... 🤷🏻

47 Upvotes

47 comments sorted by

21

u/freakysheep Nov 05 '20
  • Ever tried the "Generate..." function in Android Studio? Example: Generate a constructor. So usefull.

  • The "Refactor" tool in Android Studio. It is so much more powefull. In Xcode the only thing available most of the time is "rename". In Android Studio you can select code and it is able to analyze the code so it actually works and move it automatically to other classes, extract code to a new function without breaking anything, ...

  • Analyzing. Android Studio is able to find unused code and antipatterns ... Would be so helpfull in Xcode

  • In Xcode, code completion is much slower for me and breaks very often until I rebuild the project. In Android Studio it just works most of the time.

  • In Xcode, errors are lagging behind for example changing a signature nearly never gets recognized instantly and errors show up until I build again

  • Xcode has a much higher crash rate for me

  • Xcode debugger: Ever spent a day to figure out why everthing is nil again when in fact it is not and the debugger just is set to some random setting again where the debugging is not possible...

21

u/VadimusRex Nov 05 '20

Just to add to this:

  • ever set up a breakpoint inside a closure and now you're unable to print anything?

  • ever hit run after you haven't modified a single line of code, comment, setting, ANYTHING and had to sit through an entire rebuild?

  • ever got Failed _shouldMakeReadyForDevelopment check even though device is not locked by passcode, having to reboot the device multiple times until it finally allowed you to deploy?

  • ever got erratic behavior when compiling or running solved only by shutting down Xcode, completely clearing DerivedData (rm -rf), starting Xcode again and watching it work correctly?

  • ever upgraded your iOS and got a cryptic error from Xcode that in no way, shape or form suggested that the issue is that it doesn't know how to deploy to that iOS version and that you need to update Xcode?

  • ever tried to run an app which had an extension with a signing issue and was met with a cryptic "cannot run on device" error and then had to go to the console and monitor the system output to figure out what's the issue?

I have. Last week and this week.

9

u/tylerjames Nov 05 '20

Ever have to:

  • clean your project

  • delete Derived Data

  • restart Xcode

  • restart your whole computer

... just to get Xcode to build and run your project again?

2

u/tempest_fiend Nov 05 '20

Android Studio pulls this shit too.

Clean build, invalidate cache, resync gradle files, restart. Usually have to do this because AS has shat itself and can’t find a bunch of files it had no trouble finding on the last build.

Also, don’t get me started on having to do this every build when you have deep closures, otherwise AS doesn’t recognise any code change in the file and doesn’t rebuild it. Fun times!

2

u/freakysheep Nov 05 '20

I can feel you, bro.

1

u/Xaxxus Nov 05 '20

> I have. Last week yesterday and this week today.

FTFY

18

u/[deleted] Nov 05 '20

I've used both and in terms of speed ye, it loads faster. But in terms of functionnalities I think Android Studio is ahead. For example refactoring in Xcode is a mess and is seamless in Android Studio.

97

u/konnos92 Nov 05 '20

Wow guys, as someone who codes both Android and iOS, I actually believe that Android Studio is a bit ahead of XCode. Even trying to find usages, implemetations of protocols (interfaces), general shortcuts, embedded terminal, they all make it feel better.
Build times are worse on Android from my experience especially after the introduction of Kotlin.

All in all it sure is a matter of preference, but to say that XCode is light years ahead, is very far from accurate.

31

u/lordzsolt Nov 05 '20

Totally agree. IntelliSense is light-years ahead in IntelliJ products. Even AppCode is better at autocompletion.

It's just a matter of being used to Xcode already and the learning curve is higher. And then they don't have any UI editor or live preview.

6

u/tempest_fiend Nov 05 '20

As someone who also uses both (although I’m currently doing a lot more work in Android Studio), I’d have to disagree. While AS has some features it does better than Xcode (I’m looking at you auto complete), there are other things it just falls over on. Build times, only just adding in a live preview (it’s not overly useful either), the ridiculous amount of ram it hogs, the weird and random build errors, grade issues, etc.

For me, Xcode is just more polished. It doesn’t screw up nearly as much as AS, and it also doesn’t do really annoying shit like re-mapping keyboard shortcuts in updates for no god damn reason.

5

u/jbisatg Nov 05 '20

work on both platforms, this is exactly how it is.

But I'd say with the latest version of AS which comes with the db inspector which is nice rather than downloading an extra tool like flipper.

14

u/Consistent-Cheetah68 Nov 05 '20

Yup, totally agree Andriod Studio is better as compare to XCode. but build time is better in XCode.

2

u/[deleted] Nov 05 '20

Came here to say this. While Android Studio might have a bit of a learning curve, it's autocorrect makes me profoundly jealous sometimes lol.

1

u/MisquoteMosquito Nov 11 '20

Have you tried MIT’s app inventor 2? I really liked using it as a new user, documentation was pretty easy.

-2

u/[deleted] Nov 05 '20

“Xcode.”

30

u/VadimusRex Nov 05 '20

Yep, that's what people call a "hot take".

Of course you're gonna call it shit and unintelligible when you've been primed by years of using Xcode.

I'd wager if you tried Visual Studio you'd be calling it shit too.

2

u/[deleted] Nov 05 '20

I hate Visual Studio and think Xcode is far better and I've used VS before it was called Visual Studio and still came in separate packages like Visual C++. That program is a hot mess of garbage and bloat.

53

u/mRs- Nov 05 '20

Can't compare. The Jetbrains IDE are way ahead of Xcode...

-12

u/ck3g Nov 05 '20

Android Studio is JetBrains IDE

19

u/mc_hambone Nov 05 '20

That’s what he’s saying

0

u/[deleted] Nov 05 '20

[deleted]

1

u/[deleted] Nov 06 '20

Wait, the rename tool actually works? I thought it was just a neat way to pop up an error.

1

u/[deleted] Nov 06 '20

Did you sacrifice an Android on the Steve Jobs Memorial Altar™️?

17

u/ArmoredPancake Nov 05 '20

Weak meme dude, try this in /r/androiddev, maybe it will gather more heated discussion there. As someone who used both, Intellij products are on a different plane than Xcode. Intellij is 3d, Xcode is 2d.

1

u/s4hockey4 Objective-C / Swift Nov 07 '20

IntelliJ lags like no other on my 2016 13” MBP, it’s painful

1

u/ArmoredPancake Nov 07 '20

Stop using old versions of Intellij then.

5

u/halleys_comet69 Nov 05 '20

Not sure what your point is. Xcode being better relative to [other IDE] doesn’t mean that we don’t deserve better or we should stop complaining to Apple about it. Whether Android Studio is shit or not doesn’t affect how pleasant it is to use Xcode (or excuse for example the frequent SourceKit crashes requiring you to restart Xcode).

5

u/[deleted] Nov 05 '20

It's not. Each one is different, but Xcode is actually well behind Android Studio. And I think that has all to do with the fact that Android Studio is managed as bleeding edge software while Xcode is approached more like a corporate system. Xcode is quite slow to learn new tricks. Which, arguably, is not a bad thing on its own. Android Studio is evolving very fast, breaking lot of things on the way.

Android has huge advantage in two areas: Dependency management & Automation. Which makes differences between IDEs quite insignificant.

Despite all that, I left Android development after ten years of doing that shit. For reasons that mostly fit into "Android OEMs" box.

5

u/[deleted] Nov 05 '20

A hot take from someone who "just" started using Android studio.

5

u/scorr204 Nov 05 '20

Fanboy detected.

4

u/Saik0s Nov 05 '20

I am using mostly AppCode(which is in the same family as Android Studio) for iOS development and it feels like Xcode is a very outdated IDE.

2

u/Hedgehog404 Nov 05 '20

I'm writing programatic ui-s, should I use app code as well? Will it launch simulator ?

Sorry I'm noobie ^^

2

u/[deleted] Nov 05 '20

[removed] — view removed comment

2

u/Saik0s Nov 10 '20

Also, there is no build-in runtime UI debugging in AppCode, so there are two options for that: use Xcode or Reveal(I like it more than what Xcode provides). AppCode has built-in Reveal support, so it is easy to enable it.

1

u/Hedgehog404 Nov 05 '20

Can I switch between app-code and Xcode with no issues?, I mean to use some specific stuff like core data

1

u/Xaxxus Nov 05 '20

id agree with you. But for large projects its almost unusable. Not only are the build times slower, but the indexing is even worse.

Thats the only thing Xcode does better. The IDE is actually usable while indexing.

3

u/tempest_fiend Nov 05 '20

As someone who works on both, I’m actually with OP on this one. Android Studio seems better because it does the things that Xcode handles poorly, well. Actually, not well, just better. But, it also has a lot of issues. It’s not a straightforward IDE, it loses track of files, it has a propensity to not want to rebuild files, so will attempt to skip that as much as possible (really helpful when your code changes literally do nothing on rebuilds), they only recently introduced a decent resource manager, it’s live preview is under built, it’ll chew through more ram than chrome (as will it’s emulators), as well as a plethora of other gripes I have with it.

Personally, I prefer working on Xcode than AS.

5

u/MarkusBerkel Nov 05 '20

Android as a platform is hot garbage.

OTOH, IntelliJ IDEA is a pretty nifty product. So, that point is a bit of a dumpster fire take.

6

u/hustlas4ever Nov 05 '20

Based on my small amount of experience using Xcode, Android Studio's console is better on helping you find your code's error.

2

u/[deleted] Nov 05 '20

Sounds like someone didn't have enough IQ to handle the learning curve.

2

u/alielknight Nov 05 '20

Android studio is a developer tool for developers

xCode is a developer tool for designers and developers

Visual Studio is just a developer tool

3

u/stoycis Nov 05 '20

I've been using exclusively Xcode for the last 8 years, but it's a bit hard to imagine an IDE that's worse than this one :)). It feels more and more painful to work with it with every new version.

1

u/mazster27 Nov 05 '20

Xcode can’t even keep my code syntax highlighted properly. I switched to iOS from android and the tools seriously eat up more time in my day than ever before in my career. I spend hours “fixing” Xcode. Deleting my derived data, dealing with crashing previews etc.. it’s hot garbage. Every time I get to open as again I’m a happy man.

1

u/mazster27 Nov 05 '20

also debugging is superior, forget trying to observe an object in the debugger in Xcode.

1

u/ndg91 Nov 05 '20

In my experience Xcode is better when comparing features, but when comparing stability and performance Android Studio is better. But then I didn’t use Android Studio for a while now.

I definitely preffered Android Studios autocomplete though.

-1

u/s4hockey4 Objective-C / Swift Nov 05 '20

One time I downloaded it, played around with it for 10 minutes, said “absolutely fucking not” and never opened it again haha

And this was at a point where I know Java so much better than Objective-C (at the time)

-12

u/covertchicken Nov 05 '20

Yea no wonder Android sucks lol