Tim B
Member since Sep 13, 2013
- Profile: /members/11240-tim-b.htm
- Comments: 5
Recent Blog Comments By Tim B
-
After 3 Months Of JavaScript Linting, It's Pretty Much All Pain And No Gain
Posted on Aug 2, 2017 at 4:46 PM
@John, That's what I am getting at though. Without a linter or other tooling to keep things in line, everyone tends to follow their own style, so there is no consistency across the code base. It's not always just whitespace.. there can be differences in wrapping, quotes (when talking JS), etc. that... read more »
-
After 3 Months Of JavaScript Linting, It's Pretty Much All Pain And No Gain
Posted on Aug 2, 2017 at 3:01 PM
@Ben, I agree that arguing over style is mostly pointless. However, I do prefer to keep the noise of reformatting to a minimum even when someone is modifying the code for legitimate reasons. That tends to make it much easier to see what's actually changed when you are reviewing code, or looking thr... read more »
-
After 3 Months Of JavaScript Linting, It's Pretty Much All Pain And No Gain
Posted on Aug 1, 2017 at 3:00 PM
Const is not just a style choice. Sure, it results in the same code if you are compiling to ES5. But, it's actually informing the compiler or runtime (and readers of the code) that you do not intend to re-assign that variable.... read more »
-
After 3 Months Of JavaScript Linting, It's Pretty Much All Pain And No Gain
Posted on Aug 1, 2017 at 2:52 PM
@Frank, I agree. The style that is enforced by linters ultimately does not matter. However, consistency does matter, particularly when working with a team. Complying with the linter can cause some friction, but it causes much less friction that team members arguing over style, or silently reformatt... read more »
-
Defining Instantiatable Classes In The AngularJS Dependency Injection Framework
Posted on Sep 13, 2013 at 8:25 AM
@Aaron You can prefix all 'ng' attributes with 'data'. For example, data-ng-app works too.... read more »