All Questions
Tagged with code-smell javascript
6 questions
0
votes
1
answer
927
views
Is frequent use of bind(this) in Javascript a code smell?
I am doing a project for a client where I am getting my first real heavy, hands-on exposure with Javascript.
Since I have learned about adding .bind(this to callback functions, I find I am doing it ...
3
votes
0
answers
269
views
Does using returnTrue() or returnFalse() functions a code-smell?
I was trying to understand how jQuery's cross-browser events work, when I noticed these two functions in the source code:
function returnTrue() {
return true;
}
function returnFalse() {
...
14
votes
3
answers
926
views
I'm losing track of the flow of my PHP web app, it's becoming hard to work with
I've been programming for a few years, and have become very familiar with C# and JavaScript over time. I have some larger C# and JavaScript projects that I have no trouble navigating around. I ...
4
votes
1
answer
245
views
Compiled javascript code smell: good reasons for large classes?
I've been looking at a javascript library for drawing graphs, Dygraph, source on github.
It has several enormous classes, such as here and here.
Personally, I don't think justifications for large ...
1
vote
3
answers
1k
views
Is $.proxy a code smell?
I've been writing most of my javascript applications in an OO style close to what I would use for most other languages. However, this means that most callbacks need to have a reference to an object, ...
7
votes
3
answers
671
views
is this javascript property defaulting pattern a code smell?
In some javascript code I'm working on refactoring I've handled cases where I wanted to default an object property to true without having to go through the code-base and add the property to every ...