- There are some situations that are difficult to distinguish mechanically, so I now consider all of those cases problematic, even when they are not obviously wrong.
- You should be coding for readability and error resistance.
- The place to express yourself in programming is in the quality of your ideas, and the efficiency of execution. The role of style is the same as in literature. A great writer doesn't express himself by putting the spaces before his commas instead of after, or by putting extra spaces inside his parentheses.
- Many people think they have good reasons for doing things badly.
- [The purpose of JSLint is not to make you feel good about inadequate coding standards.](http://tech.groups.y
Go to Sublime Text 2 > Preferences > Key Bindings - User
and add this JSON to the file:
[
{ "keys": ["super+shift+l"],
"command": "insert_snippet",
"args": {
"contents": "console.log(${1:}$SELECTION);${0}"
}
}
This has been moved to an official Git repository
#JavaScript Unit Testing Tips and Tricks#
###Please add your your tips and tricks for unit testing JavaScript as comments to this gist. I'll pull them into the main text and credit your contribution.###
- Create/use snippits to scaffold testing methods ( i.e. if you are using BDD scaffold
describe
andit
methods) - Write tests with the same care as production code
- DRY. Factor out repeated code into methods
'use strict'; | |
/** | |
* This module monitors angularFire's authentication and performs actions based on authentication state. | |
* directives/directive.ngcloakauth.js depends on this file | |
* | |
* Modify ng-cloak to hide content until FirebaseSimpleLogin resolves. Also | |
* provides ng-show-auth methods for displaying content only when certain login | |
* states are active. | |
* |
<section> | |
<div class="box caption outline-pad"> | |
<span data-picture data-alt="Alt text here, unless image is decorative."> | |
<span data-src="http://placehold.it/700x200&text=Responsive+Image+(700+x+200)"></span> | |
<span data-src="http://placehold.it/1000x300&text=Responsive+Image+(1000+x+300)" data-media="(min-width: 700px)"></span> | |
<!--[if (lt IE 9) & (!IEMobile)]> | |
<span data-src="http://placehold.it/1000x300&text=IE+Fallback+Image+(1000+x+300)"></span> | |
<![endif]--> | |
<!-- Fallback content for non-JS browsers. Same img src as above. --> |
General key themes:
-
Hiring is really hard. You’re not just hiring a “Rails Engineer” or a “Python Programmer” you’re hiring someone who can help you change the world. Tell them why! Talk about the hard problems you’re solving. 2/3 of these talks give ideas and insight into hiring from sourcing to actual interview processes.
-
Rewriting systems is hard. People think they are going to replace their broken down horse and buggie with a bullet train and this often ends up in disaster. Successful rewrites require an incremental approach that takes months/years and often runs way over schedule. 2/3 of these talks go over how to handle rewrites not only from a high level technical perspective but a cultural/management perspective as well.
Busymind Mindfulness for your busy life | |
Slow down. Search your body for tension. | |
This could be at your shoulders, your back, or your mouth. | |
Release the tension let your body sink in to relaxation. | |
Now focus on your breath. | |
As you breath, feel your chest expand and contract. Feel the air move in and out. |
# Avoid saving full screenshots and failed comparisons, but always save selector-based references. | |
visual/failed/* | |
visual/reference/* | |
!visual/reference/*baseline* |
#!/usr/bin/env bash | |
set -e | |
# allow being run from somewhere other than the git rootdir | |
gitroot=$(git rev-parse --show-cdup) | |
# default gitroot to . if we're already at the rootdir | |
gitroot=${gitroot:-.}; | |
nm_bin=$gitroot/node_modules/.bin |