Ask HN: Stick with Flask or Learn Ruby on Rails?
There is way too much 'learning cruft' everywhere in my code and some functionality I want to changed so am starting fresh with some more recent boilerplate. My problem started when I went to update dependencies & found that several of the flask extensions I rely on have not been updated in a very long time (years). And adding salt to the wound is I have found several of them have been forked by someone saying like 'i had to fix this thing about the original extension so just made my own copy of it'. i honestly can't tell if flask & it's extensions are just so rock solid that they don't need to be touched or if half of it is just abandoned or in maintenance mode.
so, ruby on rails. I am a one-man shop and don't have time to be keeping up with my framework and I love the idea that there is a committed group out there making sure this framework stays updated and on top of any issues. i like that every thing I could need to do with my app has been well thought out and thorough documentation/tutorials provided for it. i can't help but think that investing a few weeks to convert my knowledge of python/flask to ruby/rails is going to save me months on the back-end. but i'm really afraid to let go of all the time i have invested in the flask-version of my app. all the query syntax and work-arounds and utility functions i have built up will all need to be converted over. it seems like a horribly daunting task. my gut tells me it would be worth it but my mind tells me to just move forward with what I have and deal with the consequences when/if they get here.
HN, what would you do?
11 comments
[ 3.5 ms ] story [ 33.2 ms ] threadI'm a huge Flask user, with projects with 50+ Flask extensions installed. Most of them I just plugged in and never had issues. Some issues I had were easy to patch and most of them were fixed upstream.
You have some complex extensions, but a lot of them are just small wrappers, so it is possible it's just good enough and feature complete.
Kind of disconcerting to go to Github to lodge a suspected bug report on a gem we use every day, and see that the last commit was 6 years ago!
Learn to program and do it yourself if you don't find a library/gem. THIS is the solution (anyway in any platform/framework you'll have the 'main' libraries/gems updated...)
Stuck with what you know better and hack a product.
i do love flask itself but something about tacking on all the extensions to build it up to be a full-size framework feels super hacky to me...
Can you try rewriting in RoR/Elixir/NewShiny to see if that feeling goes away? Would you lose clients because of the switch to RoR?
All good items to ponder - that would be my thought process.I hope it helped.
i guess i do have the "benefit" of having no clients i would lose by switching. just my own time and the potential that i'd have a harder time tackling future issues involving magic i dont understand