Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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 ...
mydoghasworms's user avatar
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() { ...
53777A's user avatar
  • 1,718
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 ...
Douglas Gaskell's user avatar
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 ...
Jayy's user avatar
  • 839
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, ...
Dan Monego's user avatar
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 ...
cori's user avatar
  • 591