Better HN
topnewbestaskshowjobs
Log inSign up

gitgud

5,433 karma · joined Aug 23, 2017 (9y ago) · 2,457 submissions

Complex solutions create complex bugs...

https://github.com/benwinding

https://benwinding.com

[ my public key: https://keybase.io/benwinding; my proof: https://keybase.io/benwinding/sigs/bVV_JyagfOPTVOiqOf50YZB4rhM0EIDgUvumlGAA6mY ]

Submissions

511.

No, Face Masks Aren’t Dehumanizing(journals.sagepub.com ↗)

5 points · by gitgud · 4y ago · 8 comments

comment 4y ago · link · parent

Just use a single SSH key per device, any more than that is redundant. If someone hacks your machine and a key is compromised, then all keys are compromised anyway... it does mean if one of your github accounts is hacked, then all your keys are compromised, it's a tradeoff on security...

comment 4y ago · link · parent

It's worth it in my opinion:

you can listen to any video on mobile in the background, also no ads on mobile (so you don't need some hacky 3rd party app)

And you get YouTube music, which is comparable to Spotify (I prefer it in fact)

There's more content on YouTube then any other video platform, so in my opinion 15 per month is worth it

514.

Open Food Network – Software Platform(openfoodnetwork.org ↗)

2 points · by gitgud · 4y ago · discuss

comment 4y ago · link · parent

This is a problem I've encountered too, people are unable to login to a Google account when using insecure Webview browsers... which includes; Messenger, Facebook, Instagram... etc.

But Gmail Webviews allow Google logins though :/

comment 4y ago · link · parent

Interesting to compare this discussion vs the discussion 5 years ago. Although the consensus is the same (that it's not very intuitive) people seem to be much more blunt with their criticism now...

comment 4y ago · link · parent

Agreed, but just be aware that your boss might enquire as to why you're unhappy and try to fix it.

In this situation just say you have an opportunity in another city and want to explore it, no need to say it's because the current city is terrible...

comment 4y ago · link · parent

> "The best thing, by pure engineering criteria, is not what gets built."

How do you define the "best thing, by pure engineering criteria"?

The least memory/CPU? Or the smallest download size?

These are somewhat irrelevant vanity metrics in most cases... they're especially vain, if optimising them loses you potential clients and makes the project a failure...

comment 4y ago · link · parent

Sorry I should have been more clear. Incrementing every element in an array is much less useful than ".map()" which can execute a function on every element.

It just seems like a weirdly specific syntactic sugar... which is a "language smell"... to me

comment 4y ago · link · parent

Side note: Those AI generated images are interesting, but there's no mention of them anywhere, which is confusing as they're not quite abstract enough to be unrelated...

comment 4y ago · link · parent

Interesting language

    // Increment all elements by one (array-wise expression)
    half[] += 1;
Is this really that useful? Seems like a weirdly specific code smell...

comment 4y ago · link · parent

You might like the [1] "overrides" field in npm v8.3 although I would recommend using it with caution, changing your dependencies dependencies has unknown consequences... even a patch release can break everything...

[1] https://docs.npmjs.com/cli/v8/configuring-npm/package-json#o...

comment 4y ago · link · parent

> "Even if you know the algorithm and any secret keys involved, there is no way to un-hash a string. It’s an entirely destructive operation."

Hashing is similar to compressing a massive photo into a small thumbnail, it makes it easier and quicker to browse through photos, but you cannot recover the detailed resolution from the thumbnail.

comment 4y ago · link · parent

Interesting, using TXT fields in DNS records seems like a good way to decentralise data.

I just wonder about the promoting "immutability", is that something people want? I would think most individuals don't want every thing they say permanently added to a database/blockchain, right?

comment 4y ago · link · parent

> "As I have said many times, the real danger today is not that computers are smarter than us, but that we think computers are smarter than us and consequently trust them to make important decisions they should not be trusted to make."

This is the crux of AI in general today, companies promote cherry-picked examples from their AI system and people get a distorted view of what the AI is capable of.

526.

Newton's Cradle Animation (CSS Only)(codepen.io ↗)

2 points · by gitgud · 4y ago · discuss

comment 4y ago · link · parent

Seems political, the current package has a single sentence in the README:

    "What really happened with Aaron Swartz?"
Previous versions are immutable on npm, however a minor or patch version on an older release would break a lot of things...

[1] https://www.npmjs.com/package/faker

comment 4y ago · link · parent

Here's the low quality sites, if anyone is curious... I'm sure you'll recognise them

https://raw.githubusercontent.com/arosh/ublacklist-github-tr...

comment 4y ago · link · parent

Interesting that [1] the website in question has been removed and replaced with an apology.

[1] https://recipeasly.com/

comment 4y ago · link · parent

[1] Hexo is pretty good, just simple static hosting.

[1] https://hexo.io/

comment 4y ago · link · parent

Take a look at nextjs it serves plain HTML and CSS then hydrates it with JavaScript interactive-ness

comment 4y ago · link · parent

> When i say multi-user i don't necessarily mean human users. Some bots could be pushing content like comments from 3rd party interfaces

Could be easier to use either another repository or a 3rd party comment system like Disqus

comment 4y ago · link · parent

Some thoughts of mine:

1. Write it in the language and ecosystem that you're familiar with. Speed of iteration is more important than the tech stack or executable size...

2. Focus on delivering a working and useful application, performance and memory footprint might not even matter if no one uses the app...

3. Cross-platform has many drawbacks to consider, by taking on cross-platform you're taking on many OS specific bugs which slows down iteration speed...

4. (not mentioned but) Mobile apps should be an after thought, including iOS/Android in some cross-platform build makes things even more complex and slower...

comment 4y ago · link · parent

Here's the [1] patch cover letter sent to Linus Torvalds (similar to a Pull Request I suppose)

[1] https://lore.kernel.org/lkml/YdIfz+LMewetSaEB@gmail.com/T/#u

comment 4y ago · link · parent

I think a better description would be "pure client-side"

comment 4y ago · link · parent

> When you try to pay for gifts, it turns the whole gift process into a transaction. It stops being a gift. It becomes an inefficient, misdesigned, awkward market.

This resonated with me. When opensource involves money, incentives become misaligned... And all the bad parts of a SASS product become important, vendor lock in, upselling etc...

comment 4y ago · link · parent

Mono-repo is probably best, one repo is always easier to keep secure and track changes, rather than a group of repos...

I originally loved the elegance of the multi-repo approach, but in practice it's just more of a pain...

comment 4y ago · link · parent

Isn't Github's Container Registry a replacement?

    docker pull ghcr.io/OWNER/IMAGE_NAME
https://docs.github.com/en/packages/working-with-a-github-pa...
1
171819
82