With dynamically typed languages I feel it's better to wait until you've tried to maintain the code for a while before you consider the languages effectiveness. I had to maintain a very large Lua codebase that has been active for several years. One big problem with Lua was how it will happily take more or less parameters to functions and continue to execute compared to something like Python where it is an error to pa…
> dynamically typed languages like Python or Typescript You likely mean JavaScript. Typescript is very much statically typed, unless you allow everything to be `any` and `unknown`. Typescript is mentioned in TFA as a desired (but not available) option, because of the great static typechecking support.
What do I think about Lua after shipping a project with 60k lines of code?
21–30 of 146 posts
Re: What do I think about Lua after shipping a project with 60k lines of code?
#22Earlier quoted context omitted.
Last 50 years? Have you studied Software Engineering? They discuss LOC in depth and many academic papers on KLOC are in SE literature.
I can write a program that is 1,000,000 lines of code, and a program that is 200 lines of code, and to the end user they would be doing the same thing. Now, if you start establishing some rules about the type of code I'm allowed to write, then your statement becomes truer. But by no means do people actually follow that in the real world all the time.
If you wrote a program that is 1,000,000 lines of code you could also write a blog post about your thoughts on "writing 1,000,000 lines of code".
You could also write a program that is 200 lines long and write a blog post about "writing 200 lines of code".
One is not better than the others, you are just informing your audience of the topic under discussion.
Re: What do I think about Lua after shipping a project with 60k lines of code?
#23Earlier quoted context omitted.
Last 50 years? Have you studied Software Engineering? They discuss LOC in depth and many academic papers on KLOC are in SE literature.
I can write a program that is 1,000,000 lines of code, and a program that is 200 lines of code, and to the end user they would be doing the same thing. Now, if you start establishing some rules about the type of code I'm allowed to write, then your statement becomes truer. But by no means do people actually follow that in the real world all the time.
Re: What do I think about Lua after shipping a project with 60k lines of code?
#24Earlier quoted context omitted.
Much like C++ then — the machine code to which it translates lacks types! A TS compiler will reject an ill-typed program. You of course can just strip the type syntax and get a valid (though buggy) JavaScript code.
> Much like C++ then — the machine code to which it translates lacks types! Ehh, not exactly. Most C++ compilers won't output machine code for inputs they don't understand. Though of course, you could simply translate some C++ code yourself into machine code and then say C++ is just like TypeScript in that way. "If you turn C++ into machine code, the machine code lacks types!" "If you turn TypeScript into JavaScript,…
Re: What do I think about Lua after shipping a project with 60k lines of code?
#25Earlier quoted context omitted.
Last 50 years? Have you studied Software Engineering? They discuss LOC in depth and many academic papers on KLOC are in SE literature.
I can write a program that is 1,000,000 lines of code, and a program that is 200 lines of code, and to the end user they would be doing the same thing. Now, if you start establishing some rules about the type of code I'm allowed to write, then your statement becomes truer. But by no means do people actually follow that in the real world all the time.
Re: What do I think about Lua after shipping a project with 60k lines of code?
#26Re: What do I think about Lua after shipping a project with 60k lines of code?
#27Re: What do I think about Lua after shipping a project with 60k lines of code?
#28Re: What do I think about Lua after shipping a project with 60k lines of code?
#29With dynamically typed languages I feel it's better to wait until you've tried to maintain the code for a while before you consider the languages effectiveness. I had to maintain a very large Lua codebase that has been active for several years. One big problem with Lua was how it will happily take more or less parameters to functions and continue to execute compared to something like Python where it is an error to pa…
> With dynamically typed languages I feel it's better to wait until you've tried to maintain the code for a while before you consider the languages effectiveness. True for any language really. There's an entire category of blog posts: "I used language X for 2 weeks and here's my hot take". Okay, great. But what do you really know? For every language I've used for a serious amount of time I've changed opinion over tim…
Re: What do I think about Lua after shipping a project with 60k lines of code?
#30Earlier quoted context omitted.
How do you configure awesome plugins for helix then?
Did I miss something? Plugins for helix? Since when?
My initial point was just that it's kind of nice to have something that's usable from the get-go. I don't miss my gigantic neovim config one bit.