3 ms·
> It just sucks, as it's barely a programming language at all. I remember when I thought like this when I was first learning C++ and thought it was awesome bec
by kragen 2y ago
> It just sucks, as it's barely a programming language at all.
I remember when I thought like this when I was first learning C++ and thought it was awesome because of all the features built into the language. Since then, I've learned that things that are "barely a programming language at all" like Lua—where you can easily learn the whole language and then write, if necessary, reflective object-oriented effortlessly parametrically polymorphic code—are actually the best languages of all. (Such extreme liberalism does require a compensating amount of discipline, as you say.)
Lua has its flaws (implicit nils, the nil/# interaction, default global, 1-based indexing, etc.) but minimalism is one of its major virtues.
- wruza 2y agoThen you get hold of a language that doesn’t have all this mess as a foundation and it feels like you stopped self-suffocating. you can easily learn the whole language and then write, if necessary, reflective object-oriented effortlessly parametrically polymorphic code This is all you can do in these languages. Anything above it will share the fragility and ad-hocness of this meaningless language para-olympics.
- kragen 2y agoNope, that's completely wrong, to the point that you cannot have possibly thought it was correct. You can avoid using reflection, object orientation, and parametric polymorphism in Lua, just as you can in almost any other language, and stick to simple imperative code. And most of the time you should.
- wruza 2y agoI think you misunderstood my second paragraph. What I’m saying is that in order to do anything complex in it, you’ll have to reimplement important parts that are lacking, using all these meta/parametric things in your “mylualib”, and all this mud will drown you when you’re most vulnerable. Toying with it with all the free time on one’s hands is okay. Avoiding useful techniques is an option, but doing it when the world of saner alternatives exists feels like self-sabotaging.
- kragen 2y agoHmm, that makes a little more sense than what I thought you were saying. I still don't think it's correct, though. Lua has those facilities already; you don't have to implement them yourself. My point is that it isn't like programming in assembly or C where you either implement them yourself or do without. When OO or reflection is the saner alternative, in Lua, you can just use it.
- wruza 2y agoI see your point and have even shared it, but my experience with real-business Lua was miserable and actively laughed at. Which was, I must admit now, absolutely deserved.
- kragen 2y agoCondolences! Fortunately, my own Lua experience has entirely been real-fun Lua instead of real-business Lua.