4 ms·
> why do I have to type so much? As someone who came to it from Ruby, that is often my question about Python :)
by BurningFrog 8y ago
> why do I have to type so much?
As someone who came to it from Ruby, that is often my question about Python :)
- zmmmmm 8y agoSame from Groovy! I can understand why a lot of people start with Python. I can't work out why they stick with it once they become more advanced and understand its limitations though.
- somada141 8y agoI feel it really depends on one's background. I'm doing backend with Python now but came from academia where Matlab used to be the tool/language of choice. However, more and more academics got sick of working in that walled garden and paying oodles of money to use it and Python was a fantastic alternative to that. I believe that if you're walking the line between software-development and data-science Python does an excellent job of bridging the two.
- vorg 8y agoAbout 8 years ago, I moved on from Apache Groovy to Clojure which is far less verbose. Well placed macros in a testing script reduces a lot of clutter. Clojure has a longer ramp-up time than Groovy though, but once mastered is far more effective. I stayed with Clojure until I moved off the JVM about 5 years ago.
- zmmmmm 8y agoI am curious where you ended up? I have not found any substitute for the JVM for a flexible, rapid development yet high performance, stable and mature environment with a large base of library and deployment option support.
- robben1234 8y agoI'm a Python developer (web back) who occasionally does some fixes on legacy RoR project and I always ask myself why does Ruby needs so much sugar. Also it does not look very consistent to me, but it's probably because I get to practice only once in a couple of months. After Java, CPP and Node, Python looks to me as the greatest of all. Syntax is just comes to you and usually does not produce problems. And Python even right now has so many areas of application, and does it without much compromises, that I wonder why would I want to change anything.
- rckclmbr 8y agoI programmed in python for years, am starting to code in javascript/node and am really liking it. Typing in python is weird, i much prefer flow/typescript. Async in python has a history of being weird, from twisted, to yield from, and finally to async/await (which still has some issues, but is much better). I thought javascripts "callback hell" actually made sense, promises made it easier, and now async/await which works great. Pip has a long way to go to catch up to npm/yarn (i cant believe im saying that). Virtualenvs are weird, even though node_modules can be bloated i think its a lot more intuitive. Anyway, long winded answer that i think i prefer node after a lifetime of python
- BurningFrog 8y agopipenv replaces pip and virtualenv, and is actually decent.
- xkcd-sucks 8y agoPipenv looks good on paper, but it is a total trap. Pipenv breaks differently on every single release. The user experience is absolutely hideous. I am currently in my third hour of getting a pipenv+pyenv python project running. I started the project this past summer, and have reinstalled it three times. Each time I have spent 3-6 hours getting pipenv working, and each time the errors/problems/workarounds are completely different!!!!!!
- BurningFrog 8y agoAll I know is it works well on our projects. I'm not the one doing any dirty work though...
- Rotareti 8y ago> Typing in python is weird, i much prefer flow/typescript. I find the exprience working with TypeScript and Python/Mypy very similiar. (in VSCode) > Async in python has a history of being weird, from twisted, to yield from, and finally to async/await (which still has some issues, but is much better). I thought javascripts "callback hell" actually made sense, promises made it easier, and now async/await which works great. Both ended up with async/await. I find async programming is similar annoying in both Python/JS. > Pip has a long way to go to catch up to npm/yarn I don't see a big difference working with pipenv/poetry compared to npm. Once your project structure is configured it boils down to `pipenv install`/`poetry add`/`npm install`. > Virtualenvs are weird, even though node_modules can be bloated i think its a lot more intuitive. Again, once configured I don't see a big difference (from a user's perspective). One system puts your packages into `npm-packages` the other puts them into `some-venv-dir`. I think npm works better out of the box, but you can configure your python dev enviornment very similar, if you want, without much effort. To me working in either TS/Python+Mypy feels pretty much the same.
- sifoobar 8y agoSecond that, I could recite the Pickaxe book from memory by the time I gave Python a serious try. And I could never really get over loosing my Ruby toys or having to memorize arbitrary quirks like variable scoping, method overriding and more. And I think I gave it a fair chance, went to conferences and even got code published in one of the bibles. Ruby feels like a smaller language to me, it doesn't take as much space in my brain. And since my brain isn't exactly aging with dignity, I'm designing an even simpler language [0] for days to come. [0] https://gitlab.com/sifoo/snigl https://gitlab.com/sifoo/snigl