HackerTrans
トップ新着トレンドコメント過去質問紹介求人

arve0

no profile record

コメント

arve0
·2 年前·議論
> if plain text were the only format possible

Hard to enforce? <p>this</p> is text too.
arve0
·2 年前·議論
> without exposing the secret to the shell history file

Any command in shell with a space before it will be omitted from history.

Agree it should take input from stdin.
arve0
·3 年前·議論
I'm not up to speed in JSX, how is it be better there? Don't one normally map over an array to loop? You cannot use for-loops inside JSX?

Or do you create an array of JSX-elements, like

    let elements=[]
    for (let i=0; i < 10; i++) {
      elements.push(<li key={i}>I'm number {i}</li>)
    }
    return <ol>{elements}</ol>;
Does not seem like an improvement to me.
arve0
·3 年前·議論
Each loops over anything with a length property:

    {#each {length: 3} as _, i}
https://stackoverflow.com/questions/58213585/svelte-3-how-to...
arve0
·3 年前·議論
A few I know: rqlite, dqlite, SQLite wasm, litestream.
arve0
·3 年前·議論
When you do not rely on ACID for data consistency, you need to architect for eventual consistency. For example CRDT on collaborative editing a text document.
arve0
·4 年前·議論
The history feature in VSCode have saved me multiple times. To me, 200MB per workspace is worth it.
arve0
·4 年前·議論
I think they are solving for management, for example by locking down the dev environment. Not saying it’s impossible in desktop IDEs, but maybe harder?
arve0
·4 年前·議論
Thank you, will try it out :-)
arve0
·4 年前·議論
Yes, using a hook is optimal. But when reading repos without a style guide or formater, “pretty diffing” makes it easier to review.

Another use case is when you encounter that giga god-commit “added formater” which touched all lines in all files.

If you take this even further, you can tailor to anyones style taste, formatting on check out instead of check in. That leaves the stored code as a serialization format the compiler understands. Viewed code is in whatever format the programmer likes.
arve0
·4 年前·議論
Anybody know if it’s possible to run a formater before diffing? For example running “go fmt” or “prettier”?
arve0
·5 年前·議論
> If another company wants to provide NFC capability for credit cards, they can and the actual credit cards already do.

The other companies wants to provide NFC capabilities for their mobile bank/direct payment app. Like Norwegian “Vipps”, direct instant payments between any Norwegian bank.
arve0
·5 年前·議論
Thank you, that is useful, but basically same as "jumping" between branches.

@pronik's reply was spot on, viewing the merge commit, which shows which branches and tags the commit is included in. Example: https://github.com/openshift/okd/commit/e278fba2d8a5aea6b7bd...
arve0
·5 年前·議論
Thank you. Tried on the commit in PR, did not show up, but the merge commit did.

I guess it's dependent on merge strategy, where squash merge will not include the initial commit hash. Or maybe "pr commit view" excludes the same info.
arve0
·5 年前·議論
…which is nice, when the master is not tagged and you’re trying to find out “does this release include the bug fix in pr #123” (without cloning and/or jumping between tags/branches).
arve0
·5 年前·議論
> My question is, if it's so advantageous to employ people via onsite staffing firms (basically half of FAANG's workforce is employed this way), why doesn't Google stop directly employing people altogether?

Because it’s the mix that is advantageous, not either one (employees only vs contractors only).
arve0
·5 年前·議論
I’ve used wait-for-it with success.

https://github.com/vishnubob/wait-for-it
arve0
·5 年前·議論
zx has a small dependency tree, 12 packages marked as "@types" and 36 regular packages[0].

If you are fluent in Node, it should be easy to avoid further dependencies.

0: https://arve0.github.io/npm-download-size/#zx