Request For Research: Basic Income 10 years ago
I think you just described homeless shelters.
HN user
I think you just described homeless shelters.
Full method just for fun:
function judgeSentence(sentence, numNo) {
sentence = sentence.toLowerCase();
// no nos -> wrong.
if (numNo === 0 || sentence == "") {
return false;
}
// if have any fancy words -> wrong.
var probablyWrong = ["doubl", "expon", "multipl", "^", "**", "power", "two", "2", "twice", "as big", "nth", "rais"];
if (hasAny(probablyWrong, sentence)) {
return false;
}
// if you have the right words, and no buts.
var seemsRight = ["larger", "increas", "greater", "small", "less", "big", ">", "<", "go up", "ascending"],
weaselWords = ['but ', 'not ', 'odd'];
if (hasAny(seemsRight, sentence) & !hasAny(weaselWords, sentence)) {
return true;
}
// // no nouns, verbs or adjectives in your sentence -> wrong.
// var s = nlp.pos(sentence).sentences[0],
// verbs = s.verbs().map(getWords),
// nouns = s.nouns().map(getWords),
// adj = s.adjectives().map(getWords),
// numWords = verbs.length + nouns.length + adj.length;
// if (numWords === 0) {
// return false;
// }
return false;
}I think he is just saying that C isn't worth learning if you just need to do really simply things that a ton of modern languages can do in one of two lines.
Wow, that was a super thorough article.
Should this work on mobile? I'm not having any luck on my iPhone 5.
1.1 out of 10 running the latest stable version of Chrome on a 2010 13" MacBook Pro with a 2.40GHz Core 2 Duo, 8GB of RAM, and a Samsung 840 SSD. Geez... Is there anything I can do to improve the score?