Live data from Hacker News

Has Python killed Ruby?

news.ycombinator.com

61–64 of 64 posts

Re: Has Python killed Ruby?

#61

I've used Python for about about eight years, and Ruby for right at six months. It took me about a week to feel competent in Ruby, and about a month before I was really comfortable with all of the metaprogramming functionality. Add another month to that before I really grokked ActiveRecord. I much prefer Python. I thought for a long time that this was because I learned most of the fundamentals of computer science and…

I think you mixed things a little bit. Where does ruby (the language) uses "convention over configuration"? I see frameworks using this but not the language itself. If you dont like ruby on rails, thats fine, I dont like either. But that has nothing to do with the language itself.

When you talk about "functions are not first class objects", do you mean you cannot assign it to a var? Well thats because they are not functions, they are methods. I think thats great. A method belongs to a class. Thats how Smalltalk also implemented it, as far as I know. In fact Ruby and smalltalk (the mother of all OO languages) shares a lot in common.

If you like functional programming style, thats fine, but yeah then maybe you should use haskell, erlang, elixir, ...

Re: Has Python killed Ruby?

#62
Ruby created to build a DSL and accordingly allows to patch all that is possible and it sometimes causes a long search for bugs.

Python quality libraries seems better. for Example: I have not found a good HTTP client like Python's Requests or Guzzle from Php

Re: Has Python killed Ruby?

#63
post #62

Ruby created to build a DSL and accordingly allows to patch all that is possible and it sometimes causes a long search for bugs. Python quality libraries seems better. for Example: I have not found a good HTTP client like Python's Requests or Guzzle from Php

>I have not found a good HTTP client like Python's Requests or Guzzle from Php

Have you tried HTTParty? https://github.com/jnunemaker/httparty

Re: Has Python killed Ruby?

#64

Earlier quoted context omitted.

> For package management, I think npm is on par with bundler NPM is non-deterministic and doesn't have lockfiles, so it's a bit of a stretch to say it's on par with Bundler. Yarn solves both those problems for JavaScript projects, and it's much faster.

Right, you have add on npm-shrinkwrap if you want to lock everything down (which I do use for some projects). Yarn may well be better than npm, in fact, as far as I can tell it is, but, frankly, npm works well and I'm tired of switching js dependencies, especially really core dependencies like a package manager. I'm hoping npm just steals whatever yarn does better than it so that I never need to switch... Bundler is…

> Yarn may well be better than npm, in fact, as far as I can tell it is, but, frankly, npm works well and I'm tired of switching js dependencies, especially really core dependencies like a package manager...

Yarn still uses your package.json. I think it will definitely win out over directly using npm since it is better in a couple of ways and, from a user perspective, is just a thin wrapper around the things you're already used to doing. Ways my workflow has changed:

npm install . -> yarn

npm save --dev pkg -> yarn add --dev pkg

npm save pkg -> yarn add pkg

npm run command -> yarn run command

If you start using it and dislike it, just npm uninstall -g yarn, rm the yarn.lock file and bam, you've still got a normal npm dependency management setup.

> If yarn were available for python, I'd switch to it today

Project worth keeping your eye on: https://github.com/kennethreitz/pipenv/blob/master/README.rs...

Post reply on HN