C# vs C++ vs Swift

Need advice about which tool to choose?Ask the StackShare community!

C#

29.7K
22.3K
+ 1
1.8K
C++

7.4K
5.5K
+ 1
733
Swift

11.4K
7.9K
+ 1
1.2K
Decisions about C#, C++, and Swift

Python has become the most popular language for machine learning right now since almost all machine learning tools provide service for this language, and it is really to use since it has many build-in objects like Hashtable. In C, you need to implement everything by yourself.

C++ is one of the most popular programming languages in graphics. It has many fancy libraries like eigen to help us process matrix. I have many previous projects about graphics based on C++ and this time, we also need to deal with graphics since we need to analyze movements of the human body. C++ has much more advantages than Java. C++ uses only compiler, whereas Java uses compiler and interpreter in both. C++ supports both operator overloading and method overloading whereas Java only supports method overloading. C++ supports manual object management with the help of new and delete keywords whereas Java has built-in automatic garbage collection.

See more
Ing. Alvaro Rodríguez Scelza
Software Systems Engineer at Ripio · | 11 upvotes · 50.3K views

I was considering focusing on learning RoR and looking for a work that uses those techs.

After some investigation, I decided to stay with C# .NET:

  • It is more requested on job positions (7 to 1 in my personal searches average).

  • It's been around for longer.

  • it has better documentation and community.

  • One of Ruby advantages (its amazing community gems, that allows to quickly build parts of your systems by merely putting together third party components) gets quite complicated to use and maintain in huge applications, where building and reusing your own components may become a better approach.

  • Rail's front end support is starting to waver.

  • C# .NET code is far easier to understand, debug and maintain. Although certainly not easier to learn from scratch.

  • Though Rails has an excellent programming speed, C# tends to get the upper hand in long term projects.

I would avise to stick to rails when building small projects, and switching to C# for more long term ones.

Opinions are welcome!

See more
Andrew Carpenter
Chief Software Architect at Xelex Digital, LLC · | 16 upvotes · 123.9K views

In 2015 as Xelex Digital was paving a new technology path, moving from ASP.NET web services and web applications, we knew that we wanted to move to a more modular decoupled base of applications centered around REST APIs.

To that end we spent several months studying API design patterns and decided to use our own adaptation of CRUD, specifically a SCRUD pattern that elevates query params to a more central role via the Search action.

Once we nailed down the API design pattern it was time to decide what language(s) our new APIs would be built upon. Our team has always been driven by the right tool for the job rather than what we know best. That said, in balancing practicality we chose to focus on 3 options that our team had deep experience with and knew the pros and cons of.

For us it came down to C#, JavaScript, and Ruby. At the time we owned our infrastructure, racks in cages, that were all loaded with Windows. We were also at a point that we were using that infrastructure to it's fullest and could not afford additional servers running Linux. That's a long way of saying we decided against Ruby as it doesn't play nice on Windows.

That left us with two options. We went a very unconventional route for deciding between the two. We built MVP APIs on both. The interfaces were identical and interchangeable. What we found was easily quantifiable differences.

We were able to iterate on our Node based APIs much more rapidly than we were our C# APIs. For us this was owed to the community coupled with the extremely dynamic nature of JS. There were tradeoffs we considered, latency was (acceptably) higher on requests to our Node APIs. No strong types to protect us from ourselves, but we've rarely found that to be an issue.

As such we decided to commit resources to our Node APIs and push it out as the core brain of our new system. We haven't looked back since. It has consistently met our needs, scaling with us, getting better with time as continually pour into and expand our capabilities.

