DEV Community

loading...

Flask vs Rails?

jkyereh profile image Josh Single ・1 min read

Which one seems easy to pick up for a beginner?

Discussion (4)

pic
Editor guide
Collapse
andyrosenberg profile image
AndyRosenberg • Edited

Flask to Rails is an apples to oranges comparison in a few ways. Flask is a Python micro-framework, so there’s not much that comes out-of-the-box, while Rails is a large Ruby framework, with a large amount of abstraction and opinionated features. Each has a learning curve. Flask’s is around implementing more of your own libraries and solutions, and Rails’ is around learning the “Rails way” to do everything. First thing I would do is pick one language — Ruby or Python, and start learning fundamentals of that language before studying the domain-specific knowledge of any framework.

Collapse
alexandreamadocastro profile image
Alexandre Amado de Castro • Edited

A more fair comparison would be Flask to Rack and Django to Rails, what you think?

Collapse
andyrosenberg profile image
AndyRosenberg • Edited

Yeah more or less. In the Ruby world, Sinatra and Roda are most akin to Flask, providing slightly more out of the gate than request-wrapping.

Collapse
jkyereh profile image
Josh Single Author

Ok, so I was looking at it from the perspective of a new coder trying to learn a framework for back end, in terms of it's ease to grasps...

But I get it now, flask is very different from Rails, perhaps sticking to Rails will be ideal