TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Is Xamarin worth learning?

178 pointsby ceeKover 8 years ago
For context I'm a day to day iOS developer. However I'd like to quickly be able to make cross platform applications, and React Native is apparently lacking for Android.

53 comments

grezqlover 8 years ago
Xamarin Native developer here, I started off by trying to create a Pokemon Go Map app. Although I got off to a quick start, slowly it downed upon me that I started spending too much time finding fixes for Xamarin issues rather that programming. I used macbook as agent and visual studio as IDE. Sometimes the deployment would take 5 minutes! I then had to restart the agent to fix it. As a programmer I am rather a person who runs a code, change a little bit in code, then run it again. If I dont understand things I google it or find the documentation. Thats my way of learning things instead of reading through programming books.<p>For me Xamarin Native was slow and rigid. I highly doubt I could make &#x27;innovative&#x27; apps with Xamarin. Maybe it is okay for people who want simple things like a &quot;to-do app&quot; or somethign that fetches list of images and displays it.<p>I wanted more and found no solution for things I needed, so I gave up and started xcode (swift + some objective c).<p>And let me be clear here, if I had spent same amonut of time on xcode as xamarin I would have been iOS dev master :)<p>Things just works much better. You can do anything you imagine with Xcode and swift. With Xamarin its more like find whatever library is out there and try to create something by combining these. Too many bugs.<p>This is no sly dig on Xamarin or Microsoft as I use alot of MS products myself. I have also tried phonegap, react native etc. and Xamarin is the best when it comes to cross platform without a question, but none of these can match true native coding (xcode swift&#x2F;objc)
评论 #12960081 未加载
评论 #12951247 未加载
评论 #12961649 未加载
lanestpover 8 years ago
I&#x27;ve been extremely disappointed in Xamarin. The main issue is that you don&#x27;t really get code sharing. I would estimate that only 25% of the Xamarin project I manage is cross platform code. The rest is this bizarre merger of native APIs with C#. It&#x27;s difficult to write because of the lack of examples and documentation. It&#x27;s also buggy, even with simple things like page views.<p>The real problem is that I can write a native iOS app in a fraction of the time it took to write a Xamarin app. Swift has improved iOS development speed so much I&#x27;m not convinced we need cross platform app engines (excluding games).<p>As for Android, yeah, native Android sucks. Activities and fragments are the worst idea anyone has ever had and no one agrees on best practices. But even with cross platform high levels of abstraction like Unity3D you still need to understand them. So, my current advice is to suck it up and write it native twice. Pick your favorite OS, start with that, and then port the logic.
评论 #12949799 未加载
评论 #12949519 未加载
评论 #12949824 未加载
评论 #12951210 未加载
评论 #12949709 未加载
评论 #12950379 未加载
评论 #12949701 未加载
mathijsover 8 years ago
I&#x27;ve used Xamarin for several projects and I greatly regret that decision. Granted, most of my hatred is targeted towards Xamarin Studio and Xamarin.Forms so if you use Visual Studio and build only native UIs then maybe your experience will be better.<p>However, in my experience, both Xamarin Studio and the build system are buggy as hell. Random or inexplicable build errors, things that break during updates, incompatibilities with official Android support libraries... I find myself doing &#x27;clean project and rebuild&#x27; to fix random errors, or switching between alpha, beta and &#x27;stable&#x27; channels all the time depending on which one does not have the bugs that I&#x27;m running in to.<p>Xamarin.Forms is simply a disaster. Because it aims to unify the apis for the UIs for various platforms it boils down to only the most common denominator of those platforms. And then makes it worse. Not only is it buggy, it is also very slow and incredibly limited. In our office we&#x27;re keeping a list of all of Xamarin&#x27;s silliness we encounter, here is just one of those:<p><pre><code> &quot;Clicking a Button changes its text alignment from center to left-aligned; it requires writing a custom Renderer to solve this.&quot; </code></pre> I admit that Microsoft is usually quick to fix those bugs, but it doesn&#x27;t instill much trust in the system if you&#x27;re constantly running into issues. Many days I am literally working 50% of the time on my app and 50% working&#x2F;fighting my way around Xamarins issues.<p>I&#x27;d love to hear from someone using Visual Studio if their experience is more positive, but my advise is: please stay away from Xamarin.Forms and Xamarin Studio as much as possible.
评论 #12949196 未加载
评论 #12949121 未加载
eonilover 8 years ago
What you have to deal with;<p>* Xcode = iOS bugs + UIKit bugs<p>* Xamarin = iOS bugs + UIKit bugs + different runtime, language, memory model abstractions + .NET bugs + P&#x2F;Invoke bugs &amp; overheads + GC inter-op bugs &amp; overheads + C# bugs + slow followup of platform updates<p>* Xamarin Forms = iOS bugs + UIKit bugs + different runtime, language, memory model abstractions + .NET bugs + P&#x2F;Invoke bugs &amp; overheads + GC inter-op bugs &amp; overheads + C# bugs + slow followup of platform updates + extra UI abstraction layers + lack of fine level controls &amp; features
FlyingSnakeover 8 years ago
iOS developer with multiple years of experience of burning fingers in cross-platform development here.<p>I&#x27;ve tried Cordova&#x2F;Ionic, Xamarin, Dropbox Djinni, and native iOS development. C++ is the closest I&#x27;ve got the a performant cross-platform solution, even though it go it&#x27;s own quirks.<p>The problem with Xamarin is it&#x27;ll always play second fiddle to quick moving targets of Android and iOS toolchains. In my case the Reactive Extensions support was utterly broken, and Visual Studio kept crashing on MvvmCross, Android SDK updates would make things hell, and I would waste at least 8 hours a week to fight the toolchain. The promise of cross-platform doesn&#x27;t deliver much as you&#x27;re trying to tweak your MVVM solution to Android&#x2F;iOSs whims and fancies, which leave you with a fragile common logic.<p>If you want to write a TODO list of simple CRUD app, it might work, but for professional iOS&#x2F;Android development, Xamarin is not enough. Xamarin doesn&#x27;t free you from learning ViewController lifecycle etc and platform specific implementation details. So you&#x27;re stuck on a foreign platform, with extra overload of learning C#&#x2F;F# along with Android&#x2F;iOS platform overhead.<p>My Advice: Learn Swift and Kotlin, and do native development. Cross-Platform is a illusion, and the road is paved with dead and failed projects.
评论 #12950064 未加载
评论 #12950636 未加载
评论 #12950073 未加载
评论 #12952822 未加载
评论 #12951782 未加载
ghuntleyover 8 years ago
Xamarin has unfortunately muddled their branding.<p>Xamarin Forms is not Xamarin, it is a DSL. You do not need to use it. At its core Xamarin is c# with pinvoke to the underlying native platform implementation. You&#x27;ll still need that platform knowledge but now you can share the core business logic between platforms.<p>To get maximum code share you&#x27;ll need a MVVM framework such as ReactiveUI which is based on the Reactive Extensions and modeled on functional reactive principals check out <a href="https:&#x2F;&#x2F;github.com&#x2F;reactiveui&#x2F;ReactiveUI&#x2F;releases&#x2F;tag&#x2F;7.0.0" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;reactiveui&#x2F;ReactiveUI&#x2F;releases&#x2F;tag&#x2F;7.0.0</a> or <a href="http:&#x2F;&#x2F;reactiveui.net" rel="nofollow">http:&#x2F;&#x2F;reactiveui.net</a>
评论 #12949338 未加载
zihotkiover 8 years ago
<i>MS stack developer</i> I think yes, MS invests a lot into the Xamarin platform, so I expect it to become more stable and more developer friendly than it was before. I have a plenty of experience doing cross platform mobile development and I tried several other alternatives, Xamarin was actually the best - easy to start, easy to implement stuff, fast enough on mobiles, has a lot of components, etc.<p>Also I would like to recommend to focus more on Xamarin.Forms, it&#x27;s using more modern approach. XAML (it&#x27;s a xml-derived language) is actually quite good for writing UI part. Add there some MVVM framework and you&#x27;d love it.<p>Edit: fixed spelling
评论 #12949062 未加载
m_fayerover 8 years ago
My experience with Xamarin is mostly on the Android side, so that&#x27;s what I&#x27;ll mention. Spoiler: mostly positive, with some big caveats.<p>In no particular order:<p>Stay the hell away from Xam.Forms, unless it&#x27;s improved drastically in the last 6 months. Though I also think the whole idea is misguided.<p>For Android, go with Xamarin or Kotlin. I would take C# over Kotlin because of the maturity of the language, the tooling around the language, and the ecosystem. Either way, having a powerful modern language will be a godsend.<p>Concurrency on Android is much easier to deal with in Xamarin than with native. This extends to things like complex orchestration of animations.<p>You will do backflips trying to get startup-time down. But once your app is in memory performance is basically native-level.<p>Xamarin gives you some nice framework-level things that native Android doesn&#x27;t. A good API for sqlite and http. Proper data-binding. MvvmCross and ReactiveUI are light-years ahead of anything that is available in native-land.<p>Xamarin builds are faster and more reliable than Gradle.<p>Xamarin introduces its own layer of bugs and glitches. You&#x27;ve added another slice of Swiss cheese to the stack.<p>Xamarin plugin for Visual Studio is crash&#x2F;glitch city. Xamarin Studio is tolerable at best. Either way, your tooling will be faster but less feature-rich than Android Studio.<p>Every time you want to use an existing third party library, you will go through this process: Has anyone done an official binding for it? If yes, use awkward Java syntax in C#. If no, try to find an unofficial binding. If not found, try to bind on your own - 50% chance it just works, 50% chance you fiddle for half the day and then fail. If it&#x27;s the latter, try to decide if you want to do a code-level port, or abandon your idea. Code-level ports are possible nearly line-by-line, it&#x27;s slow brainless work.
评论 #12963582 未加载
bobbygoodlatteover 8 years ago
You might want to look into Exponent. They&#x27;re a YC startup that build a framework on top of React Native. <a href="https:&#x2F;&#x2F;getexponent.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;getexponent.com&#x2F;</a><p>The team is made up of a few React core devs and some ex-FB folks. They actually helped organize the last official React conf. The scope of what can be built using Exponent is expanding rapidly. And you can build apps that are virtually indistinguishable from Swift&#x2F;Java apps.<p>If you want an example, I&#x27;d encourage you to download the Android version of this app: <a href="https:&#x2F;&#x2F;li.st&#x2F;" rel="nofollow">https:&#x2F;&#x2F;li.st&#x2F;</a>
评论 #12951273 未加载
jmkniover 8 years ago
I am using Xamarin.Android currently for a project, and I really like it.<p>One thing I love is that because it maps so closely to native Android development, you don&#x27;t need to look specifically for Xamarin.Android tutorials&#x2F;SO Answers&#x2F;blog posts etc to learn how to do something.<p>Most of the time, information targeted towards native Android development will apply to Xamarin.Android also, and you can basically map example Java code to C# because they use the same classes&#x2F;namespaces.<p>I&#x27;m going to be getting into Xamarin.IOS soon, hopefully the experience is as nice.
评论 #12950142 未加载
calferreiraover 8 years ago
I&#x27;m currently developing an app integrates Google APIs like SignIn and a google product that i plan to make available on all major platforms (Android,iOS,Windows).<p>In the beginning, i thought about making a hybrid app, because it could save me time on the long run, but starting to developing with Cordova and EmberJS or even Xamarin was frustrating.<p>My major reason for frustration is the tooling, cordova emulator just sucks (Ripple?) and working with javascript mvc frameworks isn&#x27;t just for me (too complex IMHO).<p>Xamarin on VS has some bugs that would only go away if i restarted the IDE in order for things to work. Also, i&#x27;m concerning about being dependant to a third party framework.Can they keep up to speed with Google,Apple and MS?<p>Another valid concern is app size distribution that seems to be considerably higher with cordova and Xamarin.<p>Since i started on Android, using Android Studio made my life a lot easier and i&#x27;m progressing daily and enjoying it, something that was a PITA with other tools.<p>In my experience i would say that it will be more time consuming (expensive) to develop a single solution for each platform as well as giving support, but the tooling is a lot better, also you can give users a better experience because you end up developing native apps for each platform that can take better advantage of it&#x27;s ecosystem.<p>I&#x27;ll find out in the future if i&#x27;m right or wrong.
评论 #12952498 未加载
评论 #12949054 未加载
martinpintoover 8 years ago
Ionic 2 is a very promising hybrid approach. It&#x27;s still in beta but should be out of it soon (better wait until it&#x27;s released). The current beta version is quite fast. It has lots of components which are beautiful and has great support for ios, android and windows phone. It&#x27;s JS (angular2) and html based.
评论 #12950678 未加载
miguelrochefortover 8 years ago
If you&#x27;re familiar with C# and .NET, it&#x27;s a no brainer.<p>Xamarin is nothing more than a C# wrapper around the native iOS and Android APIs. Everything you&#x27;re familiar with (UIViewController, UIView, UITextField, UIButton, etc) remains the same. The main benefit (other than using C#) is that all non-UI code can be shared across platforms (iOS, Android, Windows, server, etc).<p>Xamarin.Forms is built on top of Xamarin and lets you reuse the same code for UI as well (using their own abstraction that&#x27;s similar to WPF&#x2F;UWP). I would only recommend this for relatively simple apps as you lose some control over platform specific details.
jasallenover 8 years ago
Hey Guys, Xamarin University Instructor here,<p>Obviously I think it&#x27;s worth it, I learned it well enough to teach others. We have a bunch of <i>free</i> Self Paced Learning modules and videos at Xam University, as well as obviously the paid stuff that pays my salary ;-)<p>There is a ton of investment and effort from a small team, remember, we&#x27;ve only been with a &quot;big company&quot; a few months, so the improvements come at a blistering start-up pace. If you haven&#x27;t seen it in a couple years, you should really check back.<p>If you are going to develop &quot;all platforms&quot; or even just iOS and Android, it is _certainly_ worth a long look. Access to every API you get access to in their native languages and the ability to avoid that language &quot;context switching&quot; pain. Plus, some amount of shared code (varies wildly, 25% - 75% depending on how heavily your app is just about custom UI and animations ).<p>Because we use the same APIs (except when we have better ones), you can leverage the same documentation and StackOverflow posts when you need to (yes with a little language translation), but you often don&#x27;t need to because Xamarin has a _lot_ of great documentation as well.<p>And, as has been mentioned, &quot;Xamarin Forms&quot; does not equal &quot;Xamarin&quot;. Although it is a valid choice for developing in Xamarin, it is only one option. Here is a super shallow comparison:<p>Xamarin Forms: Super fast for super simple UI&#x27;s and interactions with common elements. It is highly opinionated on what it should do and look like on all platforms. Customization is do-able but starts to increase the complexity of the app quickly to the point where the below would have been a better choice.<p>&quot;Xamarin&quot; aka &quot;Xamarin.iOS and Xamarin.Android&quot;: Use essentially the same development patterns as Native Android and iOS developers and use the same API&#x27;s (plus .NET library, and many .NET 3rd party libraries). You get code sharing (as noted, amount varies considerably), ability to &quot;think in one language (often including your server, which might also be c#), and access to some additional libraries (because we support both the Native libraries _and_ the .NET ecosystem).<p>Hope this helps :)<p>Oh, and a quick plug. Xamarin University is live classes taught by real, very experienced developers who can actually help you learn and understand, so we are, you know, worth asking questions of. Also, we&#x27;ll be doing a free presentation all day on November 18th as part of Visual Studio Connect, so check us out there and see what you think of Xamarin _and_ Xamarin University!
cryptarchover 8 years ago
I&#x27;ve very recently worked with Xamarin Forms for about 5 full-time months and it was terrible.<p>My main complaints are:<p>* It&#x27;s full of bugs<p>* The build system is unreliable and mysteriously breaks, which generally takes a full day to fix<p>* Basic functionality such as merging resource dictionaries (which are stylesheets, kinda) is missing<p>* No graphical UI designer or preview, so every layout change requires a recompile and deploy before you can see it<p>* Apps feel sluggish and crash at runtime without specific error messages<p>* It makes VS crash all the time. I&#x27;m not a regular VS user so I&#x27;m not sure if VS:CE2015 is a POS or if Xamarin is.
评论 #12993342 未加载
pritambarhateover 8 years ago
Yes it is worth learning. It&#x27;s a skill which is quite in demand especially from established companies for their business applications.<p>However, as others have pointed out, Xamarin Forms is a bit of let down.<p>In my experience, if you try to create custom designed UI (which is quite common in the native apps), then you find that Xamarin Forms is very limited. To overcome this limitation you need to write something called as a custom renderer for each OS you want to support. So it doesn&#x27;t really save you much time.<p>Xamarin has something called as Xamarin Labs project on Github: <a href="https:&#x2F;&#x2F;github.com&#x2F;XLabs&#x2F;Xamarin-Forms-Labs" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;XLabs&#x2F;Xamarin-Forms-Labs</a> But it&#x27;s progress has been very slow.<p>If you have a business data collection &#x2F; reporting app, where how things look is not very important, Xamarin can save a lot of time while creating cross-platform apps.<p>However, I wouldn&#x27;t recommend Xamarin Forms for B2C apps.
评论 #12949447 未加载
评论 #12952376 未加载
评论 #12951820 未加载
gtsteveover 8 years ago
I have read some fairly negative comments in this thread. I have experienced many of the negative aspects myself, and while I don&#x27;t disagree with them, I would still say that it is worth learning this technology.<p>Microsoft&#x27;s strategy with bringing a phone to market appears to have failed so they&#x27;re going to have to take the next best thing which is owning the development tools. I expect the outlook for the software to be extremely bright and if you plan to be a professional mobile developer I strongly suggest learning it.<p>Of course, this does not excuse you from learning how to develop for iOS and Android natively, but it is a great addition to your toolkit as a developer. It&#x27;s also another box to tick for the recruiter or hiring manager.
评论 #12951449 未加载
santiagobasultoover 8 years ago
We&#x27;ve been working lately with React Native and Exponent (getexponent.com) and we&#x27;ve had an amazing experience. The apps resulting have a great experience and performance. Vue.js and Angular are also making progress towards the Native world. I honestly don&#x27;t think hybrid apps are going to be a think 2 years from now (of course I could be wrong, this is just an opinion).
dep_bover 8 years ago
I tried Xamarin once for a macOS application. I migrated a Forms application by extracting all logic that I could from Forms-specific (code behind files) into more generic classes.<p>Then I had a .dll that I could use in my Xamarin project. The Xamarin project was razor thin and I only used C# to connect my XIBs or Storyboard (I forgot what I used, but it was in Interface Builder) to the existing .dll calls and a specific type of hardware scanner.<p>The hardest part was getting that scanner to work, which would be not so easy for me even in Objective-C. But I basically had to create an Objective-C wrapper wrapped in some kind of C# wrapper. It wasn&#x27;t easy but it was doable.<p>The hardest part was getting everything signed correctly, since I was using all kinds of layers you usually wouldn&#x27;t use in &quot;just software&quot; project.<p>The overall experience was really good despite that the native editor for macOS wasn&#x27;t that spectacular. I did the meat of my programming in Visual Studio and Visual Studio is a really great tool. Another part was done in Interface Builder which is a great tool in my opinion.<p>A friend uses it a lot for a cross-platform app written in Xamarin Forms. The thing with Forms is that unless you keep it simple you will run into Xamarin bugs, iOS specific bugs or Android specific bugs in your layouts and that can be challenging sometimes.<p>I would say that if you would make the UI in native code or storyboards and it still seems like an attractive idea to use Xamarin, use Xamarin. Don&#x27;t use Forms.
misskallistoover 8 years ago
[Full Disclosure: I work on the Xamarin team at Microsoft. I’m familiar with the Xamarin tools and want to offer my thoughts and guidance on the original post. Opinions here are my own.]<p>The answer to whether or not you should learn Xamarin depends largely on what you are trying to accomplish. Let me explain.<p>If you were to approach me as someone interested in Xamarin, I would start by asking what kinds of apps you are looking to build, how complex they are, and how much you care about UI quality and customization. This is to help decide between Xamarin and other xplat solutions, but also between Xamarin native and Xamarin.Forms, our cross-platform UI toolkit. I’d ask what you hope to gain from a cross-platform approach, so we can optimize for that. I’d ask what parts of your app you are looking to share, and how you plan on architecting your app to allow that.<p>I’d ask how much experience you have with .NET, and if being able to use C# and&#x2F;or Visual Studio makes you more productive. I’d ask if you have an existing codebase you want to connect to. Your familiarity with native iOS development is a plus - the particulars of iOS and Android add to the learning curve, but you can’t make good native apps without knowing the basics of the platforms you’re building for.<p>From these considerations, we would decide if Xamarin is a good fit for you. It would be naive to say that Xamarin is the ideal solution for everyone, but it is a very good solution for many people.<p>At the end of the day, Xamarin is free, and it takes less time to get a handle on developing with Xamarin than it does to read this thread. I encourage you to try it out and decide for yourself.
Meph504over 8 years ago
I think where Xamarin shines is in places where the development stack is already .net. If you are starting green pasture, and don&#x27;t have .net developers already, then it seems to make very little sense.<p>With that said, I&#x27;ve made a number of apps in it, and it works well enough, but the more abstractions, the more problems, and you want to do anything outside of simple UI apps, you are likely going to have to learn how the native methods work anyway.
wslothover 8 years ago
When using Xamarin I always get the feeling I&#x27;m writing Java code--but in C#. The cross-platform project is a blessing, it&#x27;s truly amazing to be able to write code once and use it on all platforms (especially if you use Dependency Injection for even more sharing).<p>The downside to this is that making a UI seems to even out your gained time--it&#x27;s extremely messy and even complicated. Code that&#x27;s valid in C# produces vague underwater bugs in Java code, which makes you keep hacking around until you find a working solution.<p>Not to mention the docs: some parts of the documentation are completely outdated to the point of not even compiling on an older version of Xamarin. For example, the tutorials on using Google Maps in your Xamarin.Droid application are way out of date, ignoring the fact that the &quot;Google Play Services&quot; component has split off into thirty-or-so components. Some of the most used API&#x27;s are not documented at all, simply having a &quot;To be added&quot; description.<p>All in all I find much potential in Xamarin, and I <i>really</i> want to love it, but it&#x27;s a messy nightmare to use, and it only makes me want to use Java and Swift separately for apps.
评论 #12949353 未加载
评论 #12949105 未加载
评论 #12949355 未加载
vblordover 8 years ago
I&#x27;ve been a life long Microsoft developer. So when I started down the mobile app path, I naturally gravitated to Xamarin. Xamarin allows you to build mobile apps in the best development IDE out there. This is true... but it has it&#x27;s issues. I&#x27;ve created 3 andoid apps with Xamarin (and tried more), but each time i&#x27;ve run in to bugs or oddities that make life suck. I wish it was better, but if I could go back in time, I would have probably chosen a different language&#x2F;tool. Maybe Unity if I still wanted to stay with the C#&#x2F;VS IDE.<p>One nice thing about it is that all the methods&#x2F;classes are named almost the same thing as native android. If you want to know how to do something, you can find the android solution and just change a few small things.<p>So my vote would be to not do Xamarin and to choose a different cross platform development environment. Cross platform is the key. If you do choose Xamarin, I would spend some time and do a little bit of training before jumping in. It&#x27;s not like the ease of building windows applications in VS.
Zigurdover 8 years ago
I have had clients that use Xamarin. This is what I&#x27;ve observed:<p>1. If you don&#x27;t use Xamarin and you don&#x27;t have a team in-house that uses C#, don&#x27;t bother. You&#x27;ll be better off doing native development on iOS and Android platforms.<p>2. Your app won&#x27;t be as pretty, and it won&#x27;t adhere to platform native UI conventions as well if you use Xamarin.<p>3. Xamarin does a better job of it than most but it will still be lagging in access to the latest features.<p>4. BUT, if you are doing a vertical market app that wants to be cross-platform AND you have C# coders you can apply to that task, Xamarin is the best choice.<p>There are a lot of places where choosing Xamarin makes a lot of sense. And the people who created Xamarin are excellent. And now that Xamarin is owned by MS, it won&#x27;t die because it is hard to make money as a cross-platform startup. But as with every other cross-platform tool for non-game apps I&#x27;ve seen, it isn&#x27;t the best choice in green-field situations.
andyjohnson0over 8 years ago
I&#x27;ve been using Xamarin since mid-2012 and have developed a couple of niche imaging products on Android and iOS for my employer, plus some internal tools on Android.<p>Overall I&#x27;ve been very happy. Code re-use hasn&#x27;t been stellar, but good enough to repay the investment. We have re-use not only between apps, but also between mobile apps, Windows desktop apps, and our application backends. I also feel I&#x27;m more productive than if I had so swap between Java&#x2F;Swift&#x2F;ObjC&#x2F;Andorid Studio&#x2F;Xcode.<p>Stability has improved a lot in the last year. Paid-for support was pretty good (esp. guys like @jonpryor), but the self-serve forums can be a bit hat-and-miss. I never had any killer bugs (but then I never used Xamarin.Forms...)<p>Overall: 85% happy with Xamarin.
alex4Zeroover 8 years ago
I&#x27;ve spent last 3 years working with Xamarin and native iOS and Android apps.<p>Xamarin wins if you need something for Enterprise. A lot of entry fields, validation, integrations with SSO, Sharepoint, other rest API. If you use MVVM well, it will lead to ~75% of code reuse between iOS and Android. Even more with XamarinForms. No complex effects, no complex animations, just enterprise.<p>Native wins if you want to make it more beautiful for end-users and you need to have a lot of customization. For example, customize map, pins and callout views. You will hate everything if you do it in Xamarin. No code reuse here<p>In general, Xamarin has very great chance to be #1 choise when you choose platform for Enterprise development.
sergiolpover 8 years ago
At flexVDI, we use Xamarin for building our macOS client (Xamarin.Mac), sharing most of the code with the client for Windows, built with Visual Studio. Both of them, link against a shared library which implements core functionality, written in C.<p>I must say that, having its own quirks and nuisances (specially in Xamarin Studio, which was pretty buggy until version 6.x), it does the job pretty well.<p>In fact, when we wrote our iOS and Android clients, Xamarin was still pretty immature. But if we had to rewrite them today, it would be one our of first options, right after using the native frameworks (which ensures the best results, but drastically increases the costs).
jsingletonover 8 years ago
I couldn&#x27;t get React Native working for Android (on either Mac or Windows) but I&#x27;ve been pretty happy with Xamarin. I&#x27;ve written a simple game in Xamarin.Forms that I will be posting about.<p>Purely by coincidence, I have four blog posts on this out this week. The first one (on React Native and Xamarin) is here: <a href="https:&#x2F;&#x2F;unop.uk&#x2F;cross-platform-native-mobile-app-development-options" rel="nofollow">https:&#x2F;&#x2F;unop.uk&#x2F;cross-platform-native-mobile-app-development...</a>
DevInPainNeoover 8 years ago
The Xamarin needs to develop easy and customization should be easy.<p>Had huge pain in full screen mode dynamically for all the devices.<p>Calendar with colors forced me to create a new custom control from 0.<p>To be stable with the controls if you make a tab control in one version should be the same in other versions also, not reinvent and change the wheel.<p>Easy and clear documentation. Forums all with lots of no one cares why it works int works on my machine stuff.<p>To new technology and has to get mature and stable. If you are not in the same versions of Xamarin in mac and windows it just not works properly.<p>Proper error message. I am getting an error like There were deployment errors. Continue. (Not run in administrative mode the vs 2015, closing the emulator or it was opened by other vs before, or you closed the emulator before finished the deploy) There are lots of errors like &quot;aapt exited with code 1&quot; that means there is some bad character in image or in files like -.... or files starts with number.<p>Also sometimes out of memory exception when loading images larger then 1mb or in android 4.2 larger than 300kb, even going lover to 100kb having problems in 4.2 android.<p>Proper editor for Xamarin.Forms is a must have if you want to develop. You can&#x27;t see the design what you are doing with vs 2015.<p>Also designer is crashing all the time if i open multiple times and make some adjustments.
grabcocqueover 8 years ago
If you want to develop cross platform mobile apps your only other option seems to be React Native. I&#x27;d like to see a good rundown of the pros and cons of each approach.
评论 #12948995 未加载
评论 #12948921 未加载
hitgeekover 8 years ago
i&#x27;m mostly a web developer with C# and JS. I&#x27;ve tried to learn Swift, Xamarin and React Native multiple times over the last 2 years.<p>With both Xamarin and React Native there was a honeymoon period where everything seemed so easy and great. But at some point I always hit a problem where there was limited documentation, or unsupported features, and that really hurt my productivity and motivation.<p>The learning curve for Swift&#x2F;ObjC always seemed much higher, with a lot more upfront investment required before I could make anything resembling a functional app. The iOS layout system in particular was an obstacle, as well as managing the tooling and dev environments.<p>If I had a free 6 months, I would just learn full native, but keep an eye on React Native. The dev experience in React Native is unparalleled, and it seems easy to drop down to native code (assuming you know it). Also the ability to easily contribute back to the community with NPM and react-native &quot;link&quot;, makes me hopeful limitations will quickly be erased.
LyalinDotComover 8 years ago
Just one comment to bring up as many folks still don&#x27;t know, Xamarin is free for many developers along with Visual Studio Community edition, the full info is here in this announcement from March 2016: <a href="https:&#x2F;&#x2F;blog.xamarin.com&#x2F;xamarin-for-all&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.xamarin.com&#x2F;xamarin-for-all&#x2F;</a>
mbruinsover 8 years ago
Native iOS and Android developer here. I switched to Xamarin a few years ago. As a native developer i was afraid of Xamarin and that i couldn&#x27;t harness the power that Swift and Java gave me. However it give&#x27;s you full control over your apps just as Java or Swift does. Everything you do in Java or Swift can be done with Xamarin in C#! Your knowledge isn&#x27;t lost, the syntax has only changed. Nowadays i absolutely love it! I work with enterprise companies as a consultant using Xamarin, code sharing is approximately around 80% when using a Xamarin and a framework like MvvmCross! In my opinion Xamarin is the feature of building apps. Please ask any questions you have and i be happy to answer.
ParanoidShroomover 8 years ago
I loved C#, hated Xamarin forms. It was about a year ago no, but I doubt things have changed that much. There were just so sooo many bugs. I have nothing against them and still think .net is amazing, but that was such a worse experience. I think reactive will win though.
eonilover 8 years ago
Such cross platform apps are meaningful only if your product doesn&#x27;t need great UX. But the question is, if your app doesn&#x27;t need it, why do you need a native app? It&#x27;s better sticking to a web-app. Make a web-app and cover all platforms at once.
评论 #12951622 未加载
bedaneover 8 years ago
Xamarin is only worth it if you already have lots of C# code you need to reuse in mobile apps(our formerly windows-only company had to)<p>As a day to day user, I quite dislike it. But rewriting our business code was not an option.
ghuntleyover 8 years ago
If you are currently doing Xamarin development or are interested in learning more check out the <a href="http:&#x2F;&#x2F;weeklyxamarin.com" rel="nofollow">http:&#x2F;&#x2F;weeklyxamarin.com</a> newsletter.
Taylor_ODover 8 years ago
This is different than your circumstance but back when I was recruiting I helped a Xamarin developer with no professional experience find a gig with a 95K base salary. It&#x27;s currently niche enough that people are willing to pay top dollar for anyone who can actually work in it. Another Xamarin developer I know consults for 150 an hour. (Although he&#x27;s probably one of if not the best xamarin guy in Chicago)
评论 #12952402 未加载
dvcrnover 8 years ago
Ruby Motion vs React Native vs Xamarin vs Native (Java&#x2F;Swift) is a question I have all the time. All look interesting and worth learning
评论 #12949022 未加载
dontJudgeover 8 years ago
This probably isn&#x27;t cool, popular, or what you want to hear. But for client-side software, use the native GUI library for each platform. Write the core in C or C++. Abracadabra. It&#x27;s cross platform, no issues, no bloat, no extra fees. With experience it can be fast to develop too.
davidgrenierover 8 years ago
F# is worth learning that&#x27;s for sure.
评论 #12952868 未加载
paulftwover 8 years ago
Isn&#x27;t Facebook for Android built in React Native? Doesn&#x27;t seem to be lacking for them. Airbnb and Instagram [1] are also doing alright.<p><a href="https:&#x2F;&#x2F;facebook.github.io&#x2F;react-native&#x2F;showcase.html" rel="nofollow">https:&#x2F;&#x2F;facebook.github.io&#x2F;react-native&#x2F;showcase.html</a>
评论 #12949595 未加载
tejasvover 8 years ago
We use Xamarin Forms a LOT for our internal and public facing apps. I started exploring it almost 2 years back, because native Android development just sucked, and C# has the async&#x2F;await keywords, which is simply perfect for asynchronous operations in UI.<p>It has not been an easy road. After 2 years, I&#x27;m finally beginning to reap the benefits. The simple problem is this: this is another layer over the existing layers and it&#x27;s very hard to get it right, especially if the underlying layers suck.<p>Just because you&#x27;ve learnt Xamarin Forms doesn&#x27;t mean you can choose not to learn the underlying native platforms. You can skip over most of the details, but something will always come back to bite you, and then you have to go figure it out. Xamarin Forms works on top of Xamarin Android, that works on top of Android SDK and Android Tooling, which works on top of the JDK, which works on top of the OS you&#x27;re developing on. So many places for something to go wrong, and usually presents itself in the form of a cryptic error at the top. Developing for iOS is considerably easier.<p>So there&#x27;s still a fair amount of expertise to develop if you&#x27;re completely new to mobile development. Take it for what it is -- an abstraction, and as with any abstraction, any concrete manifestation will have its issues, and you must be ready to roll up your sleeves to figure it out. And it does get keep getting better with every subsequent release.<p>But it does eventually help -- we have to get the complex bit right once, and then it simply works. Don&#x27;t approach this like you would approach an Android app -- make sure you understand UI design best practices -- especially reactive design and data binding.<p>We also have .NET stack, so I&#x27;m finally in this beautiful world where all my logic is represented as C# Expression Trees on the server side, that gets serialized and pushed down to our Xamarin Forms Apps. Looking forward to WASM adoption, so I can finally get rid of that JavaScript mess.<p>So if you&#x27;re writing a one-time app, and you just want to target Android&#x2F;iOS, and you don&#x27;t care how you&#x27;ve done it, no it doesn&#x27;t make too much sense.<p>But if you&#x27;re trying to make a long-term bet, in this awful fragmented device-oriented world, (and having to write the same app twice goes against the very nature of your existence), well that&#x27;s my bet, I will be cautiously optimistic. If you&#x27;re on .NET, it&#x27;s a no-brainer -- there are simply too many other benefits to ignore, and philosophically very true.<p>The architecture itself (Forms, Xamarin.Android, Xamarin.iOS, Custom Renderers, Platform Effects, Bindings to access native libraries) is theoretically flawless (or very close to it), a work of art -- and I&#x27;m a sucker for theory, no matter the real world pain.
vibratoover 8 years ago
One downside of Xamarin apps is memory usage. Just launching our app uses &gt;200mb of memory. After doing all we can to avoid memory leaks and excessive usage, we still crash regularly due to running out of memory. (part of this is due to a UIWebView)
ameliusover 8 years ago
How is React lacking for Android?
评论 #12949607 未加载
shams93over 8 years ago
Yes if you&#x27;re looking to be a primarily .Net developer, it&#x27;s not so widely used outside of the .Net community but in many .Net shops it&#x27;s become the standard tool for mobile development.
staticelfover 8 years ago
If you already is an iOS dev I think it&#x27;s easier to just also pick up android instead of Xamarin. Altough, Xamarin seems very nice and so on.
UK-ALover 8 years ago
Yes, but only Xamarin, not xamarin forms.
wjd2030over 8 years ago
Xamarin for business layer logic, native for the actual app.
umurgdkover 8 years ago
I&#x27;ve used in production and experience was good. Xamarin Studio is more than enough for development &#x2F; debugging. Xamarin is very powerful, but usually people taking the wrong direction with Xamarin and using Xamarin.Forms. As like many other cross platform solutions Xamarin.Forms sucks. If you think making a native iOS application is easy with Swift, it is same with Xamarin too. When i develop applications with xamarin (desktop&#x2F;mobile) i usually look for java&#x2F;swift documentations or forums for my problems. This way i don&#x27;t need separate xamarin community. Because you can write the same code in c# easily. Please check my workflow, for any further questions, twitter: @umurgdk<p>Recommended workflow: 0. Never ever use Xamarin.Forms other than quick prototyping. If you develop applications with other cross-platform frameworks, you already know all of them sucks and Xamarin.Forms is not an exception.<p>1. Create PCL &#x2F; Shared project for your business logic (also your view models if you&#x27;re using MVVM architecture). Believe me most of your application is platform independent (except the view layer). Your api communication, storage operations all handled here. See 3rd article to how to make storage&#x2F;network platform independent.<p>2. Create native projects for each platform (iOS, Android, Windows) implement native views here (use xcode, android studio if you need visual designer). This part should be exactly the same as your swift&#x2F;java code. For iOS you&#x27;re just implementing an ApplicationDelegate class and UIViewControllers as same as your swift code. Same for Android part, nothing special to xamarin just implement your activity classes. At this level you have the full power of your native platform with one exception 3rd party native libraries. It&#x27;s possible to use (yes i used some swift&#x2F;java libraries for youtube player) them but really hard to integrate to your project, that part has to be improved and better documented.<p>3. Your shared code base need native features, for example storage implementations are totally different for each platform, or changing views (navigation) will be implemented differently for each platform. Since shared code base shouldn&#x27;t know anything about native platform. You should abstract these functionalities with interfaces. For example create a storage interface with methods like saving&#x2F;reading&#x2F;creating files. Another example might be network communication. Abstract it as an interface on your PCL and implement this interface in your native project with full control of your platform. Your shared code base only knows how to use that interface. And then each of your native projects should implement these interfaces. At this point dependency injection may help to register implementations easily. Actually that part is what makes you share your business logic. Writing idiomatic cocoa navigation code is much better than using any cross platform implementations, you have full control but in the same time your shared code base using them without knowing anything about the platform.
T3RMINATEDover 8 years ago
I&#x27;ve used Xamarin for several projects and I greatly regret that decision. Granted, most of my hatred is targeted towards Xamarin Studio and Xamarin.Forms so if you use Visual Studio and build only native UIs then maybe your experience will be better.
WhiteHat1over 8 years ago
Microsoft just announced the launch of Visual Studio for Mac (based on Xamarin). It&#x27;s great if you want to C# development. Have you tried Eclipse or Android Studio?
icemelt8over 8 years ago
No one is mentioning how expensive Xamarin is and there is no proper free version.<p>In the free version you app expires after 24 hours AND it has to be below a certain size, I dont remember maybe 2 MB or something.<p>To make something you have to cough up a lot of money, and the sad part is this information is incredibly hard to find, you only stumble upon it when you download GBs of files.
评论 #12949363 未加载
评论 #12949358 未加载