See more
Pros of C#
Pros of C++
Pros of Swift
  • 320
    Cool syntax
  • 269
    Great lambda support
  • 244
    Great generics support
  • 188
    Language integrated query (linq)
  • 162
    Extension methods
  • 77
    Properties with get/set methods
  • 76
    Automatic garbage collection
  • 70
    Backed by microsoft
  • 58
    Automatic memory management
  • 54
    Amaizing Crossplatform Support
  • 29
    High performance
  • 28
    Beautiful
  • 25
    LINQ
  • 22
    Great ecosystem of community packages with Nuget
  • 19
    Vibrant developer community
  • 13
    Dead-simple asynchronous programming with async/await
  • 12
    Great readability
  • 9
    Strongly typed by default, dynamic typing when needed
  • 8
    Productive
  • 7
    Easy separation of config/application code
  • 7
    Visual Studio - Great IDE
  • 6
    Object oriented programming paradigm
  • 6
    Open source
  • 5
    Operator overloading
  • 5
    Events management using delegates
  • 5
    OOPS simplified with great syntax
  • 4
    Conditional compilation
  • 3
    Comprehensive platform libraries
  • 3
    Good language to teach OO concepts
  • 3
    Great community
  • 3
    Organized and clean
  • 3
    High-performance
  • 3
    Coherent language backed by an extensive CLR
  • 3
    Cool
  • 2
    Concise syntax, productivity designed
  • 2
    Unity
  • 2
    Top level code
  • 2
    Linq expressions
  • 1
    Lovely
  • 1
    Interfaces
  • 0
    Interfaces
  • 171
    Performance
  • 91
    Control over memory allocation
  • 87
    Cross-platform
  • 82
    Fast
  • 73
    Object oriented
  • 53
    Industry standard
  • 41
    Smart pointers
  • 32
    Templates
  • 16
    Gui toolkits
  • 15
    Raii
  • 12
    Generic programming
  • 11
    Flexibility
  • 10
    Control
  • 8
    Metaprogramming
  • 7
    Hardcore
  • 5
    Full-fledged containers/collections API
  • 5
    Simple
  • 4
    Performant multi-paradigm language
  • 3
    Many large libraries
  • 3
    Large number of Libraries
  • 2
    Way too complicated
  • 1
    Plenty of useful features
  • 1
    Https://www.info999.gq/2020/09/friend-function-in-c.htm
  • 248
    Ios
  • 175
    Elegant
  • 123
    Not Objective-C
  • 105
    Backed by apple
  • 89
    Type inference
  • 58
    Generics
  • 51
    Playgrounds
  • 47
    Semicolon free
  • 37
    OSX
  • 34
    Tuples offer compound variables
  • 21
    Clean Syntax
  • 21
    Easy to learn
  • 20
    Open Source
  • 19
    Functional
  • 17
    Beautiful Code
  • 10
    Linux
  • 10
    Dynamic
  • 9
    Promotes safe, readable code
  • 8
    Protocol-oriented programming
  • 7
    Explicit optionals
  • 7
    No S-l-o-w JVM
  • 5
    Storyboard designer
  • 4
    Super addicting language, great people, open, elegant
  • 4
    Type safety
  • 4
    Optionals
  • 4
    Best UI concept
  • 3
    Feels like a better C++
  • 3
    Swift is faster than Objective-C
  • 3
    Faster and looks better
  • 2
    Easy to Maintain
  • 2
    Strong Type safety
  • 2
    Fail-safe
  • 2
    Its fun and damn fast
  • 2
    Highly Readable codes
  • 2
    Native
  • 2
    Protocol extensions
  • 2
    Powerful
  • 2
    Much more fun
  • 2
    Its friendly
  • 2
    Easy to learn and work
  • 1
    Protocol as type
  • 1
    Protocol oriented programming
  • 1
    Great for Multi-Threaded Programming
  • 1
    Objec
  • 1
    Type Safe
  • 1
    All Cons C# and Java Swift Already has
  • 1
    Free from Memory Leak
  • 1
    Swift is easier to understand for non-iOS developers.
  • 1
    Actually don't have to own a mac
  • 1
    Can interface with C easily
  • 1
    Esay
  • 1
    Numbers with underbar
  • 1
    MacOS
  • 1
    Optional chain

Sign up to add or upvote prosMake informed product decisions

Cons of C#
Cons of C++
Cons of Swift
  • 11
    Poor x-platform GUI support
  • 6
    Closed source
  • 6
    Requires DllImportAttribute for getting stuff from unma
  • 5
    Fast and secure
  • 7
    Slow compilation
  • 7
    Unsafe
  • 6
    Over-complicated
  • 6
    Fragile ABI
  • 5
    No standard/mainstream dependency management
  • 4
    Templates mess with compilation units
  • 3
    Too low level for most tasks
  • 1
    Compile time features are a mess
  • 1
    Template metaprogramming is insane
  • 1
    Segfaults
  • 1
    Unreal engine
  • 2
    Must own a mac
  • 2
    Memory leaks are not uncommon
  • 1
    Its classes compile to roughly 300 lines of assembly
  • 1
    Complicated process for exporting modules
  • 1
    Very irritatingly picky about things that’s
  • 1
    Is a lot more effort than lua to make simple functions
  • 0
    Overly complex options makes it easy to create bad code

Sign up to add or upvote consMake informed product decisions

- No public GitHub repository available -
- No public GitHub repository available -

What is C#?

C# (pronounced "See Sharp") is a simple, modern, object-oriented, and type-safe programming language. C# has its roots in the C family of languages and will be immediately familiar to C, C++, Java, and JavaScript programmers.

What is C++?

C++ compiles directly to a machine's native code, allowing it to be one of the fastest languages in the world, if optimized.

What is Swift?

Writing code is interactive and fun, the syntax is concise yet expressive, and apps run lightning-fast. Swift is ready for your next iOS and OS X project — or for addition into your current app — because Swift code works side-by-side with Objective-C.

Need advice about which tool to choose?Ask the StackShare community!

What companies use C#?
What companies use C++?
What companies use Swift?

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with C#?
What tools integrate with C++?
What tools integrate with Swift?

Sign up to get full access to all the tool integrationsMake informed product decisions

Blog Posts

May 6 2020 at 6:34AM
https://img.stackshare.io/stack/637945/default_422005e66f7e4963dbcd1f37cfb90fb3d562758a.png logo

Pinterest

JavaScriptC++Varnish+6
3
1798
Oct 24 2019 at 7:43PM
https://img.stackshare.io/stack/513891/default_86b138c409d64e353c3d509121b4ac1dd9cf31c4.png logo

AppSignal

JavaScriptNode.jsJava+8
5
660
GitHubPythonNode.js+47
43
67731
GitHubSlackNGINX+15
26
19709
What are some alternatives to C#, C++, and Swift?
C
Python
Python is a general purpose programming language created by Guido Van Rossum. Python is most praised for its elegant syntax and readable code, if you are just beginning your programming career python suits you best.
JavaScript
JavaScript is most known as the scripting language for Web pages, but used in many non-browser environments as well such as node.js or Apache CouchDB. It is a prototype-based, multi-paradigm scripting language that is dynamic,and supports object-oriented, imperative, and functional programming styles.
PHP
Fast, flexible and pragmatic, PHP powers everything from your blog to the most popular websites in the world.
HTML5
HTML5 is a core technology markup language of the Internet used for structuring and presenting content for the World Wide Web. As of October 2014 this is the final and complete fifth revision of the HTML standard of the World Wide Web Consortium (W3C). The previous version, HTML 4, was standardised in 1997.
See all alternatives
Interest over time
News about C++
More news