Hacker News new | ask | show | jobs
by shangxiao 4239 days ago
Better not define any functions or arrays then, they're objects and that would be "gross"
2 comments

Actually functions or array being objects internally has nothing to do with "object-oriented" as style of writing code. Here it is about style, which is obviously dictated by Processing (and thus Proseccing.js) being ideologically object-oriented. So, well, yeah, it is quite more object-oriented than "proper" code in js, although I don't see why it is such a problem for the person you relply to.
Well actually it does. Every time you do an someArray.push(val), that's "object oriented as a style of writing code".

If you're referring to the style in the article (ie the Java code), well that's classical object oriented.

Better abandon any front-end JS, too...