Hacker News new | past | comments | ask | show | jobs | submit login

Java didn't go away when the JVM got invokedynamic. JS will be the default language of the web for some time - although it's great that other languages can now be citizens.



But Java is an actual well designed language. A bit verbose yes. Lacking generics early on, yes.

JavaScript however is in a way similar to PHP and I'd say more dangerous as, unlike PHP it doesn't have a ugly syntax to warn you.

I've been working in the JS ecosystem lately and suddenly crazy knowledge from my life as PHP programmer turns out to be useful:

- adding statements above a function or a class? No problem: will be run on loading the file just line in PHP.

- == not checking if things are equal? Just use === like in PHP

Thst said I'm really impressed with the ecosystem. It is just JavaScript the language that needs to be replaced.


Multiple downvotes, no correction.

I guess that is either the "shoot the messenger strategy" or what I said was so horribly wrong I should have seen it myself.

Whoever wonders which one is true can verify for themselves that except for the syntax modern PHP and JavaScript are surprisingly similar: )




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: