Need advice about which tool to choose?Ask the StackShare community!
Grails vs Yii: What are the differences?
Grails: An Open Source, full stack, web application framework for the JVM. Grails is a framework used to build web applications with the Groovy programming language. The core framework is very extensible and there are numerous plugins available that provide easy integration of add-on features; Yii: A high-performance PHP framework best for developing Web 2.0 applications. Yii comes with: MVC, DAO/ActiveRecord, I18N/L10N, caching, authentication and role-based access control, scaffolding, testing, etc. It can reduce your development time significantly.
Grails and Yii can be primarily classified as "Frameworks (Full Stack)" tools.
"Groovy" is the primary reason why developers consider Grails over the competitors, whereas "Open source" was stated as the key factor in picking Yii.
Grails and Yii are both open source tools. Yii with 4.86K GitHub stars and 2.22K forks on GitHub appears to be more popular than Grails with 2.48K GitHub stars and 945 GitHub forks.
According to the StackShare community, Yii has a broader approval, being mentioned in 58 company stacks & 32 developers stacks; compared to Grails, which is listed in 47 company stacks and 22 developer stacks.
This website was originally written in Yii as PHP was my main language back then. After learning Django, I realized just how quickly you could build a web app with less lines. So I migrated my website to Django in a week or two and managed to cut down the lines of code by half. Some of the lines saving came from the models, the views, and the expressiveness of Python. Django requires like config for the models and they provide many generic views that abstracts away common patterns.
Pros of Grails
- Groovy56
- Jvm40
- Rapid development38
- Gorm37
- Web framework30
- Open source25
- Plugins21
- Extensible17
- Easy17
- Dynamic14
- Clean architecture (Dependency Injection)6
- Gradle6
- Clear what everything does, lots of options5
- RAD4
- Agile4
- Great documentation4
- Android3
- Spring3
- Easy setup2
- Java web apps with steroid1
Pros of Yii
- Open source42
- Code generator33
- Simple33
- Active record29
- Full featured26
- Documentation21
- High performance21
- Rapid development20
- Flexible16
- Mvc11
- Not bloated10
- Stable Release8
- Community8
- Amazing8
- View Helpers7
- Modular architecture6
- Long Term Support6
- Easy setup, easy develop5
- Easy1
Sign up to add or upvote prosMake informed product decisions
Cons of Grails
- Frequent breaking changes3
- Undocumented features2
Cons of Yii
- Unnatural love of arrays2
- Promotes spagetti code1
- Too Opinionated1
- Promotes bad practice1