39 points
*

Some people think that because Python is the easiest language to learn, it’s going to be easy to learn programming with Python. But learning programming is still very hard, so many abstract concepts to grasp. Python just makes it a tiny less hard, almost insignificantly now that we can use an LLM to learn the syntax faster than than ever.

permalink
report
reply
36 points

It’s also important to note that you might come out ahead in learning those abstract concepts using a harder language.

But my first language was Pascal. from a book stolen from my dad’s library. Then C++. I still wouldn’t call myself anything other than an amateur… I mean, my dad can do more with one line of C than most programmers can do in their entire career. (he really shouldn’t. but he does. Calls it “job security”.)

permalink
report
parent
reply
8 points

It’s also important to note that you might come out ahead in learning those abstract concepts using a harder language.

I agree that you will learn more abstract concepts with more low level languages, but they are often not necessary. See Scala, beautiful language, lot’s of fancy subtle computer science concepts, and a plummeting popularity since its main popularizer, Apache Spark, implemented a Python API.

permalink
report
parent
reply
6 points

Well. yes. it does strongly depend on what you intend to do with it.

Python is a great language that’s very broadly used; there’s a reason that Apache added the python API; after all. (and why Scala is plummeting.) I wouldn’t even say Pascal was all that useful, to me. I think I ‘learned it’ enough to get through the dumb book, and then went on to something else. C++ was more fun anyhow.

permalink
report
parent
reply
5 points
*

I was hacking scripts and web shit together in perl, python and php for many years before learning C, and just a couple months learning C/C++ made me understand so many more basic concepts than all previous years experiences combined.

permalink
report
parent
reply
1 point

Try assembly then - it’ll freaking blow your mind!:-)

permalink
report
parent
reply
25 points

In practice, Python is not easy to learn programming with. Not at all. I see beginners wrestling with Anaconda and Jupyter notebooks and I weep.

The fact that pip is intentionally broken on macOS and some modern Linux distros sure doesn’t help. Everything about environment management is insane.

permalink
report
parent
reply
19 points

Comparing python env management to Ruby or rust or even Java for fucks sake just goes to show that nobody actually cares about how easy a language is to use, they just care about what is popular or what they think is popular.

permalink
report
parent
reply
4 points

Ruby, of all the examples you could come up with? My Redmine is updated only every few years because I rarely have a whole day to deal with the mess that is Ruby deps managent.

Java deals with this ellegantly.

permalink
report
parent
reply
3 points
*

Development environment is a mess, but given its popularity, it’s not difficult to find an up to date tutorial. Then it is the easiest I think, you will be able to try programming basics and get a minimum viable product (small web app, small analytics…) easlier than with any other language.

permalink
report
parent
reply
3 points

Nah, php over python any day. Equally easy to start, equally fucked up core, but the ecosystem around it is so much saner and easier. And I’d argue it’s even easier for beginners.

Unless you need something that only has python bindings, I’d never choose python.

permalink
report
parent
reply
4 points

That is because when you’re a beginner, you read everywhere that you should be using anaconda and jupyter notebooks. I know because I did so. Neither of them lasted more than a week on my computer though.

permalink
report
parent
reply
3 points

as a complete layman and hobbyist i also personally think that “more pythonic” coding can sometimes be more confusing.

I dont think any beginner reads “j for j for i in k” and instantly gets it.

maybe unpopular opinion idk

permalink
report
parent
reply
2 points
*

Anything that’s not an integer or a range doesn’t belong inside []. Much more readable to use zip, map, filter, etc. And more powerful.

EDIT: that was meant for indexing lists. Strings inside [] for indexing ducts are fine.

permalink
report
parent
reply
7 points

Sooo… switch to Perl then? 😜

permalink
report
reply
9 points

Of course! Why didn’t I think about that? Maybe I could also switch some other parts of the code to Lisp?

permalink
report
parent
reply
7 points

S-s-s

S-s-s

S-s-s

S-s-s-sure!

permalink
report
parent
reply
6 points

I feel offended by you somehow equalizing perl and lisp

permalink
report
parent
reply
7 points

Maybe some Lua, as a treat?

permalink
report
parent
reply
2 points

I still sometimes bang out small perl scripts for things that are too annoying/complex for command prompt and shell scripts but not worth writing something in, say, Go. I never learned python which is probably why I never use that.

permalink
report
parent
reply
2 points

People keep saying Python, despite how it (1) sucks, and (2) is super annoying to keep up to date, with package management and the like, unlike Perl that is more stable. Though Python is also easy to use and powerful and extensible.

But I think each language type is what it is and has its own set of tradeoffs and balances. Unix is hyper-stable and secure but limited, Perl is powerful but requires discipline to use to full effect, and these days most people don’t bother to learn it. Python is… “common”, is perhaps the best way to put it:-). C/C++ is even more powerful, the latter bloated, and blamed for most memory management issues (although really, how much of that is merely bad programming practice? Okay, so it allows such though).

And now Rust is the new hot thing.:-)

permalink
report
parent
reply
2 points

I enjoyed working with Rust once I got into its workflow. The borrow checker and lifetimes suck for people not used to the concepts. The funny thing about languages with lots of safety features is when people just unsafe things, an option in many languages to give oneself plenty of rope for a self-hanging (or, “footguns” is the hip new way of saying that).

permalink
report
parent
reply
13 points

I find Python easy to just code a prototype with. But I find Rust easier to get right.

permalink
report
reply
7 points

This is basically what I’ve been telling people for years. Prototype in Python to get the concepts down, then when you’re serious about the project, write it in a serious language.

permalink
report
parent
reply
1 point
Deleted by creator
permalink
report
parent
reply
22 points

This a much better done meme

The other one before makes zero sense

permalink
report
reply
14 points

Good meme. However I do think that most people starting out will not really have to deal with any of those issues in the first few years apart from maybe the pip/venv/poetry/etc choice. But whatever they’ll pick it’ll probably work well enough for whatever they’re doing. When I started out I didn’t use any external libraries apart from pygame (which probably came pre-installed). I programmed in the IDLE editor that came with Python. I have no idea how I functioned that way, but I learnt a lot and hat plenty of fun.

permalink
report
reply
11 points

What about the issue where people try to install new version of python sometimes try to uninstall the “old” pre-installed version on a linux system and thus borking the whole s

Definitely not me, anymore

permalink
report
parent
reply
8 points

I may or may not have done this haha. I’m a threat to any working piece of software, just enough knowledge to be able to break shit and too little knowledge to avoid breaking shit. I think after all these years I’ve mostly learnt my lesson though. The package manager is the boss, and if I don’t like it I have to work around it without upsetting the package manager

permalink
report
parent
reply
1 point

I think experienced programmers may have a different route to a degree. A number of years in one language, for instance, including fairly complex production settings, etc. and having to transition to python for a new job or company or decision from someone higher up the food chain. I did it from a largely perl and PHP background for both Rust (a tiny bit of experience before, but not a super complex environment) and Go (zero to prod in a few months dropping in rewritten portions of the former PHP monolith). I can talk about memory usage, race conditions, etc. but would be completely screwed with anything internal to python or its quirks.

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 3.4K

    Monthly active users

  • 1K

    Posts

  • 37K

    Comments