HackerTrans
TopNewTrendsCommentsPastAskShowJobs

the_imp

no profile record

comments

the_imp
·há 2 anos·discuss
2024 - 1964 = 60
the_imp
·há 2 anos·discuss
With Extractors [1] (currently at Stage 1), you could define something like this to work:

    const Integer = {
      [Symbol.customMatcher]: (value) => [Number.parseInt(value)]
    }

    const Integer(counter) = 42.56;
    // counter === 42
[1] https://github.com/tc39/proposal-extractors
the_imp
·há 3 anos·discuss
I am left wondering how far down one must go to find row level security.
the_imp
·há 3 anos·discuss
Implementing something like an "id" locale is a great idea. Just don't call it that; it's the locale code for Indonesian.

Using a word that's longer than three characters like "identity" will help ensure that it won't conflict with a real locale.
the_imp
·há 3 anos·discuss
"You found the Nth highest word score"
the_imp
·há 4 anos·discuss
Young's AAA, UK early 00s. They never brought it back. Ye olde sigh.
the_imp
·há 4 anos·discuss
When farming tulips, at least you could get pretty flowers from them.
the_imp
·há 5 anos·discuss
In JavaScript, use https://www.npmjs.com/package/yaml for this:

    import assert from 'assert'
    import { parseDocument } from 'yaml'
    
    const flowDoc = parseDocument(`[1,2,3]`)
    flowDoc.add(4)
    assert(flowDoc.toString(), '[ 1, 2, 3, 4 ]\n')
    
    const blockDoc = parseDocument(`\
    - 1
    - 2
    - 3`)
    blockDoc.add(4)
    assert(
      blockDoc.toString(),
      `\
    - 1
    - 2
    - 3
    - 4
    `
    )
the_imp
·há 5 anos·discuss
I don't understand why US healthcare providers are allowed to charge different customers a different price for the same service or good.

As this is clearly being systematically abused to extract the most wealth from patients and insurance companies, is anyone seeking to require healthcare providers to not provide such variable pricing?