There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

programmer_humor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

lil , in Manager: This task only takes 30 minutes. Why did it take you the whole day?
@lil@lemy.lol avatar

You should not use -m, you should write commit body!

SirQuackTheDuck ,

Nah, most commits don’t need a body

zalgotext ,

Why? My coworkers are barely literate and won’t read anything with more than 4 or 5 words, writing a commit body would be a waste of time.

TheFerrango , in GitHub Desktop or Git CLI?

Laughs in Sourcetree

KeepFlying ,

Sourcetree is still best by far for history browsing, and I’ll die on that hill.

FoolHen ,

I switched to gitextensions, sourcetree had so many bugs that it was getting on my nerves. Gitextensions has a similar layout, it also has the history view. It’s not prefect (recently they removed the dark theme because they upgraded some dependency and it didn’t work anymore) but it’s the best alternative I’ve found

xmunk ,

I’m a huge fan of GitExtensions, especially because it does so little magic.

TrickDacy ,

Looks like it’s windows only?

FoolHen ,

Yeah unfortunately it is

nilloc ,

Sourcetree best for free, thanks bit bucket.

Tower is pretty nice for mac user too. I paid for it for a few versions back when I was coding full time. Now I just stuck to source tree for occasional freelance and personal projects.

neuracnu , in It's that time of the year again!
@neuracnu@lemmy.blahaj.zone avatar

I was reading that to the tune of the chorus of The Distance by Cake. It worked until the last line.

Cwilliams ,

Lol that actually works so well

BaardFigur , in GitHub Desktop or Git CLI?

