But why would I use something that takes more effort and care?

I’m sure you’re right and it’s possible, but if I don’t have to fix another python project at work I’ll be in heaven.

@grue@lemmy.world
link
fedilink
English
193M

Because “more effort and care” in Python is still way less of a pain in the ass than the minimum enforced boilerplate necessary in most other languages.

I mean, is it? I personally haven’t found Python using much less boilerplate. It’s possible, but you end up with something inflexible that’s hard to maintain.

@grue@lemmy.world
link
fedilink
English
43M

Implement a basic socket connection in C (20 lines of manipulating struct sockaddrs and such), then do the same in Python (2 lines).

And then go back and make the C version support IPV6, because your initial implementation didn’t.

Ethan
link
fedilink
English
63M

Or use a statically typed language that’s actually modern instead of C

“Look, Python is way easier to use than other languages! Look how complex this easy task is in Python versus other languages like assembly and brainfuck!”

I’m not saying “do stuff in C it’s easier than Python”, but if I took e.g. C# then it’s also just two lines. That supports everything and is also faster than the Python implementation.

Eager Eagle
link
fedilink
English
43M

it’s more effort and care compared to a throwaway script, not necessarily compared to other languages

Create a post

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

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
  • 1 user online
  • 46 users / day
  • 93 users / week
  • 414 users / month
  • 2.18K users / 6 months
  • 1 subscriber
  • 1.69K Posts
  • 37.3K Comments
  • Modlog