by douche · 9y ago · 0 comments
I have some fond memories of hacking around with it, about 10 years ago - although for some context, I was coming out of the wastelands of Visual Basic, pre-modern C++, and AWT/Swing era Java. I'm not sure there's anything easier for quick and dirty 2D game development than the PyGame SDL bindings were.
But I'd cringe at the thought of building anything serious with it today. It feels too loose and sloppy, like trying to build a castle made of sand, although I might have some Stockholm syndrome from years of more static, more strongly typed languages. But I have to do enough grepping around through the code base now to make sure tweaking something isn't going to break some snippet of JS code on the front-end now; I really don't need to be worried about that on the back-end too.
from castles import CastleWithMoat
c = CastleWithMoat('eyy')
It's just not meant to replace C++, but I think it beats php, perl, R, and lots of things in readability and package coverage. It lets me do GIS, number crunching, and web serving all in one system. Equivalent functionality in Python is a fraction of lines of complexity implementing from scratch in "strongly typed serious code", for a huge swath of problems.I'd recommend Julia (http://julialang.org) for anyone looking at new projects where Python is an option. Similar syntax, though saner code structure (e.g. no tabs/spaces issues), compiled, strongly typed. All around an excellent language.
That's the whole point.
> you may as well just reach for TypeScript instead of Python.
The only reason I do JS is because it's the only browser native language we got. I'm never gona use this aweful tech anywhere else if I can.
It is? I don't think so. My whole point was that they're useless from a performance perspective.
>The only reason I do JS is because it's the only browser native language we got. I'm never gona use this aweful tech anywhere else if I can.
That's why TypeScript exists. It's better than older versions of ECMAScript and Python, put together.