Ask HN: Ruby or Python for 2018?
11–20 of 39 posts
Re: Ask HN: Ruby or Python for 2018?
#12Have you looked at Elixir / Phoenix? http://phoenixframework.org/ It has some Rails roots, so you might like it.
Re: Ask HN: Ruby or Python for 2018?
#13Personally, I'm a big fan of Rails and Flask and use both on a regular basis.
You may also want to give this a read:
https://nickjanetakis.com/blog/it-doesnt-matter-what-web-fra...
Re: Ask HN: Ruby or Python for 2018?
#14Re: Ask HN: Ruby or Python for 2018?
#15Is this sentiment common? It might be just my personal echo chamber but I've often heard the opposite stance, i.e. people saying they hate Rails because of all the "magic" but at the same time they like Ruby as a language because of its flexibility.
Re: Ask HN: Ruby or Python for 2018?
#16> Rails is awesome but people hate Ruby Is this sentiment common? It might be just my personal echo chamber but I've often heard the opposite stance, i.e. people saying they hate Rails because of all the "magic" but at the same time they like Ruby as a language because of its flexibility.
All of my ETL pipelines are built in Ruby and I wouldn't have it another way. From a development, support and deployment persective, Jekyll is hands-down the best "web framework" I've ever worked with. If you need to build websites that don't need sessions/accounts, there isn't a better tool. NGINX's SSI module fills in some (tiny) gaps.
Ruby's a great language with a healthy set of tools. It's just not popular among people making CRUD apps right now.
To most folks though, unless they're already Ruby developers (AND not a Rails shop), Ruby and Rails might as well be the same thing.
Re: Ask HN: Ruby or Python for 2018?
#17I also think that once you learn Python, a lot of other languages' syntax (such as Go and C# for me) becomes more approachable.
Re: Ask HN: Ruby or Python for 2018?
#18Django, a highly competitive web framework. With great extensions like Django REST Framework. Assets with django-webpack-loader. So on. It may not be as good as Laravel or Rails, but they're all really active.
But the thing that makes Python best is the web framework is where it begins, not where it ends:
Want text analysis? NLTK or spaCy
Data? Pandas, numpy, pytables
Want more analysis? scikit-learn, tensorflow, theano.
Solid language standards? PEP8 and PEP257 makes most python code you see in open source very conformant
Test framework? pytest. And its plugins. tox for testing against a matrix of python versions/settings (kinda like Travis).
Handling environments + packages easily? pipenv
Multiple python versions? pyenv
Editor integration? Jedi + python-mode for VIM, VSCode, Atom, Python
Images / Graphics? pillow
Super-powered REPL? ptpython
Deployment? Fabric, Ansible, Saltstack
Documentation? Sphinx, Docutils
Want C/C++ integration/performance? pybind11, cython, CFFI, swig
Mobile dev? kivy (though I wouldn't say it's the best yet, when I tried it, setup was easier than react-native)
And that's just scratching the surface. Python has high quality, permissively-licensed libraries, with solid documentation. A lot of the plugins I mentioned above for handling data use C-level speedups. Of these, tensorflow, and Theano can use GPU speedups.
Rails is fantastic. I like guard and the asset pipeline. But I just learned to use GNU Make's "$ make -j task1 task2" and django-webpack-loader. I also hear good things about Laravel in PHP.
Re: Ask HN: Ruby or Python for 2018?
#19> Rails is awesome but people hate Ruby Is this sentiment common? It might be just my personal echo chamber but I've often heard the opposite stance, i.e. people saying they hate Rails because of all the "magic" but at the same time they like Ruby as a language because of its flexibility.
The Ruby job market outside of Rails is tiny, unfortunately. Most folks never bothered to look. DevOps and InfoSec folks tend to know better -- Chef, Puppet, Capistrano, Vagrant, Logstash, Metasploit, Homebrew, Sass... all written in Ruby) All of my ETL pipelines are built in Ruby and I wouldn't have it another way. From a development, support and deployment persective, Jekyll is hands-down the best "web framework" I…
we have switched to python for our FaaS but only because of lack of Ruby support from AWS lambda.