deleted_by_author

  • Loading...
  • Xanvial ,

    This is what I currently use, although I don’t really like the branch name color in last few versions, so kinda keep using the old version

    Piatro ,

    I think for most people it’s whatever you got used to first. I agree the hatred the GUIs get is overblown. I would always recommend people learn the command line but if you want to use a GUI, go for it, doesn’t affect me unless your commits are bad, in which case the CLI wouldn’t have helped anyway.

    jelloeater85 , in GitHub Desktop or Git CLI?
    @jelloeater85@lemmy.world avatar

    The GitHub CLI is magic.

    cupcakezealot , in GitHub Desktop or Git CLI?
    @cupcakezealot@lemmy.blahaj.zone avatar
    caseyweederman ,

    You have my attention

    Do they have a Linux client though?

    cupcakezealot ,
    @cupcakezealot@lemmy.blahaj.zone avatar

    sadly no and i don’t think it works through wine

    but technically they have a mac client which is basically an expensive version of linux

    Aatube ,
    @Aatube@kbin.social avatar

    Not really. It’s BSD, and even then the layout of the OS is quite far from BSD. Besides that you have a lot more technical stuff. Just use wine.

    TrickDacy ,

    I wish! The best Linux git gui I have found is SmartGit. I like it, but it’s just a little goofy and not free. Fork is better for its ability to very easily stage and/or stash a subset of the current changeset.

    Anyone got any suggestions? I tried git-cola and gitkraken. The former I found obtuse and limited, and the latter is not free in addition to somehow making git harder with a pretty gui.

    Aatube ,
    @Aatube@kbin.social avatar

    Gitkraken is free as long as the repository is public, which seems like an alright compromise to me. The only problem I had with it was that it was electron. What did it make harder for you?

    TrickDacy ,

    I just really detest the UI. And I have private repos I have to work with as well.

    BaardFigur ,

    deleted_by_author

  • Loading...
  • TrickDacy ,

    Right and that is how I currently use it

    floofloof , (edited )

    The best ones I have found for Linux are SmartGit and Sublime Merge, but neither are free in any sense. Sublime Merge is slightly cheaper. SmartGit offers a free “hobby license” but it limits which kinds of repos you can work with.

    Gitkraken looks like it might be good but I haven’t used it.

    eluvatar ,

    Been using it for years it’s great

    ramenshaman ,

    I hate coding on Windows, maybe I’ll check that out. (My only option is Windows for my work laptop because I need to use a few Windows-only softwares and IT says I’m not allowed to dual boot)

    jadedwench ,

    Is running Linux off a USB drive possible? It isn’t ideal, but you can still have persistence if needed? There is also WSL, if you don’t need a GUI.

    ramenshaman ,

    After the last windows update WSL gives me a BSoD every time 😭 Pretty sure IT wouldn’t appreciate me running Ubuntu off a USB drive but that’s a good idea.

    Aatube ,
    @Aatube@kbin.social avatar

    Any windows screenshots?

    (Fork is also an awful name in terms of searching for it btw)

    cupcakezealot ,
    @cupcakezealot@lemmy.blahaj.zone avatar
    pete_the_cat , in Manager: This task only takes 30 minutes. Why did it take you the whole day?

    For me, it was my boss gave me a programming task which he knew would take hours or a day or two… and then 15 minutes later tells me to “switch focus” and do a menial task that any of my five coworkers could do 🤦‍♂️

    FauxPseudo , in GoOn
    @FauxPseudo@lemmy.world avatar

    Ok. This covers every ipv6 and ipv4 address.

    “^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])(.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])(.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])(.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])(.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])(.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])(.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])(.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])){3}))|:)))(%.+)?\s*$”

    MsPenguinette ,

    IPv6 was a mistake. We should have just added an addition octet

    FauxPseudo ,
    @FauxPseudo@lemmy.world avatar

    Plus the MAC address

    Centillionaire ,

    That would allow for like, 2 trillion devices? Feels like a bandaid, my dude. Next you’re gonna suggest a giant ice cube in the ocean once a year to stop global warming.

    shasta ,

    And nuke the hurricanes

    intensely_human ,

    Hurricanes cannot cross the equator. The equator is an imaginary line, and hence has zero mass. We can end every hurricane using zero point zero energy (0.0).

    stringere ,

    o.O

    stoy ,

    So add two more octets:

    Moat companies will still just use something like 10.0.13.37.0.1

    0xD ,

    IPv6 is not made with internal networks in mind lol

    stoy ,

    Never claimed it was, please quote me where I said as much

    dohpaz42 ,
    @dohpaz42@lemmy.world avatar

    My dude, you used the 10.xx private IP as an example. Why wouldn’t they assume you were referring to internal networks?

    stoy ,

    I thought it was pretty clear with me adding 13.37 that I was making a joke, the earlier post spoke about how just adding one octet would still be too few addresses, so I joked about adding one more octet.

    dohpaz42 ,
    @dohpaz42@lemmy.world avatar

    I’m only pointing out why the other poster would make the assumption you were referring to an internal network. Do with it what you will.

    dan ,
    @dan@upvote.au avatar

    You can use a ULA if you want to. That’s essentially the IPv6 equivalent of a private IP.

    Why though? Having the same IP for both internal and external solves a bunch of issues. For example, you don’t need to use split horizon DNS any more (which is where a host name has a different IP on your internal network vs on the internet). You just need to ensure your firewalls are set up properly, which you should do anyways.

    alienzx ,

    You could follow this logic and add 2 alphanumeric digits before 4 numeric octets. E.g. xf.192.168.1.1

    This would at least keep it looking like an IP and not a Mac address. Another advantage would be graceful ipv4 handling with a reserved range starting with “ip” like ip.10.10.10.1

    jemikwa ,

    ONCE AND FOR ALL

    stringere ,

    AND MY AXE!

    snor10 ,

    They played us for absolute fools!

    Nalivai ,

    Oh yeah, great, let’s change the fundamental protocol on which all the networks in the world are based. Now two third of the devices in the world crashed because you tried to ping 192.168.0.0.1

    tilcica ,

    that WOULD be quite funny for the first second or 2…

    bjoern_tantau ,
    @bjoern_tantau@swg-empire.de avatar

    Could have sped up adoption significantly.

    lnee ,

    IPv

    heared of ipv5?

    YIj54yALOJxEsY20eU ,

    Lord have mercy

    shootwhatsmyname ,
    @shootwhatsmyname@lemm.ee avatar

    exits the room

    takeda ,

    You’re more of a perl programmer than network engineer :P

    hemko ,

    .*

    0x0 ,

    Technically, this one also matches everything:

    dannym ,

    Please don’t. Use regex to find something that looks like an IP then build a real parser. This is madness, its’s extremely hard to read and a mistake is almost impossible to spot. Not to mention that it’s slow.

    Just parse [0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3} using regex (for v4) and then have some code check that all the octets are valid (and store the IP as a u32).

    Emma_Gold_Man ,

    And dupe check. 0.0.0.0 and 000.000.000.000 may both be valid, but they resolve the same

    azertyfun ,

    Fuck that, if for whatever reason I’m writing an IP validator by hand I’m disallowing leading zeros. Parsers are very inconsistent, some will parse 010 as 10, others as 0o10 == 8 (you can try that right now with a POSIX ping). Talk about a footgun.

    stringere ,

    some will parse 010 as 10, others as 0o10 == 8

    …and that’s me in the fetal position, thanks.

    dannym ,

    Definitely, tho if you store it as a u32 that is fixed magically. Because 1.2.3.4 and 1.02.003.04 both map to the same number.

    What I mean by storing it as a u32 is to convert it to a number, similar to how the IP gets sent over the wire, so for v4:

    octet[3] | octet[2] << 8 | octet[1] << 16 | octet[0] << 24

    or in more human terms:

    
    <span style="color:#323232;">(fourth octet) + (third octet * 256) + (second octet * 256^2) + (first octet * 256^3)
    </span>
    
    Emma_Gold_Man ,

    True enough for database or dictionary storage, but a lot of times things get implemented in arrays where you still wind up with two copies of the same uint32.

    p1mrx ,

    Because 1.2.3.4 and 1.02.003.04 both map to the same number.

    But 10.20.30.40 and 010.020.030.040 map to different numbers. It’s often best to reject IPv4 addresses with leading zeroes to avoid the decimal vs. octal ambiguity.

    dannym ,

    I don’t know why anyone would write their IPs in octal, but fair point

    p1mrx ,

    It’s not about how people write them, it’s how parsers parse them. IPv4 has been around since 1982, and most parsers interpret leading zeros as octal.

    BeigeAgenda ,
    @BeigeAgenda@lemmy.ca avatar

    It’s always a treat to debug a regex of that size.

    rob64 ,
    Patches , (edited )

    Made that joke in an interview once.

    They didn’t think it was funny. They truly thought Regex was the solution to, but never the cause of, all problems.

    They wanted to make a Regex to verify every single address in the world. Dodged a bullet

    rob64 ,

    Holy hell yeah you did. How would you go about doing that in a single expression? A bunch of back references to figure out the country? What if that’s not included? Oy.

    Patches ,

    You wouldn’t. It’s not possible. Which is what I told them.

    And why would you want to? Legally if you change the given address, and it fails to get delivered - that is on you. Not them.

    Some countries have addresses that are literally ‘Last house on the left by the Big Tree. Bumban(Neighborhood). NN (Country)’. Any US Centric validation would fail this but I assure you - mail gets delivered just fine.

    azertyfun ,

    The only valid regex is (.+). Maybe add a separate country field (especially because some Americans wholeheartedly believe that the entire world should understand that “foobar, TX” means “foobar, Texas, United States”) (don’t get me started on states whose abbreviations are also ISO country codes).

    Unfortunately I guess business people only care about getting fewer support calls for missing shipping details, not correctness or a couple of calls from customers who live in the boonies. Then the proper answer is a form with a bunch of fields… which Americans will inevitably fuck up by making the “State” field mandatory despite most countries not having an equivalent.

    What I’d really do is use one of those services that automatically fill on the address using google maps or whatever. Not perfect, probably not free, but a whole lot less work for presumably way fewer PEBCAKs from customers.

    Natanael ,

    If you’re using one of those services then PLEASE allow manual entry / override because I’ve had forms like that which I were blocked from filing in because it didn’t acknowledge that my address existed.

    peter ,
    @peter@feddit.uk avatar

    /.+(road|street).+/ resigns

    SchizoDenji ,

    I knew there would be someone with the regex.

    giggling_engine , in Manager: This task only takes 30 minutes. Why did it take you the whole day?
    @giggling_engine@lemmy.world avatar

    The usual reason would be “because coworkers”

    Metype , in GitHub Desktop or Git CLI?
    @Metype@lemmy.world avatar

    I’d use Desktop if it worked, unfortunately recently it decided that I don’t have read/write access to a repo I’m working on. Works fine in git CLI so idk what the problem there is.

    akkajdh999 , in GitHub Desktop or Git CLI?

    lazygit:

    dukk ,

    Freaking love TUIs, it’s like they took the convenience of a GUI and the efficiency of the CLI and merged them. As a Neovim and Lazygit user myself it’s amazing what I can accomplish in but a few keypresses.

    iAvicenna , in GitHub Desktop or Git CLI?
    @iAvicenna@lemmy.world avatar

    CLI because linux

    marcos , in GitHub Desktop or Git CLI?

    For something with such an horrible interface, it’s amazing how often people that create a new interface for it manage to make it worse.

    beefsquatch , in GitHub Desktop or Git CLI?
    @beefsquatch@programming.dev avatar

    Sublime Merge, for most items in the UI it tells you the git command it will use

    smeg , in GitHub Desktop or Git CLI?

    I feel those captions are the wrong way round

    xmunk ,

    There are much better git UIs out there.

    smeg ,

    Definitely, last time I used github’s one it could barely do more than push and pull. I’ll almost always use a (good!) UI over the git CLI though.

    expr ,

    No matter the GUI you use, you’re leaving a lot of useful functionality on the table. By their nature, you only get a small fraction of git’s features. There are many useful commands I use regularly that are impossible to replicate using GUIs.

    smeg ,

    A good UI (for you personally) should do all the things you regularly do. Git is a complex and messy enough beast that when I have to use the CLI I’m going off the golden path and copy+pasting something arcane.

    0ops ,

    It’s not like you lose access to the cli when you use a gui. I personally use both

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines