• 0 Posts
  • 384 Comments
Joined 2 years ago
cake
Cake day: December 29th, 2023

help-circle

  • that’s a good and bad thing though…

    it’s easy to reference code, so it leads to tight coupling

    it’s easy to reference code, so let’s pull this out into a separately testable, well-documented, reusable library

    my main reason for ever using a monorepo is to separate out a bunch of shared libraries into real libraries, and still be able to have eg HMR



  • i’d say it’s less that it’s inadequate, and more that it’s complex

    for a small team, build a monolith and don’t worry

    for a medium team, you’ll want to split your code into discreet parts (libraries shared across different parts of your codebase, services with discreet test boundaries, etc)… but you still need coordination of changes across all those things, and team members will probably be touching every part of the codebase at some point

    for large teams, you want to take those discreet parts and make them fairly independent, and able to be managed separately: different languages, different deployment patterns, different test frameworks, heck even different infrastructure

    a monorepo is a shit version of real, robust tooling in many categories… it’s quick to setup, and allows you a path to easily change to better tooling when it’s needed


  • You should really not need to do a PR across multiple repos.

    different ways of treating PRs… it’s a perfectly valid strategy to say “a PR implements a specific feature”, in which case you might work in a backend, a front end, and library… of course, those PRs aren’t intrinsically linked (though they do have dependencies between them… heck i wouldn’t even say it’d be uncommon or wrong for the library to have schemas that do require changes in both the fronted and backend)

    if you implement something in eg the backend, and then get retasked with something else, or the feature gets dropped then sure it’s “working” still, but to leave unused code like that would be pretty bad… backend and front end PRs tend to be fairly closely tied to each other

    a monorepo does far more than i think you think it does… it’s a relatively low-infrastructure way of adding internal libraries shared across different parts of your codebase, external libraries without duplication (and ensuring versions are consistent, where required), and coordinating changes, and plenty more

    can these things be achieved with build systems and deployment tooling? absolutely… but if you’re just a small team, a monorepo could be the right call

    of course, once the team grows in size it’s no longer the correct option… real tooling is probably going to be faster and better in every way… but a monorepo allows you to choose when to replace different parts of the process… it emulates an environment with everything very separated


  • i’d say they’re pretty equivalent

    a monorepo is far easier to develop a single-language, fairly monolithic (ie you need the whole application to develop any part) codebase in

    (though as soon as you start adding multiple languages or it gets big enough that you need to work on parts without starting other parts of the application it starts to break down rather significantly)

    but as soon as your app becomes less of a cohesive thing and more separated it becomes problematic… especially when it comes to deployments: a push to a repo doesn’t mean “deploy changes to everything” or “build everything” any more

    i think the best solution (as with most things) is somewhere in the middle: perhaps several different repos, and a “monorepo” that’s mostly a bunch of subtrees or submodules… you can coordinate changes by committing to the monorepo (and changes are automatically duplicated), or just work on individual parts (tricky with pnpm since the workspace file would be in the monorepo)… but i’ve never really tried this: just had the thought for a while








  • australia kinda does it like that… our minimum wage is tied to CPI (which covers much more than just food: also entertainment, rent, transport), and afaik was originally based on living standards

    a wage that is fair and reasonable… sufficient to meet the normal needs of an average employee, regarded as a human being living in a civilised community.

    in fact, australia invented the concept of a “living wage” in 1907

    so it should be exactly that today: enough for an average person to live a decent existence (including entertainment, food, housing, etc)


  • You think this change is gonna happen without a fight?

    so fight! but then also vote the way you have to until the system changes

    Democrats are not trying to shift left

    obviously, but when it comes to the ratchet effect better the option that doesn’t sprint head long to fascism

    as a result your party

    it ain’t my party mate; i’m australian… american choices effect the entire world

    Your method of governing is an abject failure.

    and what would that be? because i’m strongly against the system the US uses to elect it’s government and its general method of governing

    however

    you can’t fight reality: game theory and statistics exist, and the system to elect representatives in america is what it is and UNTIL THAT CHANGES, those are just facts



  • Pup Biru@aussie.zonetoLate Stage Capitalism@lemmy.worldReform is a path to failure
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    1
    ·
    edit-2
    17 days ago

    that’s a load of shit… you have exactly 2 options to vote for in an FPTP system, and that’s just game theory and maths… you can be RIGHTLY pissy at the system, but it’s the system you have to work within until it changes

    complaining that people don’t vote third party in the US is like complaining that gravity stops you from flying around the world by just jumping: you’re right, it’d be great! but that’s just not how reality works

    and blaming people who are largely pulling in the same direction as you (ie away from the far right) is counterproductive to shifting left (and let’s be clear here: we’re not talking about actual left in the US: that’s a long way off; but not far right is still further left than the racist shit sandwich you have right now), and is so straight out of the election rigging playbook that your motives are completely in question, or you’re just wilfully ignorant of how your electoral system works (but ignorance here is still hugely dangerous: this is how you get the world more trump)