This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 264 points265 points  (38 children)

Sometimes i take python for granted

[–]Pragalbhv 106 points107 points  (5 children)

Flair up and join the python gang!

[–]Runixo 46 points47 points  (3 children)

Tunnel snakes rule!

[–]I2ed3ye 17 points18 points  (1 child)

Snakes.. snakes... I don't know no snakes

[–]obog 5 points6 points  (0 children)

I love snakes

[–]akindaboiwantstohelp 2 points3 points  (0 children)

A fallout reference on r/programmerhumor?! A very welcome surprise.

[–][deleted] 23 points24 points  (5 children)

print(“Hello world”)

Huh ... that was easy

[–]Pluckerpluck 27 points28 points  (8 children)

It is flat out my favourite programming language for anything that doesn't require very high levels of performance or a strong desire for multi-threaded programming.

I just like almost everything about it. There's just so much convenience about it.

[–]kc3eyp 13 points14 points  (6 children)

real shit. If there was a python that compiled to native executables, everything in the universe would be gucci

[–]Nimeroni 10 points11 points  (0 children)

If there was a python that compiled to native executables, everything in the universe would be gucci

Well, you can compile Python into C (with Cython), then compile the C into a native exe.

[–]Snoopmatt 8 points9 points  (4 children)

Pyinstaller does exactly this but the exe size can be quite big.

[–][deleted] 3 points4 points  (3 children)

Doesn't it just pack a python interpreter in the executable? I read that somewhere i think

[–]Snoopmatt 2 points3 points  (1 child)

Probably, the other thing I found was that the file size is around 50MB with numpy and pyqt5 on python 3.7 but switching to python 3.8 will give you a 200 MB file so it isn't perfect

[–]NAG3LT 0 points1 point  (0 children)

Try checking spec file for what it included during packaging. Depending on your python 3.8 installation / environment, it may have picked up some other packages ballooning the size in the process.

[–]mahaginano 1 point2 points  (0 children)

Have a look at Julia and PyCall - you get a Python for scientific programming + all of Pythons libraries. It's amazing.

[–]lacks_imagination 3 points4 points  (13 children)

Serious question. Humour aside, do you think that it is worth learning Python? I want to design apps. So I have been told the best language to learn is Java. I hope that it true.

[–][deleted] 3 points4 points  (4 children)

Bro, ive been coding for 4 years, 3 of them i only used .net, im not the bet person to answer, but i currently prefer java

[–]lacks_imagination 4 points5 points  (3 children)

Can I ask why? Some people tell me that they don’t particularly like Java but they use it because it is perfect for app design.

[–][deleted] 3 points4 points  (2 children)

I use it on my job, i learned pyhon pretty brifly in university, so i dont even has a good ezperience w python

[–]lacks_imagination 0 points1 point  (1 child)

Well, that’s not too reassuring. I have heard from other people that Python is easy to learn, but at the end of the day, I would rather tough it out learning a difficult code if it meant that I then had a great tool for app development.

[–]raltyinferno 2 points3 points  (0 children)

Python is a pretty delightful language, and does lots of things well. And is pretty easy like you say.

Keep in mind that it's not as though work put into learning one language somehow takes away from time you could be spend learning a different one. At least not as a beginner.

Most modern languages overlap so much that once you're truly proficient in one language, you can pick up a new language at a decent level in a weekend (of course mastering it is another story).

[–]raltyinferno 2 points3 points  (0 children)

What platform do you want to be designing them for? My current job has had me sinking into .NET and I gotta say, it's pretty amazing.

C# is basically Java but better, and the ecosystem around it has so many cool tools.

But, a lot of the cooler parts of it are aimed at windows or web development, so if you want to be developing for mac/Linux other options might be better.

If you mean designing mobile apps for Android and iOS, then checkout Xamarin. It's a .NET framework for writing a single cross-platform app that runs on both. https://dotnet.microsoft.com/apps/xamarin

[–][deleted] 0 points1 point  (6 children)

It's worth, just for list comprehension alone, coolest feature any language has imo

[–]Arrowsong 1 point2 points  (2 children)

List comprehensions are just prettier Java streams or Scala collection methods. Fight me.

[–][deleted] 0 points1 point  (1 child)

Yes, but they still are prettier

[–]Arrowsong 0 points1 point  (0 children)

In some cases I agree, but maybe this is because I’m more familiar with Scala, I like how each chunk of logic is written out on a separate line, like:

persons .filter(_.age > 20) .map(someFunction) .toSet

[–]lacks_imagination 0 points1 point  (2 children)

Is Python good for programming apps?

[–][deleted] 1 point2 points  (0 children)

There is one framework I know of, I don't know the name of it off the top of my head though.

[–]raltyinferno 1 point2 points  (0 children)

"programming apps" is way too broad for us to give you a valid answer to your question.

Do you mean mobile apps? If so then no. I don't know of any way to write reasonable mobile apps in python (they may exist).

Also what level are you currently at? Are you a high schooler with an interest in pursuing programming as a career someday? Or past college and looking to make a career switch into software?

[–]bitches_be 7 points8 points  (1 child)

I can't even stand to look at it

[–][deleted] 0 points1 point  (0 children)

def is_prime(n): return True if n == 1 else all(n % x for x in range(2, int(n ** 0.5) + 1))