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

ASP.NET

28.1K
11.3K
+ 1
40
C++

16.9K
9.1K
+ 1
845
Add tool

ASP.NET vs C++: What are the differences?

Introduction

ASP.NET and C++ are both programming languages commonly used in web development and software engineering. While they share some similarities, there are several key differences between the two.

  1. Syntax: ASP.NET is a framework built on top of the C# programming language, which means it follows the syntax rules and conventions of C#. On the other hand, C++ has its own unique syntax and rules that are different from C#.

  2. Purpose: ASP.NET is primarily used for web development, allowing developers to build dynamic web applications. C++, on the other hand, is a general-purpose programming language that can be used for a wide range of applications, including desktop and mobile development, gaming, and system programming.

  3. Memory Management: In ASP.NET, memory management is handled by the framework itself, with automatic garbage collection to reclaim memory when objects are no longer in use. In C++, developers have direct control over memory management, with the ability to allocate and deallocate memory manually.

  4. Performance: C++ is known for its high performance and efficiency, making it a popular choice for applications that require speed and resource optimization. ASP.NET, while still performant, may have some overhead due to its framework and runtime environment.

  5. Platform Independence: ASP.NET is primarily built for the Windows platform and relies on the .NET Framework or .NET Core runtime. C++, on the other hand, is a cross-platform language that can be used on various operating systems, including Windows, Linux, and macOS.

  6. Level of Abstraction: ASP.NET, being a framework, provides a higher level of abstraction, with built-in libraries and controls for web development tasks. C++, being a lower-level language, requires more manual coding and offers more control over hardware resources.

In summary, ASP.NET is a framework for web development with a focus on simplicity and productivity, while C++ is a versatile programming language known for its performance, control, and portability.

Decisions about ASP.NET and C++
Christopher Wray
Web Developer at Soltech LLC · | 6 upvotes · 385.6K views

When I started on this project as the sole developer, I was new to web development and I was looking at all of the web frameworks available for the job. I had some experience with Ruby on Rails and I had looked into .net for a bit, but when I found Laravel, it felt like the best framework for me to get the product to market. What made me choose Laravel was the easy to read documentation and active community. Rails had great documentation, but lacked some features built in that I wanted out of the box, while .net had a ton of video documentation tutorials, but nothing as straightforward as Laravels. So far, I am happy with the decision I made, and looking forward to the website release!

See more
Alexander Krylkov
Sofrware Architect at Air Astana · | 2 upvotes · 211.1K views

Comparing to ASP.NET Core MVC or ASP.NET Core Web API Simplify.Web allows you to easily build your web-site or REST API without any additional/complicated setup, covering cases like localization by default. It's projects structure very lightweight, just a minimum amount of what you need to setup ASP.NET Core request pipeline.

It is build on top of Simplify.DI IOC container abstraction, no dependency on Microsoft.Extensions.DependencyInjection and it's syntax. You can easily switch between DryIoc, SimpleInjector, CastleWindsor etc.

Any internal module of Simplify.Web can be easily replaced on extended by your custom module, covering your custom cases.

For HTML pages generation Simplify.Templates can be used allowing you to use just regular plain HTML without additional setup.

Can be easily integrated with Simplify.WindowsServices converting your web application not just to web-application, but a standalone windows service which can also do some background jobs via Simplify.WindowsServices.

And it is open source, of course :)

See more
Russtopia Labs
Sr. Doodad Imagineer at Russtopia Labs · | 0 upvote · 199.1K views

As a personal research project I wanted to add post-quantum crypto KEM (key encapsulation) algorithms and new symmetric crypto session algorithms to openssh. I found the openssh code and its channel/context management extremely complex.

Concurrently, I was learning Go. It occurred to me that Go's excellent standard library, including crypto libraries, plus its much safer memory model and string/buffer handling would be better suited to a secure remote shell solution. So I started from scratch, writing a clean-room Go-based solution, without regard for ssh compatibility. Interactive and token-based login, secure copy and tunnels.

Of course, it needs a proper security audit for side channel attacks, protocol vulnerabilities and so on -- but I was impressed by how much simpler a client-server application with crypto and complex terminal handling was in Go.

$ sloc openssh-portable 
  Languages  Files    Code  Comment  Blank   Total  CodeLns
      Total    502  112982    14327  15705  143014   100.0%
          C    389  105938    13349  14416  133703    93.5%
      Shell     92    6118      937   1129    8184     5.7%
       Make     16     468       37    131     636     0.4%
        AWK      1     363        0      7     370     0.3%
        C++      3      79        4     18     101     0.1%
       Conf      1      16        0      4      20     0.0%
$ sloc xs
  Languages  Files  Code  Comment  Blank  Total  CodeLns
      Total     34  3658     1231    655   5544   100.0%
         Go     19  3230     1199    507   4936    89.0%
   Markdown      2   181        0     76    257     4.6%
       Make      7   148        4     50    202     3.6%
       YAML      1    39        0      5     44     0.8%
       Text      1    30        0      7     37     0.7%
     Modula      1    16        0      2     18     0.3%
      Shell      3    14       28      8     50     0.9%

https://gogs.blitter.com/RLabs/xs

See more
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of ASP.NET
Pros of C++
  • 21
    Great mvc
  • 13
    Easy to learn
  • 6
    C#
  • 202
    Performance
  • 106
    Control over memory allocation
  • 97
    Cross-platform
  • 96
    Fast
  • 84
    Object oriented
  • 57
    Industry standard
  • 47
    Smart pointers
  • 37
    Templates
  • 16
    Gui toolkits
  • 16
    Raii
  • 13
    Generic programming
  • 13
    Control
  • 13
    Flexibility
  • 11
    Metaprogramming
  • 9
    Hardcore
  • 5
    Simple
  • 5
    Full-fledged containers/collections API
  • 5
    Many large libraries
  • 4
    Performant multi-paradigm language
  • 4
    Large number of Libraries
  • 3
    Way too complicated
  • 1
    Close to Reality
  • 1
    Plenty of useful features

Sign up to add or upvote prosMake informed product decisions

Cons of ASP.NET
Cons of C++
  • 2
    Entity framework is very slow
  • 1
    C#
  • 1
    Not highly flexible for advance Developers
  • 8
    Slow compilation
  • 8
    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

Sign up to add or upvote consMake informed product decisions

What is ASP.NET?

.NET is a developer platform made up of tools, programming languages, and libraries for building many different types of applications.

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.

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

What companies use ASP.NET?
What companies use C++?
See which teams inside your own company are using ASP.NET or C++.
Sign up for StackShare EnterpriseLearn More

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

What tools integrate with ASP.NET?
What tools integrate with C++?

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

Blog Posts

May 6 2020 at 6:34AM

Pinterest

JavaScriptC++Varnish+6
5
3365
Oct 24 2019 at 7:43PM

AppSignal

JavaScriptNode.jsJava+8
5
954
GitHubSlackNGINX+15
28
20917
What are some alternatives to ASP.NET and C++?
ASP.NET Core
A free and open-source web framework, and higher performance than ASP.NET, developed by Microsoft and the community. It is a modular framework that runs on both the full .NET Framework, on Windows, and the cross-platform .NET Core.
PHP
Fast, flexible and pragmatic, PHP powers everything from your blog to the most popular websites in the world.
Django
Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
React
Lots of people use React as the V in MVC. Since React makes no assumptions about the rest of your technology stack, it's easy to try it out on a small feature in an existing project.
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.
See all alternatives