DEV Community

Discussion on: The best programming language for Artificial Intelligence and Machine Learning

Collapse
 
andrewflee profile image
Andrew

Do ignore JavaScript!

While it has progressed beyond the toy phase it still has all the vestigial remnants.

What? There is no integer type? But I need a sparse matrix of integers to create ...

What? JavaScript coerces types silently??? Oof. I do not want this!

Most of the libraries are buggy and most users don’t know programming fundamentals? Good luck getting help when you are trying to do SVD or k-means clustering!

Scoping rules that make little or no sense? You mean there are global floating around in my code that I don’t know about?? Sometimes ‘use strict’ means I can’t use a library — because the library is so badly written it assumes global scope is ok.

There is == and there is also ===. Whoa! Someone really misunderstands data types!

No exception for going past the end of an array? In fact JavaScript likes to fail silently on all kinds of obvious screwups.

Objects are instances of classes, right? Well no they are associative arrays. Classes aren’t really classes either.

Async program leads to callback hell. Compare it to Go or Python’s async library.

Nah. Forget it. It is a language broken by design that has been abused by history.

It is a necessary evil for the front end — until something better comes along.

Also, what does mobile programming have to do with learning ML? You want to do this in an environment where you have as many tools as possible. Once you are on to something, then start porting it to mobile.