123
What's the dumbest reason you've learned a programming language?
(programming.dev)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
I'm curious why you think Python is unsuitable. Both of my kids picked up Python pretty easily.
I think there was more, but that's what I remember off the top of my head. If it was up to me then I would've used Pascal - that's what it's designed for! But at least C# has strongly-typed variables, and doesn't care about your indentation (and unfortunately there was no non-OOP language choice available - I'm not sure how this got in the curriculum when every teacher knows you only teach one concept at a time). As I said, many other teachers felt the same way, but couldn't get it past their school admin's.
You can use types in Python and your tools will generate warnings
def something(a: int) -> int: return "potato"
will turn yellow in an IDE more advanced that notepad.
Most editors will also show a red line where the indentation is wrong.
Same thing still applies - you need to get it past the school admin gatekeeper.
If you're writing any language in like notepad, you're going to have a bad time. I accept your point that school administration may be making questionable choices about what software is installed, but that's not a problem unique to python.
No, but it's a bigger problem for C# than is is for Python (though this is changing now), so all the U.K.-based schools were teaching Python, rather than the more-appropriate C#. That was my original point - that's the dumb reason I had to learn Python, school admin's wanted the lower overhead of the worse language.