document.querySelectorAll(
'.page-List_of_cognitive_biases .wikitable td > b:first-child'
).length
//172
Hell is other people
Jean-Paul Sartre
Hell is other people's code
anonymous
"^\(*\d{3}\)*( |-)*\d{3}( |-)*\d{4}$"
var newList;
for (var i = list.length - 1; i >= 0; i -= 1) {
newList[] = transform(list[i]);
}
//vs
newlist = list.map(transform);
"There are " + data.string1.numDogs + " dogs attacking my "
+ data.string1.target"
//vs
const {numDogs, target} = data.string1;
`There are ${numDogs} dogs attacking my ${target}`
{
numDogs: numDogs,
target: target
}
//same as
{numDogs, target}
//..
qok = foo()
bar(qok)
//...
myThing = [bar + '', pseudo]
} else { //else what?
doThis();
return false;
}
}
if (!requiredCondition) return false;
//...etc
function classMethodNumber45(name, context, arr, mode, elem, data, url, language){
if {
//...
//...line 125
if (data){
url = url + "data"
fetch(url).then(function(returnData){
for (var i = returnData.length - 1; i >= 0; i -= 1) {
// do some stuff here
}
});
}
} else if (){
}
//etc
}
The number of unique paths through your application
If you donβt know what a thing should be called, you cannot know what it is. If you donβt know what it is, you cannot sit down and write the code.
const isValid //> valid
const numFerrets || ferretCount //> ferret
//get, fetch, find, create
formatter, adapter, service
*watch for easily confused or vague words
investmentProductCollection
incomeProductCollection
78% similarity
SavingsPlans, incomeProducts