Linked Questions
32 questions linked to/from Are there any OO-principles that are practically applicable for Javascript?
32votes
7answers
3kviews
Design Patterns for Javascript [duplicate]
A lot of web frameworks have a MVC-style layout to code and approaching problems. What are some good similar paradigms for JavaScript? I'm already using a framework (jQuery) and unobtrusive js, but ...
2votes
5answers
6kviews
why are globals bad in javascript [duplicate]
I've been writing web applications for a while now , and everyone knows the one golden rule not to assign variables to the window object , don't ever assign a variable without using var. My ...
8votes
4answers
3kviews
JavaScript application design patterns [duplicate]
I need to write a PhoneGap application with JavaScript and I'm thinking of the code design patterns. I've read some books of JavaScript design patterns but can't really see the advantages/...
11votes
3answers
6kviews
Object Oriented Programming in JavaScript. Is there life without it? [duplicate]
At our company we have pretty large body of PrototypeJS based JavaScript code, which we are porting to jQuery for several reasons (not really important here). I'm trying to set up coding guidelines to ...
3votes
4answers
751views
What programming mindset to have towards JavaScript? [duplicate]
I used to program in Java. As a result of that I got well-versed with Object Oriented Paradigm. In my opinion it is a great approach to programming because it's easy to unit test, use design patterns, ...
2votes
1answer
1kviews
From Java to Javascript? [duplicate]
I am primarily a Java programmer. Because of its OO principles and the general paradigm of Java programming, like wrapping things in static variables, and having things return specific types, heavily ...
1vote
2answers
476views
Go with an object-oriented perspective [duplicate]
My OOP JavaScript question is at the very bottom if you want to skip my introduction. In an answer to the question Accessing variables from other functions without using global variables, there's a ...
1vote
1answer
176views
Differences in design/thought process for OO in Java and JavaScript [duplicate]
Despite sharing a similar name and syntax, Java and JavaScript are quite different. However, they both have Object Oriented features. As a JavaScript novice, the main differences that I can see ...
0votes
1answer
85views
Connect different programming paradigms in a real app written in JavaScript [duplicate]
I am learning functional programming, working generally with JavaScript. Many things look promising, like immutable data and stateless flow. Now, I want to build quite a basic CRUD app as a pet ...
37votes
4answers
8kviews
The importance of Design Patterns with Javascript, NodeJs et al
With Javascript appearing to be the ubiquitous programming language of the web over the next few years, new frameworks popping up every five minutes and event driven programming taking a lead both ...
12votes
6answers
9kviews
How are large JavaScript applications supposed to be structured?
I've recently been shown some JavaScript plugins written for OBIEE Mobile App Developer, as well as some custom libraries for various projects. Coming from an OOP background, I am a little confused ...
12votes
2answers
19kviews
What is the recommended approach for helper functions in JavaScript?
What is the recommended approach for helper functions? I would like to choose one technique, and run with it to create my new "class". Here are the design options I have pondered: Option 1: Helper ...
5votes
2answers
4kviews
What's wrong about extending a class with prototype methods?
I was at a bar last night with a few of my colleagues. They said that it's a bad idea to extend the functionality of basic JavaScript Objects with a prototype method. For example, let's say you ...
4votes
2answers
5kviews
Is coupling a good thing or bad thing when I'm developing standalone modules in a framework?
Encapsulation is a mechanism of wrapping the data (variables) and code acting on the data (methods) together as a single unit. Client code is expected to inherit from system-supplied classes and then ...
1vote
4answers
3kviews
Object.defineProperty vs get/set
What is the difference and when would you prefer to use Object.defineProperty vs get/set methods in javascript for getters / setters? Ex: class Foo { constructor () { Object....