Need advice about which tool to choose?Ask the StackShare community!
MEAN vs Play: What are the differences?
MEAN: A Simple, Scalable and Easy starting point for full stack javascript web development. MEAN (Mongo, Express, Angular, Node) is a boilerplate that provides a nice starting point for MongoDB, Node.js, Express, and AngularJS based applications. It is designed to give you a quick and organized way to start developing MEAN based web apps with useful modules like Mongoose and Passport pre-bundled and configured; Play: The High Velocity Web Framework For Java and Scala. Play Framework makes it easy to build web applications with Java & Scala. Play is based on a lightweight, stateless, web-friendly architecture. Built on Akka, Play provides predictable and minimal resource consumption (CPU, memory, threads) for highly-scalable applications.
MEAN and Play can be primarily classified as "Frameworks (Full Stack)" tools.
"Javascript", "Easy" and "Nosql" are the key factors why developers consider MEAN; whereas "Scala", "Web-friendly architecture" and "Built on akka" are the primary reasons why Play is favored.
MEAN and Play are both open source tools. MEAN with 11.8K GitHub stars and 3.57K forks on GitHub appears to be more popular than Play with 11.2K GitHub stars and 3.77K GitHub forks.
According to the StackShare community, Play has a broader approval, being mentioned in 112 company stacks & 47 developers stacks; compared to MEAN, which is listed in 37 company stacks and 24 developer stacks.
In the past few months, a project we're working on grew up quite fast. Since we're adding more and more features, I'm considering migrating my Express/TS REST API towards a more solid and more "enterprise-like" framework. Since I am experienced with TypeScript but not so much with Rails nor Play (Scala), I'd like to have some advice on which one could provide the best development experience, and most importantly, the smoothest paradigm transition from the JS/TS world. I've worked on some personal project with Rails, but I've found the Ruby language really distant from what the TypeScript ecosystem and syntax are, whereas on the opposite - during the brief tours I've taken in the past weeks - it's been a pleasure coding in Scala. Obviously, there are some key differences between the two languages - and the two frameworks consequently - but despite all the ROR automation and ease of use I don't despise at all Scala's pragmatic and great features such as static typing, pattern matching, and type inference. So... Please help me out with the choice! Regards
I don't have the Scala experience to compare the two, but I can say that Ruby is a wonderful language. For procedural programming where you don't need a lot of concurrent execution threads, it's superior to Node.JS in my opinion. All of the concepts from Typescript have equivalent syntax in Ruby, but there are fewer symbols (e.g. () => { ... }); ) and more keywords (eg 'do ... end'). It's a very flexible language and allows for a lot of different approaches to how it's written, so coding standards and careful organization is important. In the long run, however, you'll find it quicker to debug than Node.JS and just as powerful.
If you are comfortable with TypeScript, why not evolve to a C# ecosystem? Asp.Net Core + Entity Framework is a mature and well supported technology. As far as I can see in the enterprise market, the most adopted choice is still Java. So, maybe you may have a look to SpringBoot - and ultimately Quarkus.
This is advice regardless of your background and requirements. The Play framework has a terrible and complicated design, don't risk it. I even suggest Spring and Kotlin over it! You can use Scala for small services and Data Engineering stuff and benefit optimizations and threading of JVM. RoR, on the other hand, has a huge development speed, which I believe is a big advantage cause you can handle performance bottlenecks later. Also, Scala has another downside, which is featureful in terms of OO and FP paradigms, which makes anyone write code freely with any personal style and makes it a problem in a team, Hence a coding style has to be defined if there would be Scala development team.
If software performance is your top priority, then Scala/Play is probably best. If developer productivity is your top priority, then Ruby on Rails is the best choice in my opinion.
The Rails framework is batteries-included. The framework takes care of many things by default so that you don't have to. Logging, security, etc. It's also well-integrated; for example, controllers understand models out of the box. I had a better experience with RoR than with Play.
On the other hand, Scala and the JVM are more performant in general, so they can scale to serve more requests per second on the same hardware.
If you're considering serverless functions, then Scala is probably a better choice because it would be faster to load, giving you better economics.
Pros of MEAN
- Javascript86
- Easy62
- Nosql58
- Great community52
- Mongoose50
- Modularity50
- Open source48
- Organized37
- Simple32
- Boilerplate31
- AngularJs10
- CLI9
- It's simply awesome9
- Cutting edge tech8
- Passport7
- It's a great new exciting stack6
- Yeoman6
- Docs6
- Friendly & Fun5
- Great Flexibility ;)4
- The WordPress of javascript apps4
- Genius3
- Modular2
- Scalable2
- JavaScript only2
- Growing Community1
- It's fun and has great potential1
- Gulp1
- Because i can write everything using javascript1
- Fast1
- The best0
Pros of Play
- Scala81
- Web-friendly architecture55
- Built on akka55
- Stateless50
- High-scalable47
- Fast46
- Open source40
- Java34
- High velocity27
- Fun24
- Lightweight9
- Non-blocking io8
- Developer friendly6
- Simple template engine5
- Scalability4
- Pure love3
- Resource efficient2
Sign up to add or upvote prosMake informed product decisions
Cons of MEAN
Cons of Play
- Evolves fast, keep up with releases3
- Unnecessarily complicated1