5 ms·
jQuery reminds me about PHP
by dotborg 14y ago
jQuery reminds me about PHP
- brandoncapecci 14y agoIn some ways but jQuery is intentionally disorganized. PHP isn't.
- jfaucett 14y agoCan you explain why jQuery is intentionally disorganized? Why would any project be intentionally disorganized?
- brandoncapecci 14y agoFunctional programming is inherently disorganized. For JavaScript, we make the best of it since we don't have any alternatives. The hot frameworks right now ala Backbone sacrifice lines of code for reusability by forcing a design pattern. In contrast, jQuery doesn't seem to have plans of adding any organizational abstraction at all (no views, classes, etc). It's intentional because they have the means to implement these features and choose not to because doing so would create a much higher barrier for use. They are known as the easiest to use framework thus their philosophy is to have the easiest things as easy as possible even if that means making harder things much harder. My original comment comes from the idea that JavaScript is forced. One just makes a choice on a framework. In PHP, most programmers are at minimum going to take a look at Ruby and Python, both of which are more elegant.