DEV Community

Discussion on: What do you think about the idea that "there should be only one way of doing a thing" in programming languages?

Collapse
 
renegadecoder94 profile image
Jeremy Grifski

What a great link! I had never heard of a pit of success before, but I’m on board. In terms of pits of despair, C++ was the exact language that came to mind when I jumped in on this thread.

Thread Thread
 
jhuebel profile image
Jason Huebel

I personally would give C/C++ a pass. It's a foundational/architectural language, so it should be flexible and shouldn't hold the programmer's hand. I don't think C++ is a language that needs to be fixed. But I do think it's a language that not just anyone should use.

But for higher-level languages like Python, Ruby, PHP and the .NET variants, I would agree that having one obvious way to do things is the best policy.

Thread Thread
 
renegadecoder94 profile image
Jeremy Grifski

I’d definitely give C a pass! I feel like it’s a pretty straightforward language. You just have to do everything yourself. Haha