this post was submitted on 16 Sep 2024
436 points (97.4% liked)

Programmer Humor

19187 readers
1230 users here now

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

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] oce@jlai.lu 38 points 2 days ago* (last edited 2 days ago) (3 children)

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.

[–] FuglyDuck@lemmy.world 36 points 2 days ago (2 children)

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".)

[–] asyncrosaurus@programming.dev 5 points 2 days ago* (last edited 2 days ago) (1 children)

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.

[–] OpenStars@discuss.online 1 points 1 day ago

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

[–] oce@jlai.lu 8 points 2 days ago (1 children)

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.

[–] FuglyDuck@lemmy.world 6 points 2 days ago

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.

[–] AnAmericanPotato@programming.dev 24 points 2 days ago (3 children)

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.

[–] calcopiritus@lemmy.world 3 points 1 day ago

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.

[–] tyler@programming.dev 18 points 2 days ago (1 children)

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.

[–] oldfart@lemm.ee 4 points 2 days ago (1 children)

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.

[–] tyler@programming.dev 2 points 1 day ago (1 children)

Huh? I assume you mean RubyMine and I have no clue what dependency issues you could be dealing with unless you’re on windows (which python is even worse with). You have one package manager and one build tool on Ruby, compared to Python’s now 16 tools. Ruby is the gold star for package management which is why both Rust and Elixir copied enormous parts of it when creating their tools cargo and mix.

[–] oldfart@lemm.ee 2 points 1 day ago

https://www.redmine.org/ is a standard rails webapp. Nothing special. Straightforward to update, just a few commands, the only quirk is that at least one step always fails. Some obscure bug in a dependency, some problem with expected vs installed system libraries, or my favourite, a Segmentation Fault.

[–] oce@jlai.lu 3 points 2 days ago* (last edited 2 days ago) (1 children)

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.

[–] rikudou@lemmings.world 2 points 2 days ago

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.

[–] funkless_eck@sh.itjust.works 3 points 2 days ago (1 children)

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

[–] calcopiritus@lemmy.world 2 points 1 day ago* (last edited 1 day ago)

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.