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

.NET

10.1K
5.8K
+ 1
1.9K
Flask

19K
16K
+ 1
66
Add tool

.NET vs Flask: What are the differences?

Microsoft's .NET and Flask are both popular frameworks used for web development. Let's explore the key differences between them.

  1. Platform Support: .NET is developed by Microsoft and primarily runs on Windows, although it can also run on Linux and macOS through the .NET Core framework. In contrast, Flask is a Python web framework and is compatible with various operating systems, including Windows, Linux, and macOS.

  2. Language: .NET supports multiple languages, including C#, Visual Basic, and F#. Developers can choose the language that best suits their project requirements. On the other hand, Flask is strictly Python-based, meaning developers must be proficient in Python to work with Flask.

  3. Scalability: .NET is known for its scalability, as it provides built-in features like asynchronous programming, multiple threading models, and the ability to handle high traffic scenarios. Flask, being a lightweight framework, is not as scalable as .NET and may require additional configurations or tools to handle large-scale applications.

  4. Ecosystem and Community: .NET has a mature ecosystem with a wide range of tools, libraries, and frameworks readily available, making it easier for developers to build complex applications. Additionally, .NET has a strong and active community, providing ample support and resources. Flask, although not as extensive, has a growing ecosystem and a dedicated community of Python developers supporting it.

  5. Development Philosophy: .NET follows a more robust and opinionated approach, providing developers with a set of conventions and guidelines to follow. This can be beneficial for developers looking for structure and consistency. Flask, on the other hand, promotes a more flexible and minimalist approach, allowing developers to have more freedom and control over the development process.

  6. Integration with Existing Systems: .NET is widely used in enterprise environments and offers seamless integration with other Microsoft technologies and frameworks like SQL Server, Azure, and SharePoint. Flask, being a Python framework, can also integrate with various systems and libraries, but the level of integration may vary depending on the specific tools and libraries being used.

In summary, .NET, developed by Microsoft, is a comprehensive framework that supports multiple languages like C#, F#, and Visual Basic, providing extensive libraries and tools for building diverse types of applications, including web, mobile, desktop, and cloud-based solutions. In contrast, Flask, a lightweight micro-framework written in Python, offers simplicity and flexibility, making it ideal for small to medium-sized web applications and APIs, with a focus on minimalism and ease of use.

Advice on .NET and Flask
kristan-dev
Senior Solutions Analyst · | 8 upvotes · 372.1K views

My journey to developing REST APIs started with Flask Restful, and I've found it to be enough for the needs of my project back then. Now that I've started investing more time on personal projects, I've yet to decide if I should move to use Django for writing REST APIs. I often see job posts looking for Python+Django developers, but it's usually for full-stack developers. I'm primarily interested in Data Engineering, so most of my web projects are back end.

Should I continue with what I know (Flask) or move on to Django?

See more
Replies (1)
Rafael Torres
Technical Lead at 4Agile · | 9 upvotes · 362.2K views

If you want to be a Web developer with knowledge in another frontend and NoSql technology, maybe continue with Flask. However, if you want to create very fast solutions to grow up with a new business and merge these with data analysis and other tools, Django is the answer. Basically read more about the service architecture where you feel more comfortable, Microservice or Monolithic, but please will not married with any because they solve issues to different contexts.

See more
Girish Sharma
Software Engineer at FireVisor Systems · | 6 upvotes · 294.7K views
Needs advice
on
BottleBottleFlaskFlask
and
NamekoNameko

Which is the best Python framework for microservices?

We are using Nameko for building microservices in Python. The things we really like are dependency injection and the ease with which one can expose endpoints via RPC over RabbitMQ. We are planning to try a tool that helps us write polyglot microservices and nameko is not super compatible with it. Also, we are a bit worried about the not so good community support from nameko and looking for a python alternate to write microservices.

See more
Replies (1)
Recommends
on
BottleBottle

Bottle is much less bloated and fast. Its built-in templating system is one of the fastest as it compiles the templates in bytecode. Also Bottle has no depenencies, preventing dependency bloat.

See more
Saurav Pandit
Application Devloper at Bny Mellon · | 6 upvotes · 317.3K views

I have just started learning Python 3 weeks ago. I want to create a REST API using python. The API will be used to save form data in an Oracle database. The front end is using AngularJS 8 with Angular Material. In python, there are so many frameworks to develop REST APIs.

I am looking for some suggestions which REST framework to choose?

Here are some features I am looking for:

  • Easy integration and unit testing, like in Angular. We just want to run a command.

  • Code packaging, like in java maven project we can build and package. I am looking for something which I can push in as an artifact and deploy whole code as a package.

  • Support for swagger/ OpenAPI

  • Support for JSON Web Token

  • Support for test case coverage report

Framework can have features included or can be available by extension. Also, you can suggest a framework other than the ones I have mentioned.

See more
Replies (1)
Recommends
on
FlaskFlask
at

