Live data from Hacker News

Ask HN: Which alternative to Python for personnal use would you recommend?

news.ycombinator.com

31–38 of 38 posts

Re: Ask HN: Which alternative to Python for personnal use would you recommend?

#33
I do almost everything in Typescript these days. Is it the perfect language? No. Are there libraries for everything? Yes. Is it easy to run? Yes.

The bonus is that I'm using Typescript for front-end development anyway, so using TypeScript for my backend and scripts just simplifies everything I do into one language.

Re: Ask HN: Which alternative to Python for personnal use would you recommend?

#34
Python has lots of libraries, and is known as the 'second best language for everything' so suck it up and learn a bit to complement your PHP. You don't need to learn it comprehensively- just a bit. (Alternatives to python are c# or Java).

Then I woudl say invest the time to learn Rust, as a long term strategy.

Re: Ask HN: Which alternative to Python for personnal use would you recommend?

#37
post #23

Earlier quoted context omitted.

An important note: If you plan on sticking to an editor that has LSP integration like Vim/VSCode and so, stay away from Ruby as Ruby's language server solargraph is just not good. Personally, this is my main reason for staying away from languages like Ruby, Kotlin etc.

I will keep it in mind, though a quick search returned a project that resemble LSP integration for Ruby : https://github.com/Shopify/ruby-lsp . Also RubyMine (IDE from Jetbrains) seems to have its own LSP integrated.

There are some limitations with ruby-lsp. I'd recommend checking some sources to identify if any would be a dealbreaker.

Re: Ask HN: Which alternative to Python for personnal use would you recommend?

#38
post #14

If you're looking for a high-level scripting language for small projects that you keep to yourself, Ruby is the obvious alternative to Python. Lua not so much - it's fine when embedded but doesn't have the ecosystem for standalone use. However, if you want to make programs for others to download and use, I'd recommend a language that can be compiled into easily-distributable binaries. As long as the overhead of a gar…

I do wish Lua saw more widespread use as a general scripting language. I find it's simplicity refreshing compared to Python
Post reply on HN