Ok but seriously what can I use for that I can't use Node or PHP for? Are there use cases where it's actually *better* to use one language over another? I want to learn but have so far had absolutely no reason to.

@Alamantus I… don't think so? It all comes down to tooling an stuff like that for me. I've even moved to write small scripts I'd usually write in Python in PHP because I'm more familiar with it these days

@Alamantus A lot of it is libraries. Python has a mature set for natural language processing and pretty good numerical/statistical crunching that I find lacking over in the Node and C# arena.

Also, you have APIs for other programs only in one language since everyone hasn't jumped on the web assembly bandwagon. :D

@Alamantus It's more about the ecosystem than the language capabilities per se. The libraries and frameworks available in a language make it suitable for certain problems and not others.

For eg: If you intend to run code in the browsers, Javascript is what you should begin: even if it's technically possible to convert any code into WebAssembly and run it.

Python has some good libraries for number-crunching like numpy and pandas and a lot of code from academia has been written in it.


There are other languages which are good in certain other ways: Golang, Julia, Crystal, Elixir.

I have adopted a Just-in-time philosophy to learning languages/libraries etc. I will learn something only when it's the best choice for my problem/project.

@Alamantus Sometimes it's about ecosystem - for example, a huge amount of machine learning libraries and tooling are currently in python, making it a big advantage to use python in that domain right now

Data types can be a thing. PHP has few, JS even fewer?

Sign in to participate in the conversation

cybrespace: the social hub of the information superhighway jack in to the mastodon fediverse today and surf the dataflow through our cybrepunk, slightly glitchy web portal support us on patreon or liberapay!