this post was submitted on 02 Sep 2024
893 points (99.1% liked)

Programmer Humor

32410 readers
252 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

Incase it doesn't show up:

you are viewing a single comment's thread
view the rest of the comments
[–] unionagainstdhmo@aussie.zone 5 points 2 months ago (2 children)

Yeah JavaScript is a bit weird, semicolons being optional and compulsory at the same time: I remember trying to build an electron example ~5yrs ago and it didn't work unless I put in the semicolons which the developers omitted.

Python is just glorified shell scripting. Libraries like numpy are cool but I don't like the indentation crap, I'm getting used to it because University likes it.

[–] UndercoverUlrikHD@programming.dev 2 points 2 months ago (1 children)

but I don't like the indentation crap

Do you not use indentation in other languages?

[–] unionagainstdhmo@aussie.zone 1 points 2 months ago

Yes but it's difficult in a long program to tell which scope you are in or where one ends. I don't know what is so unfriendly about { and }, my editor can highlight pairs of them, it's just nicer to work with.

[–] flying_sheep@lemmy.ml 1 points 2 months ago (1 children)

Python is just glorified shell scripting

Absolutely not, python is an actual programming language with sane error handling and arbitrarily nestable data structures.

I don't like the indentation crap

Don't be so superficial. When learning something, go with the flow and try to work with the design choices, not against them.

Python simply writes a bit differently: you do e.g. more function definitions and list comprehensions.

[–] unionagainstdhmo@aussie.zone 1 points 2 months ago

Yeah I meant for that to be a bit inflammatory. I actually don't mind python apart from the execution speed, but the indentation I find makes it more difficult to read stuff that is extremely nested. I use it mostly for creating plots and basic stuff for my science degree but for any serious project I wouldn't consider it