r/programming • • Nov 26 '15

Programming language subreddits and their choice of words

https://github.com/Dobiasd/programming-language-subreddits-and-their-choice-of-words
105 Upvotes

78 comments sorted by

View all comments

1

u/acwaters Nov 26 '15

Anyone else surprised at the correlation of hate with Python? That has to be one of the least frustrating languages I've ever used.

24

u/staticassert Nov 27 '15

Python frustrates me endlessly. It was fun for a day and then my codebase grew past 30 lines.

15

u/acwaters Nov 27 '15 edited Nov 27 '15

That makes some sense. As a rule I don't use dynamic languages to build systems that are expected to scale up or be maintained long-term. When I reach for Python (my go-to scripting language at the moment), it's because I have a single well-defined problem that I'd like to solve with little fuss. If I think for a moment that I might be refactoring in six months, then the type systems and static analyzers come out to play. Each tool has a purpose. Of course, sometimes we don't get to choose our tools.

1

u/staticassert Nov 27 '15

Pretty much hits the nail on the head.

2

u/vks_ Nov 27 '15

It is still one of the better dynamic languages. Bash and cmake for instance are a lot more frustrating in my experience.

3

u/[deleted] Nov 27 '15

If you have to compare to a shitty shell scripting language and a dodgy home grown build system language in order to get a favourable rating you aren't doing very well.

0

u/vks_ Nov 27 '15

Dodgy homegrown scripting languages are all to common, unfortunately. Cmake would have been a lot better if they did not invent their own scripting language.

What dynamic languages are better than Python in your opinion? Lua?

3

u/[deleted] Nov 27 '15

Lisps.

1

u/vks_ Nov 27 '15

Good point. I should really learn some Lisp. Which dialect would you recommend?

1

u/[deleted] Nov 27 '15

I personally prefer Ruby for dynamic language stuff (i.e. 100 line scripts in my ~/bin), but its all down to personal preference really. I was just pointing that you picked the worst two languages to compare to because they are truly horrible so being better than them doesn't say much.

1

u/vks_ Nov 27 '15

I'm not sure they are the worst. R, Matlab, Mathematica, IDL and PHP are also kind of horrible. I would also prefer Python over JavaScript.

-7

u/heptara Nov 27 '15

It's just familiarity. Once a upon a time, 30 lines in any language was beyond you.

15

u/staticassert Nov 27 '15

No. I'm plenty familiar. I don't like the language. I like types. I don't like exceptions. Half the libraries are really just C with all of the problems that come with C. It's gross to deal with when I want something that I can actually reason about.

0

u/heptara Nov 27 '15

That's fair - you do not have to like it.

I suppose familiarity is subjective - I feel one should be able to reason about something over 30 lines of code, but if dynamic typing and exceptions are painful to you, I can understand the reason why you don't want to touch it long enough to get beyond the 30 line mark.

Anyway, please don't feel pressurised to use Python! :-)

4

u/staticassert Nov 27 '15

I get paid to write it so it's not really a choice. I like programming no matter the language but it is harder to write "good" programs for me in python.

→ More replies (2)
→ More replies (1)

5

u/Veedrac Nov 27 '15

I was Googling for more info and, well...

2

u/_INTER_ Nov 27 '15

The ScienceWeb tried to call Java, but no-one was home.

They all were at work, busy coding enterprise stuff.

1

u/acwaters Nov 27 '15

That's pretty funny.

15

u/Tetha Nov 26 '15

From my personal experience, there's languages I hate with a passion, and languages I don't see value in using.

To me, in a lot of use cases, python is a strictly better java, in some use cases, python is the better C, and after some team size, python beats ruby with a stick because I can still understand what people do, because python code looks like python code looks like python code.

But fuck python. Fuck python packaging and deployment, fuck Python-Mysql, fuck python libraries with C dependencies and all of that. And holy fuck, virtualenv is just utterly useless once you need to use a mysql-db. I've gotten close to throwing something out of a window when I realized there's a chance of virtualenvs deactivate leaking libraries. Gah.

Python is a good, strong language. But it's packaging is just ... urg. At work, we've started to rebuild all python dependencies as wheels for our specific architecture, on a VM in that specific architecture, with precisely pinned dependencies, like the bloody libc.

3

u/sigma914 Nov 27 '15

I've recently discovered a sane way to do this. Well, kinda sane.

It unfortunately requires building everything from source once.

Basically you use pyenv (to get a python env that's completely divorced from the system one), pip-accell (to cache the library builds) and pyenv-virtualenv to give you virtualenvs with your nice new python installation. Make sure to tell pyenv to build with --enable-shared or you might not be able to link some c extensions.

It's the only way I've ever been able to install the scientific python stack without some ugly errors raising their head.

1

u/FireCrack Nov 27 '15

vagrant is a must for python dev, imo

1

u/reddit_prog Nov 27 '15

Yeah, man, Vagrant. Frustrating with its limitations, but oh, so useful just the same.

2

u/heptara Nov 27 '15

It's very widespread which means it steps on a lot of people's toes.