News for hackers. Stuff that matters.

arderary

Re:How many GNU/Linux users are needed to change a light bulb? on Thursday December 10, 2020 @08:48AM (#25373626)
1 to suggest replacing the lightbulb with systemd-lightd
How are you handling analytics? Will distribution be through a customer's Spotify/Apple account (so analytics are visible), or will you be building a portal to combine the two sources (plus server-side download logs, maybe?) of analytics for customers?
Re:GitHub Releases Dark Mode on Tuesday December 08, 2020 @07:02PM (#25353431)
I really don't understand the glorification of no-js websites on HN. Like, I'd get it if it was Flash or something ('cause that definitely has some real accessibility issues, and required a plugin to be installed), but the web platform is HTML, CSS and JS. Why artificially limit yourself to just two? It seems to have become a matter of pride to say "works without JS", for absolutely no practical reason (it's not like removing JS is some silver bullet for accessibility, no-js sites can and do still absolutely have problems with accessibility)
Re:Kubernetes 1.20 on Tuesday December 08, 2020 @06:49PM (#25353285)
In a lot of cases it's worth considering whether orchestration is necessary at all — pure docker can take you quite far, with just a couple shell scripts called from the last stage of your CI (or manually)
Re:No One Ever Got Fired for Choosing React on Saturday December 05, 2020 @12:35PM (#25316392)
It seems like your specific use case could be solved (as you mentioned) by passing down a `className` prop, exactly like React. It's described as a workaround in the RFC because the approach there relies on internal class names (and couples the internal component API to the parent), whereas you'd be passing in the specific class you'd be using. Something like this should work, without going too much against the grain of the framework:

    // Parent.svelte
    <script>
      import Child from "./Child.svelte"
    </script>

    <style>
      .container :global(.child) {
        color: red // your styles here
      }
    </style>

    <div class="container">
      <Child className="child" />
    </div>

    // Child.svelte
    <script>
      export let className
    </script>

    <h1 class={className}>I am styled by my parent</h1>
Re:Billionaires Build on Friday December 04, 2020 @06:12PM (#25309576)
This seems in fairly bad faith. As best I can tell, it suggests that the argument that billionaires exploit people is unfounded, because they delight _users_? I mean, sure, but that says _nothing_ about exploitation.

A company that exploits its users won't generally do well, but that doesn't mean that it doesn't exploit its workers, which is generally what politicians mean here (see Amazon, for instance. Or, since Facebook was brought up in the article, their content moderation team)