For starters flask provides a beautiful and easy way to create REST APIs. Also its supported by excellent beginner docs as well as a very active community. Another good thing with Flask is its widely available list of plugins which allow you to build as you go. Its also good in performance and can scale to a quite decent level. However, if you are sure your project is going to be fairly big, it would be better to start with Django as it provides a lot of features out of the box and is extremely stable in performance. Both these frameworks have support for Swagger, JWT, Coverage Report although you have to install plugins for them. Deploying both of these are fairly simple and there is huge documentation available. Django has one of the best documentations I have come across. I hope I was able to answer your queries.

See more
Decisions about .NET and Flask
Ing. Alvaro Rodríguez Scelza
Software Systems Engineer at Ripio · | 9 upvotes · 504.5K views

Decided to change all my stack to microsoft technologies for they behave just great together. It is very easy to set up and deploy projects using visual studio and azure. Visual studio is also an amazing IDE, if not the best, when used for C#, it allows you to work in every aspect of your software.

Visual studio templates for ASP.NET MVC are the best I've found compared to django, rails, laravel, and others.

See more
Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of .NET
Pros of Flask
  • 272
    Tight integration with visual studio
  • 261
    Stable code
  • 190
    Great community
  • 182
    Reliable and strongly typed server side language.
  • 140
    Microsoft
  • 119
    Fantastic documentation
  • 89
    Great 3rd party libraries
  • 80
    Speedy
  • 71
    Great azure integration
  • 63
    Great support
  • 34
    Highly productive
  • 34
    Linq
  • 34
    C#
  • 31
    High Performance
  • 28
    Great programming languages (C#, VB)
  • 26
    Open source
  • 19
    Powerful Web application framework (ASP.NET MVC)
  • 16
    Fast
  • 16
    Clean markup with razor
  • 15
    Powerful ORM (EntityFramework)
  • 14
    Dependency injection
  • 10
    Visual studio + Resharper = <3
  • 10
    Constantly improving to keep up with new trends
  • 9
    High-Performance
  • 8
    TFS
  • 8
    Security
  • 7
    Job opportunities
  • 7
    Integrated and Reliable
  • 7
    Huge ecosystem and communities
  • 6
    Light-weight
  • 6
    Lovely
  • 5
    {get; set;}
  • 5
    Variations
  • 5
    Asynchrony
  • 4
    Scaffolding
  • 4
    Support and SImplicity
  • 4
    Default Debuging tools
  • 4
    Concurrent
  • 4
    Useful IoC
  • 4
    Entity framework
  • 3
    Nuget package manager
  • 3
    Blazor
  • 2
    F♯
  • 10
    For it flexibility
  • 9
    Flexibilty and easy to use
  • 8
    Flask
  • 7
    User friendly
  • 6
    Secured
  • 5
    Unopinionated
  • 2
    Secure
  • 1
    Customizable
  • 1
    Simple to use
  • 1
    Powerful
  • 1
    Rapid development
  • 1
    Beautiful code
  • 1
    Easy to develop and maintain applications
  • 1
    Easy to setup and get it going
  • 1
    Easy to use
  • 1
    Documentation
  • 1
    Python
  • 1
    Minimal
  • 1
    Lightweight
  • 1
    Easy to get started
  • 1
    Orm
  • 1
    Not JS
  • 1
    Perfect for small to large projects with superb docs.
  • 1
    Easy to integrate
  • 1
    Speed
  • 1
    Get started quickly
  • 0
    Open source
  • 0
    Well designed
  • 0
    Flexibilty
  • 0
    Productive
  • 0
    Awesome
  • 0
    Expressive
  • 0
    Love it

Sign up to add or upvote prosMake informed product decisions

Cons of .NET
Cons of Flask
  • 13
    C#
  • 12
    Too expensive to deploy and maintain
  • 8
    Microsoft dependable systems
  • 8
    Microsoft itself
  • 5
    Hard learning curve
  • 3
    Tight integration with visual studio
  • 3
    Not have a full fledged visual studio for linux
  • 1
    Microsoft itself 🤡🥲
  • 10
    Not JS
  • 7
    Context
  • 5
    Not fast
  • 1
    Don't has many module as in spring

Sign up to add or upvote consMake informed product decisions

- No public GitHub repository available -

What is .NET?

.NET is a general purpose development platform. With .NET, you can use multiple languages, editors, and libraries to build native applications for web, mobile, desktop, gaming, and IoT for Windows, macOS, Linux, Android, and more.

What is Flask?

Flask is intended for getting started very quickly and was developed with best intentions in mind.

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

Jobs that mention .NET and Flask as a desired skillset
What companies use .NET?
What companies use Flask?
Manage your open source components, licenses, and vulnerabilities
Learn More

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

What tools integrate with .NET?
What tools integrate with Flask?

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

Blog Posts

What are some alternatives to .NET and Flask?
ASP.NET
.NET is a developer platform made up of tools, programming languages, and libraries for building many different types of applications.
Java
Java is a programming language and computing platform first released by Sun Microsystems in 1995. There are lots of applications and websites that will not work unless you have Java installed, and more are created every day. Java is fast, secure, and reliable. From laptops to datacenters, game consoles to scientific supercomputers, cell phones to the Internet, Java is everywhere!
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.
PHP
Fast, flexible and pragmatic, PHP powers everything from your blog to the most popular websites in the world.
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