13,006 karma · joined November 12, 2013
https://jimbly.github.io/regex-crossword/
See also: Are Regex Crosswords NP-hard?
https://cs.stackexchange.com/questions/30143/are-regex-cross...
Characters which are sometimes special, depending on context, are one more thing making regexes harder than they appear at first sight.
The author's willingness to publish code without even minimal testing does not inspire confidence.
To give an idea of how I see it as potentially useful, there are some frustrating events which leave a person in no doubt that there's nothing they can do to remedy the situation (or that they have no choice but to put a lot of work into fixing a situation which never should have arisen), while others might leave a person in a tizzy over what to do now.
Not coincidentally, Langley was the secretary of the Smithsonian, and in addition, his claims were promoted by Glenn Curtiss in his attempts to overthrow the Wright patents. As the dispute heated up, the Wrights loaned the flyer to the London Science Museum, where it remained until after Orville's death.
More generally, if there's no common truth then that itself cannot be a common truth...
Unfortunately for free speech, it is no longer the case (if it ever was) that publishers have strong financial resources compared to an increasing number of those who want to hide things.
"For long function chains or callbacks that stack up, breaking up the chain into smaller groups and using a well-named variable or helper function can go a long way in reducing the cognitive load for readers. [my emphasis]
// which is easier and faster to read?
function funcA(graph) {
return graph.nodes(`node[name = ${name}]`)
.connected()
.nodes()
.not('.hidden')
.data('name');
}
// or:
function funcB(graph) {
const targetNode = graph.nodes(`node[name = ${name}]`)
const neighborNodes = targetNode.connected().nodes();
const visibleNames = neighborNodes.not('.hidden').data('name')
return visibleNames;
}
The names of the functions being called are rather generic, which is appropriate and unavoidable, given that the functions they compute are themselves rather generic. By assigning their returned values to consts, we are giving ourselves the opportunity to label these computations with a hint to their specific purpose in this particular code.In general, I'm not a fan of the notion that code can always be self-documenting, but here is a case where one version is capable of being more self-documenting than the other.
https://www.cs.virginia.edu/~asb/teaching/cs415-fall05/docs/...
I share your feelings about the entirely avoidable horror of it all.
Maybe Putin's non-invocation (up to now) of the nuclear umbrella shows he is as eager as anyone to maintain it as the ultimate protection against existential threats. The US's sharp turn away from globalism is a gift to Putin, and, given that the US population is strongly divided over the changes the current administration is making, that might be threatened if Russia were to act more belligerently than it already is.
Personally, I'm more concerned over what will happen if and when the situation becomes one in which Trump realizes he's going to be seen as the president who 'lost' Taiwan.