DefederateLemmyMl

  • Gen𝕏
  • Engineer ⚙
  • Techie 💻
  • Linux user 🐧
  • Ukraine supporter 🇺🇦
  • Pro science 💉
  • Dutch speaker
  • 1 Post
  • 199 Comments
Joined 1 year ago
cake
Cake day: August 8th, 2023

help-circle
  • Take a breath dude

    Can you not please with the condescending language? Maybe you’re the one who should take a breath and read my post calmly. Anyway, the guy above me asked, I gave an answer to cover all the bases.

    The default branch name of git isn’t that important to me either, I’ll manage with main or master. But at the same time it does irk me especially since this kind of language policing has become an industry wide trend, and it’s just a stupid thing done for stupid reasons. Am I still allowed to express why I find it stupid?

    it’s trivial to change

    It isn’t as trivial as you make it out. I’ve already encountered repos where there was both a main and a master branch, both with different commits, because some developer got confused, and it was a nice mess to untangle. But hey, let’s change some more stuff around for no good reason.

    If there’s any chance it helps maintain a hostile workplace/industry

    I can think of a lot of things that contribute to a hostile workplace, but the default branch name of git? Seriously? Even the people who pushed for this don’t actually believe that themselves.


  • Why care about Master at all?

    I’ve already explained all my reasons, but I’ll reiterate. To summarize I basically have five main issues with it

    1. The change was done in response to attempts at language policing and bullying by a vocal and militant minority. Giving into it is a form of appeasement towards an unreasonable demand.

    2. The change retroactively modifies a terminology that was already agreed upon. Like, if git sprung into existence today, not many people would have an issue with it if they would call it main or trunk or primary from the get go. But that’s not what happened. Git was released in 2005 and it used master terminology. As a consequence, many existing repositories also use master. Now when someone is working with branches, like doing merges or pull requests, they suddenly have to remember: oh in this repository it is main, but in that repository it is still master. Or they have go out of their way to modify decade old repositories, potentially breaking all kinds of behind the scenes CICD stuff. Or they have to go out of their way to revert the default on all systems that they’re working on back to master. In any case, this change is a source of errors and wasted effort for zero net good.

    3. It does no good in the real world other than making do-gooders feel good about themselves, and giving a capitalist entity some PR to appear more progressive than they are. We all still have masters, existing slaves are not freed, no historical wrongs of slavery or inequality are righted.

    4. It’s a misguided change in this case because the word master in this context doesn’t even have a relationship to slavery. Just like a master degree you may hold, or a master key or a master recording of your favorite album have no bearing on slavery. Note that there are no “slave” branches in git.

    5. Finally, in the case of git, master is simply more accurate than main because it carries a nuance (derivativeness) that main does not.


  • There’s no need for master terminology there

    Nobody said there is a need, you could call it foo or bar and it would still work. It just that master more accurately describes what it is. Main for example does not describe a derivative relationship, master does.

    Also, master in this context is totally unrelated to slavery so I could also just as easily say that there was no need to replace the existing terminology either. It doesn’t solve any real world problems of historic or currently existing slavery, and it doesn’t make anyone’s life better. The only reasons why it was done were appeasement and virtue signalling.


  • Is it not the main working branch

    No it is not. On large distributed projects for which git was designed, you typically don’t directly work on main/master but you create a working branch to do your changes, and when they are ready you merge them to main/master.

    There are many types of git workflows, but main/master usually contains the code that is deployed to production or the latest stable release and not some work in progress.

    When you start a new project, do you open a new branch or create a whole new repository?

    You have to define “project” for that.

    • Is your project a change to existing code -> new branch, merge to main/master when done
    • Is your project something new that stands entirely on its own? -> new repository

  • I’ve seen ‘Active / Passive’ used, that seems alright

    That’s not always an accurate description though.

    Consider a redundant two node database system where the second node holds a mirrored copy of the first node. Typically, one node, let’s call it node1, will accept reads and writes from clients and the other node, let’s say node2, will only accept reads from clients but will also implement all writes it receives from node2. That’s how they stay in sync.

    In this scenario node2 is not “passive”. It does perform work: it serves reads to clients, and it performs writes, but only the writes received from node1. You could say that node2 slavishly follows what node1 dictates and that node1 is authorative. Master/slave more accurately describes this than active/passive.

    There’s plenty of alternative terms to use without borrowing terminology from sexual roleplay.

    Do I have news for you …


  • master over main

    That one is the most stupid one too, because master in git doesn’t even refer to a master/slave relationship. It refers to a different meaning of the word master, namely “an original from which copies can be made”, as in master recording or master key. See 5b in the Merriam-Webster dictionary. And that’s how it’s used in git: any new branches are derived from master. Main just does not have the same nuance, because it does not imply a relationship between the branches, just that it’s somehow more important than the others.

    But of course, the real reason it was changed is because for companies like github it’s easier to give in to the crazies who demand this than to fight them.




  • I’m with you, I also don’t like getting drunk and I don’t like how even a little bit of alcohol tires my body, but unfortunately I’ve found that flavor and alcohol content are directly related: a 5% beer never tastes as rich as a 9% tripel, and a 0.0% beer will never have as much flavor as even a simple 5% lager. I’ve tasted quite a few and they all taste “empty” to me. I think this is because alcohol is a solvent for a lot of chemical compounds in beer that give flavor.

    So what I do instead is pick my moments, and never overindulge to the point where I feel intoxicated.





  • We are talking about addresses, not counters. An inherently hierarchical one at that. If you don’t use the bits you are actually wasting them.

    Bullshit.

    I have a 64-bit computer, it can address up to 18.4 exabytes, but my computer only has 32GB, so I will never use the vast majority that address space. Am I “wasting” it?

    All the 128 bits are used in IPv6. ;)

    Yes they are all “used” but you don’t need them. We are not using 2^128 ip addresses in the world. In your own terminology: you are using 4 registers for a 2 register problem. That is much more wasteful in terms of hardware than using 40 bits to represent an ip address and wasting 24 bits.


  • you are wasting 24 bits of a 64-bit register

    You’re not “wasting” them if you just don’t need the extra bits, Are you wasting a 32-bit integer if your program only ever counts up to 1000000?

    Even so when you do start to need them, you can gradually make the other bits available in the form of more octets. Like you can just define it as a.b.c.d.e = 0.a.b.c.d.e = 0.0.a.b.c.d.e = 0.0.0.a.b.c.d.e

    Recall that IPv6 came out just a year before the Nintendo 64

    If you’re worried about wasting registers it makes even less sense to switch from a 32-bit addressing space to a 128-bit one in one go.

    Anyway, your explanation is a perfect example of “second system effect” at work. You get all caught up in the mistakes of the first system, in casu the lack of addressing bits, and then you go all out to correct those mistakes for your second system, giving it all the bits humanity could ever need before the heat death of the universe, while ignoring the real world implications of your choices. And now you are surprised that nobody wants to use your 128-bit abomination.




  • DefederateLemmyMl@feddit.nltoxkcd@lemmy.worldxkcd #2948: Electric vs Gas
    link
    fedilink
    English
    arrow-up
    19
    arrow-down
    3
    ·
    4 months ago

    you just need to get in the habit of plugging in like you would your phone

    Yeah but not everyone lives in suburbia with ample plug-in options available to them. Where I live the street-side charging spots are usually occupied, and the parking spot that I rent has no charging.

    For journey’s long enough for it to be more than a single charge you really should be stopping for more than a few seconds anyway as you need recharging.

    True to some extent, I have to check my travel logs but I do feel like stopping for an hour every 300km or so is longer and much more often than I would normally stop on long road trips. My (diesel) car has a range of well over 1000km so often I stop for only 15 minutes for a coffee and to stretch my legs, or just for a restroom stop and a driver swap. We usually plan just one big stop (1h) for dinner. Most destinations I’ve been to I could reach without refueling at all.

    There’s also the issue of contention for charging spots. On gas stations near the big highways towards popular destinations you often already have to queue to get gas. This will become worse when EVs become common place and people occupy a charging spot for an hour instead of a fuel pump for 30 seconds to top up.

    Little anecdote: every year around the holiday season, there are several company wide e-mails from EV driving co-workers requesting to swap cars (with a co-worker who has a CE car) to go on holiday. So I think the practical experience may not be as rosy as you paint it.