4 ms·
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
by reitanqild 8y ago
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.
- reitanqild 8y agoMultiple 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: )