Just a basic programmer living in California

  • 27 Posts
  • 410 Comments
Joined 2 years ago
cake
Cake day: February 23rd, 2024

help-circle

  • I try to capture every detail of the build and test environments in Nix devshells. And where I can I try to encapsulate as much as possible in Nix checks and packages which run in build sandboxes - both locally and on the server. Build sandboxes don’t work for everything, but the devshells alone are great for reproducibility.

    • Wrong interpreter version? A devshell with a flake.lock file ensures every environment is using the exact same interpreter.
    • Accidentally picking up stuff from the local .env? Sandboxed checks and builds don’t get any files that aren’t version controlled, so that’s not an issue. But it’s still an issue with devshells.
    • Accidentally picking up programs or env vars in your environment? Sandboxed builds always get a clean starting environment. If you run nix develop --ignore-env you get a devshell that also gets a clean starting state.

    Nix doesn’t fix everything.

    • File system case sensitivity - depending on where this issue presents (program-generated files vs source files), I use property testing to catch this problem. In fact I was working on exactly that the other day.
    • Timing issues - that’s a good old fashioned hard problem. Try to make logical dependencies explicit. It’s really easy to get implicit order dependencies in concurrent code if you aren’t on guard. In languages that support it promises or futures are good for spelling out what needs to happen in what order.
    • Edit: Difficulty keeping secrets in sync - one option is to use Sops or Age to put encrypted secrets in version control. Then your CI only needs to be configured with one secret to decrypt the other secrets it needs.







  • hallettj@leminal.spacetoBicycles@lemmy.caFreehub body help
    link
    fedilink
    English
    arrow-up
    2
    ·
    17 days ago

    More brands are using ratchet hubs now that the patent has expired. Shimano calls their version “direct engagement”.

    There are some details in this article, and an animation of Shimano’s version in this youtube animation

    From the animation it looks like what DT Swiss called “star ratchets” Shimano calls “hub ratchet” and “outer ratchet”.

    I think it’s still a freehub because the ratchet mechanism is at the freehub-wheel hub interface. A freewheel has the ratchet mechanism enclosed within its own body, right? With a static threaded interface to the wheel hub.

    I’m still trying to understand how the spline OP is trying to identify fits in. Are we looking at the back of the mated ratchet rings?





  • There’s not much one person can do. But there are a lot of us - if lots of people each work on something small it adds up. There are probably plenty of things in your community that have been getting a little better over time for exactly that reason.

    When I felt hopeless about politics joining a DSA chapter helped. It makes me feel like I’m doing something helpful, even if it’s something small.

    What you can do for climate change depends on the opportunities near you. But some ideas might be:

    • plant trees
    • lobby the school board to install solar panels over a school parking lot
    • join an activist group to protest for closure of a local oil refinery
    • tell friends an neighbors about benefits of EVs, heat pumps, and other electrification options
    • write your elected officials regularly about climate measures you want them to vote for, to thank them when they vote correctly, or to chastise when they don’t

    I’d focus on one thing instead of trying to do all the things. Working with a local group is ideal.








  • I love to see discussion on specific ideas for how to make socialism happen! I agree, workplaces where workers vote on leadership, and share in profits could make a big difference. Someday I’d like that kind of structure to be mandated. But yes, in the meantime why not start implementing it?

    Have you heard about cooperatives in Italy? They have been around for decades, and have seen success - especially in Emilia-Romagna. I learned about this via a Youtube video, so I’ll link that. Italy’s Radical Solution to Extreme Inequality by More Perfect Union.

    The idea of building a better system from the bottom up is sometimes called “dual power”. The idea is to create a counter to top-down state power, or oligarchic control. It can be a check on top-down power, fill in gaps where the state doesn’t meet people’s needs, build up a better system that can eventually replace the old system when it’s ready, or all of the above. I did some quick searching and came across this document. But I’ll admit I’ve only skimmed it at this point to verify that put also puts an emphasis on cooperatives.

    I’ve talked a tiny bit to people who have worked on starting cooperatives in the California Bay Area. What I’ve heard is that it’s difficult to get business loans because banks are wary of business structures that they don’t have experience with. But more specifically banks want to know who owns what: who owns the building the business operates from? Who owns the equipment? The people I talked to want shared ownership, which is at odds with what the banks want. I suspect there is some way to resolve that - probably with a corporation with shared ownership (like you described) that is the legal owner of capital. So that’s an issue that’s related to the legal question you brought up of what legal corporate structure would be best.

    You talked about The Owners electing a president and a CEO. Are The Owners shareholders? As in, people who own one share each? And workers would generally be owners?

    I think I’ve heard the idea that a company should have equal profit sharing for all workers. Personally I’ve also thought about the idea of automatic equity proportional to the time you’ve spent working with the company. Like every month or so shares would automatically rebalance. That could mean that if you’ve put in 1% of the total working months (including types of leave like parental leave), you get 1% of the shares. But I think it would be better to scale on a logarithmic curve, or something like that, so that it takes a little bit of time for new workers to ramp up their shares, but they get a boost to “catch up” to people who have been at the company longer.

    I like your ideas about payroll vs surplus incentives! I had some thoughts along the lines of CEO pay being capped at some multiple of the lowest paid worker, or leadership raises being capped based on a ratio of total payroll between the current and previous year. But to some extent I was thinking about possible external legislation, vs internal charter rules.

    I happen to be trying to start a business now. I don’t know if I’ll succeed. If I do, I don’t know if I’ll bring on more people. But if I do, I want to use a cooperative model.