270 karma · joined June 18, 2018
And then someone comes in and suggests that we don't need so many new teachers if we "use technology" to help fill the need, like some learning app could be the silver bullet that revolutionizes teaching. Maybe it will some day, but seeing what we've had so far I'm not exactly holding my breath waiting to see that happen.
You'd look for code where input would be able to modify Object.prototype (or I guess some other constructor's prototype) unintentionally (and it's basically always unintentional).
Example of such vulnerability found in Minimist https://snyk.io/vuln/SNYK-JS-MINIMIST-559764
These issues are a constant pain in the JS ecosystem and you wouldn't be the only one using fuzzing to try to find them.
null != james.car.colour
It's redundant when we know the first two are true.I think my English is pretty good but still watching shows without subs feels like it takes more work and doesn't let me focus on the content.
I used to use opensubtitles.org but it's gotten from difficult to use to impossible to use due to all the popups and crap like that.
I don't know why people would prefer that over YAML or others but at least you can actually add comments in them and the reason for their popularity doesn't seem to be baked in parser support because these tools are adding their additional "JSON" parsing anyway.
[1] : https://github.com/benjamine/jsondiffpatch/blob/master/READM...
// Remove repeated characters
'foobar'.replace(/(.)\1+/g, '$1')
"fobar"
and overriding behaviour with Symbol.replaceAlthough to be "fair", that's probably largely intentional crippling of the site to push users towards their app.
openpgp.cleartext
.readArmored(req.body.message)
.then(message => {
openpgp.key
.readArmored(nodes[0].value.key)
.then(key => {
...
})
})
could be openpgp.cleartext
.readArmored(req.body.message)
.then(message =>
openpgp.key.readArmored(nodes[0].value.key)
)
.then(key => {
...
}) const [a, b] = await Promise.all([promiseA, promiseB]) async showImage() {
this.showLoadingSpinner = true
try {
this.imageData = await fetchImageData()
} finally {
this.showLoadingSpinner = false
}
}
There might be a parent class/component/whatever that deals with errors and shows them to the user. The image component is responsible for showing the loading spinner and it shouldn't be left spinning if there's an error. case (value) {
when { constructor: Buffer } ->
console.log("It's a Buffer!")
}
that doesn't handle subtying though and doesn't work across realms.