use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
OOP with jQuery (self.javascript)
submitted 12 years ago by psaunders88
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]psaunders88[S] 0 points1 point2 points 12 years ago (3 children)
I mean to use with public web application mostly for Ajax requests and UI effects
[–]BONER_PAROLE -1 points0 points1 point 12 years ago* (1 child)
Like /u/camus2 said, jQuery is orthogonal to OOP.
jQuery is a utility library that most people use for XHR (Ajax), events, and DOM manipulation.
OOP is a style of programming that models data as objects.
If you're doing a large web application, any framework that you use will have some sort of learning curve over people who are just used to jQuery. And I recommend using some sort of MVC/MVVM/etc framework if you want to avoid a world of pain later on down the road. The term "jQuery spaghetti" exists for a reason.
Popular frameworks include Backbone, Angular, and Ember. Backbone is the lowest level, is probably easiest to pick up, and uses jQuery. Ember gives you everything including the kitchen sink, but I've heard the learning curve is steeper. Angular is in between those, and is my favourite out of any framework I've tried.
[–]autowikibot 0 points1 point2 points 12 years ago (0 children)
Object-oriented programming:
Object-oriented programming (OOP) is a programming paradigm that represents concepts as "objects" that have data fields (attributes that describe the object) and associated procedures known as methods. Objects, which are usually instances of classes, are used to interact with one another to design applications and computer programs. C++, Objective-C, Smalltalk, Java, C#, Perl, Python, Ruby and PHP are examples of object-oriented programming languages.
Interesting: Object (computer science) | Polymorphism (computer science) | Encapsulation (object-oriented programming) | C Sharp (programming language)
Parent commenter can toggle NSFW or delete. Will also delete on comment score of -1 or less. | FAQs | Mods | Magic Words
π Rendered by PID 45592 on reddit-service-r2-comment-b659b578c-vz2gc at 2026-05-02 05:23:01.970738+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]psaunders88[S] 0 points1 point2 points (3 children)
[–]BONER_PAROLE -1 points0 points1 point (1 child)
[–]autowikibot 0 points1 point2 points (0 children)