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.

chicken , in My Git Knowledge

If you happen to forget the -m though, you may also need to have mastered exiting vim

jxk ,

Me as an Emacs user, who omits -m on purpose to practice quitting vi in case I really need it

PotatoesFall ,

you’re an emacs user who has vi set up as the default editor on your system?

(You can change it altering the $EDITOR env var)

jxk ,

I only use $EDITOR to launch vi from git. Emacs runs as a single process and is always open.

Wiz ,

Shift-Z Shift-Z to quit vi. Let’s keep it simple, people!

JATtho ,

The day I configured git to use Geany for commit messages with a separate config specifically tuned for this, it improved my life by 300%


<span style="color:#323232;">~$ cat ~/bin/gitedit
</span><span style="color:#323232;">#!/bin/sh
</span><span style="color:#323232;">exec /usr/bin/geany -i -s -t -c ~/.config/gitgeany $@
</span>

Then in git config: git config --global core.editor “gitedit”

Trollception ,

What developer uses Linux in professional work? Maybe for on the side stuff but I haven’t seen any corporate Linux machines.

aodhsishaj ,

Hello, I use a linux machine for dev work and all the servers and containers I touch are linux, all managed through gitlab CI/CD.

git scm is my daily driver and I use it for not taking and documentation as well as active python development.

atx_aquarian ,
@atx_aquarian@lemmy.world avatar

Macs are basically BSD, and Windows has WSL.

Trollception ,

But Mac or WSL are not Linux.

Solemn ,

Everywhere I’ve worked, you have a Windows/Mac for emails, and then either use WSL, develop on console in Mac since it’s Linux, or most commonly have a dedicated Linux box or workstation.

I’m starting to see people using VSCode more these days though.

Trollception ,

I thought Mac was unix which is similar but different from Linux?

Solemn ,

I think someone else said what it actually is in another comment. It’s functionally identical 90℅ of the time for me anyway,and I use CLI and vim on it.

Ephera ,

They’re both UNIX-like, i.e. they both implement the POSIX specification and are therefore in many ways compatible.

But yeah, modern macOS is more directly derived from the original UNIX operating system.
Linux was instead implemented from scratch to be compatible with UNIX.

Ephera ,

The entire IT ecosystem is built around Linux, because it’s so prevalent in servers, containers, budget hardware and the open-source community.

Yes, many companies don’t understand that and expect their devs to be productive on Windows. But in my experience, that’s an uphill battle.

In my company, we get very little IT support, if we decide to order a Linux laptop and we still have significantly less trouble with getting things set up to start coding.
Not to mention the productivity boost from having all the relevant technologies natively available + being able to script whatever you want.

RobertoOberto ,

Everyone at Mentor Graphics did before it got gobbled up by Siemens in 2017. I don’t know if they still do.

Ephera , in My Git Knowledge

Well, if anyone wants to learn more about Git, I can recommend this: ohmygit.org

JustAnotherRando ,

Another good one, entirely browser based, is learngitbranching.js.org

CookieOfFortune , in I'm not messy, I'm just efficient

Hmm… theoretically this is more efficient, however in practice you may end up with a dirty cache… I guess that’s fine if you don’t mind corruption of your coworkers.

gazter , in My Git Knowledge

As someone who knows that they know very little about git, this thread makes me think I’m not alone.

laurelraven ,

I think advanced git knowledge, like RegEx, is the exception, while the norm is to know the tiny handful of day to day useful bits

lhamil64 ,

How is regex git knowledge? I guess you can use regular expressions with git grep but it’s certainly not a git-oriented concept…

MrRazamataz ,
@MrRazamataz@lemmy.razbot.xyz avatar

what. that’s not what they said. they are comparing git knowledge to regex knowledge.

Astongt615 ,

Ah, thanks for the explanation. I too misunderstood the inflection.

MrRazamataz ,
@MrRazamataz@lemmy.razbot.xyz avatar

no worries

laurelraven ,

I don’t even know how to respond to this considering it has nothing to do with what I said…

survivalmachine ,

There are at least two ways to parse your statement, and they interpreted it differently from your intention.

laurelraven ,

I guess, if you ignore the comma…

magic_lobster_party ,

Could’ve written like this to avoid the ambiguity: “I think advanced git knowledge, just like RegEx, …”

lhamil64 ,

Rereading it, I now understand what you meant. I interpreted the “like regex” as an example of advanced git knowledge. I’m not sure the comma helps make it unambiguous though.

laurelraven ,

Yeah, reading it again and I can see that interpretation…

This is why you shouldn’t rely on yourself alone for proofreading your writing, I probably could have read that a hundred times and not seen another way to read it without someone else pointing it out

redcalcium , in My Git Knowledge

Interviewer: It’s git push origin main now. Get out of here!

cyborganism ,

Just set your default behavior.

OpenStars ,
@OpenStars@startrek.website avatar

I have only ever used simply “git push”. I feel like this is a “how to say that you barely know how to use git without saying that you barely know how to use git” moment:-D.

sag OP ,

Hold Up

Cqrd ,

You can default git to using your current branch and a specific upstream so you don’t have to put anything after git push

sag OP ,

Thanks didn’t know that

bleistift2 ,

Has git never told you that you should use git push -u origin <branch> when you push a new branch for the first time?

PoolloverNathan ,

The first time you manually push like that, you can add the -u flag (git push -u origin master) to push and set the branch’s default upstream. Afterwards, a plain git push while that branch is checked out will push the branch to that default upstream. This is per-branch, so you can have a main branch that pulls from one repository and a patch branch that pulls and pushes to a different repository.

blind3rdeye ,

My strategy is to just type git push and get some kind of error message about upstream not being set or something. That’s a signal for me to take a second to think about what I’m actually doing and type the correct command.

embed_me ,
@embed_me@programming.dev avatar

That’s a signal for me to

… google the error and randomly try stack overflow answers without really understanding them.

( I have changed)

synae ,
@synae@lemmy.sdf.org avatar

Normal distribution curve meme makes sense here - experts and noobs can both git push safely (but for different reasons)

OpenStars ,
@OpenStars@startrek.website avatar

I can follow along re-typing the same commands told to me by a more senior dev just like any average monkey!

This reminds me of something I made a long time ago: img

Since I am calling myself dumb, I estimate my progress to be somewhere perhaps at the 20th percentile marker? :-D One of these days I’ll RTFM and rocket all the way up to be dumb enough to properly qualify for “below average”! :-P

seth ,

It’s git push origin branch and then merge after submitting a pull request from branch to main after a successful lint check, build, deployment, and testing in a non-production environment, and PR approval. What kind of wild west operation allows pushing directly to main?

Michal ,

👆 This guy gits it

redcalcium ,

Employees who push first win and get to leave early. The rest would be the suckers who would merge whatever mess left behind by the early employees.

fckreddit ,

Single person operation pushes directly to main.

Pacmanlives ,

Hey there were like 3 of us lol! No joke that’s what I have done at a few of the smaller shops as an SRE/System Engineer

MR_GABARISE ,

What kind of wild west operation allows pushing directly to main?

That’s kinda the whole point of trunk-based development.

aport ,

Lol no it is not

dan ,
@dan@upvote.au avatar

Our changes land in main at my workplace, once they’ve received a code review and all CI checks pass (which includes tests, E2E tests, etc). We use feature flags rather than feature branches, so all diffs / pull requests are against main. We use continuous deployment which means changes are automatically deployed once landed. Changes roll out just to employees, then to servers used by a small percentage of users (2% I think), then everywhere. All risky changes are gated by feature flags so they can be enabled or disabled without a code push.

nilloc ,

We did a similar way with tag based releases, first a test tag, the production tag when signed off.

SpaceCowboy ,
@SpaceCowboy@lemmy.ca avatar

They laid off everyone else so there’s no one to the code reviews now. So fuck it, we’ll do it live!

AA5B ,

We just had a customer escalation caused by exactly this. One group relied too heavily on tribal knowledge for code reviews and didn’t want any other process. Once the tribal elders were gone, no one knew all the things to look for, and there was no other way to catch issues

As a Continuous Integration and Test guy, I was standing in the corner yelling “I thought you were DevOps. Where’s the automation?” Fine, Puppet/YAML doesn’t work with a traditional build and test, but you could have done syntax validation and schema validation that would have caught before the code review could have happened (and I showed them how a year ago, even offered to do it for them) and set up some monitoring to discover when you break stuff, before customers discover it.

Pacmanlives , (edited )

You kids with your fancy branch support back in my day we had CVS and RCS liked it

en.m.wikipedia.org/wiki/Revision_Control_System

Nalivai ,

You mean “I just sent you zip file with my new changes via email, get fucked looser”?

korok ,
@korok@possumpat.io avatar

Do you not use a fork as your origin, separate from the production upstream repo? I’ll push to my fork’s main branch for small or urgent changes that will definitely be merged before anything else I’m working on.

Solemn ,

If it’s a private repo I don’t worry too much about forking. Ideally branches should be getting cleaned up as they get merged anyway. I don’t see a great advantage in every developer having a fork rather than just having feature/bug branches that PR for merging to main, and honestly it makes it a bit painful to cherry-pick patches from other dev branches.

1984 ,
@1984@lemmy.today avatar

I never worked anywhere where they had this set up. I would push to branches and make pull requests, but always work in the production environment.

I was mainly working as a data engineer though so that’s probably why. It’s hard to have test environments since you can’t replicate all the enormous amounts of data between environments without huge costs.

expr ,

There are many strategies for maintaining test environments for that kind of thing. Read-only replicas, sampling datasets for smaller replicas, etc. Plenty of organizations do it, so it’s not really an excuse, imo.

1984 ,
@1984@lemmy.today avatar

No I know. But it was “good enough” for the company and we never had any serious issues working that way either. If someone pushed a faulty commit, we just reverted it and reloaded the data from the source system.

A lot of companies have kind of bad solutions for this sort of stuff, but it’s not talked about and nobody is proud of it. But it keeps the environments simple to work with.

AA5B ,

No kidding. Never push to main, and you most likely can’t. While I get the joke of the meme, I’d send the person packing if they don’t understand branching, and branch flow, rebasing or reverting. Even if you look up the command or do it all through your IDE, understanding the workflow of using git is important

RustyNova ,

Fuck those that use main. If you’re working on a library fork that has main and a project that has master you’re bound to invert the two.

“What do you mean I can’t checkout main? Oh right, here it’s master…”

For once that we had a standard, it had to be ruined.

huginn ,

Fuck those that use master. If you’re working on a library fork that has main and a project that has master you’re bound to invert the two.

“What do you mean I can’t checkout main? Oh right, here it’s master…”

For once that we had a standard, it had to be ruined.

The standard is now main.

maynarkh ,

The standard is now main.

Git itself does not use that standard yet, so at least now there are two competing standards.

I get that there are cultural reasons why the word master was loaded language, but still, it’s not like institutional racism will go away. Meanwhile, the rest of the world which doesn’t struggle with the remnants of slavery has to put up with US weirdness.

zalgotext ,

Git itself does not use that standard yet, so at least now there are two competing standards.

Just ran git init in a brand new empty directory, and while it did create a master branch by default, it also printed out a very descriptive message explaining how you can change that branch name, how you can configure git to use something else by default, and other standards that are commonly used.

Also, there’s nothing saying your local branch name has to match the upstream. That’s the beauty of git - you have the freedom to set it up pretty much however you want locally.

maynarkh ,

Yeah, that’s what I’m saying, there is no one standard now. The stupid thing is all the problems that causes is mostly because there used to be one, and stuff written assuming master branches are eternal.

I’ve had a company that had some automation built on git but below GitLab that would not let you delete master branches. When main became a thing, they just started hard protecting those as well by name. It’s because of regulatory, and they are very stingy about it.

So when I created a few dozen empty deployment repos with main as the default, and then had to change it over to master so that it lined up nicer with the rest of the stuff, I’ve had a few dozen orphaned undeletable empty main branches laying around. A bit frustrating.

That said, the whole thing is just that. A bit frustrating. If it makes some people feel better about themselves, so be it. I am blessed in life enough to take “a bit frustrating”.

zalgotext ,

Yeah that’s fair, I can see how that would be annoying for sure. I think that frustration stems more from company policy though, not necessarily the standard changing. And you know what they say, there’s nothing certain in this world except for death, taxes, and standards changing

maynarkh ,

It is trash code for sure, but most of the world’s code is trash, so we do have to accommodate trash code when we design stuff. That said, they do need to do this to comply with laws and make sure code doesn’t get lost (it’s finance), and this was the easy way to do it. Doing it better would have taken time and attention away from other stuff.

And standards do change, but they usually change to accommodate new features, or a new software product displaces an old one. I don’t really know any tech standard that changed because of cultural reasons. Point is, change is a cost. It may be worth to pay the cost, but here the benefits were US cultural sentiments that most of the world doesn’t care about.

And the stupid thing is that even when standards change, you are not usually labelled as culturally out of touch if you don’t follow it. Most big orgs don’t follow changes that they don’t need to. Nobody calls you a bigot for running COBOL mainframes in 2023, but they might if you predominantly have master branches.

I guess my perspective is that some people I know were mildly annoyed before lunch about it one day two years ago, since nobody cares about US identity politics, with my personal opinion being if the US didn’t fill up its for-profit prisons with black people who it then those prisons profit off of (just as an example), the word master would not bite as hard, and the whole thing would be moot.

Vikthor ,
BatmanAoD ,

git checkout ma<tab>

If you don’t have autocomplete set up for your shell, get it working. If someone has a different branch named ma…, ask if you can delete it, and get your team to adopt a decent branch naming convention.

Nalivai ,

<span style="color:#323232;">git checkout ma<tab>
</span><span style="color:#323232;">
</span>

<span style="color:#323232;">mai_new_chenges 
</span><span style="color:#323232;">march_deploy_second_final_final_fixed      
</span><span style="color:#323232;">main_fixes       
</span><span style="color:#323232;">mast_not_farget_to_delete_it
</span>
BatmanAoD ,

…yeah, I already said that if there is another branch starting with those letters it should be deleted. You need a naming convention.

Nalivai ,

I really wish to work in a team where people have naming conventions for branches that are concerned about stuff like that. Must’ve been a nice place to work at.

BatmanAoD ,

Whoever named the “final final fixed” one seems to have missed the point of version control. 😑

1984 ,
@1984@lemmy.today avatar

I think the reasons was ridiculous. The fact that people didn’t like the word master anymore. But I’m used to it now, so fine, let’s use main. It makes sensitive people feel better.

nephelekonstantatou , in Java...
@nephelekonstantatou@lemmy.world avatar

Add another one to the side and you can almost read the linker error on one line!

go_go_gadget , in My Git Knowledge

Woah look at mr. fancy pants with his git push arguments.

thirteene ,

I use this in my bash profile in case anyone else finds it helpful. Usage is:

gao fixing a typo


<span style="color:#323232;">function gao() {
</span><span style="color:#323232;">    git add .
</span><span style="color:#323232;">    git commit -a -m "$*"
</span><span style="color:#323232;">    git push origin `git rev-parse --abbrev-ref HEAD`
</span><span style="color:#323232;">}
</span>
Marcbmann , in My Git Knowledge

I think HR is just ill equipped for technical interviews, but they try to conduct them regardless.

Was denied a position because HR felt my experience “lacked depth” which I still can’t understand 3 years later.

Did the same role at a larger company. Had more responsibility than they were giving me. Developed my own tools for job automation. Grew their business from nothing to half a mil a month. Experienced all stages of growth and realized massive success.

After that interview I kept getting technical interviews and getting passed on because I was too senior for the position

EnderMB , in Tinder to ban web developers who use 'engineer' in their bio

Funny enough, I probably did more software engineering as a web dev than I did as a software engineer at some companies.

In the UK, at least, the only difference typically between a web developer and a software engineer is £15-20k in salary. Frankly, we’re all software engineers…

AlecSadler ,

What are dev/engineer salaries like in the UK? Been considering places to move to…

porous_grey_matter ,

About half of the equivalent in the US, often less. It’s exceedingly rare to make 100k here even in a senior position, although it does exist. Median is 40-50 (pounds, so times that by 1.2 for USD).

AlecSadler ,

Holy crap. That’d be a pretty substantial cut for me, but I guess that said, is the COL a lot less?

Appoxo , (edited )
@Appoxo@lemmy.dbzer0.com avatar

Afaik it’s similar here in Germany.
BUT you need go remember: We have social insurance and don’t need to pay 5000$ when taking the ambulance etc. etc.
So if you exclude that we may come close if you need to see a doc on the regular.

azertyfun ,

Even then it’s a pay cut. I know some people who moved to NA, and egotistically it’s a sound decision because engineers there are on the right side of the wealth disparity ravine. Money’s good enough that you don’t need social safety nets. And if push comes to shove, someone making $100k/y can definitely afford health insurance and the occasional trip for medical tourism.

Now personally I believe in income redistribution so I’m happy to pay a lot of taxes in one of the most income-egalitarian countries in the world. But I’d make a shit-ton more if I lived&worked in Luxembourg or Canada.

Appoxo ,
@Appoxo@lemmy.dbzer0.com avatar

Then you need surgery and your COL is already >50% of your net income and you are a 100k in debt. And assuming you have savings, I’d rather spend them on myself (vacation etc.) rather than brace for my bankruptcy because I stood up wrong.

Now personally I believe in income redistribution so I’m happy to pay a lot of taxes in one of the most income-egalitarian countries in the world.

So same for me

Socsa ,

These careers do have decent insurance in the US. Long term illness is a different beast, but the most of ever pay for a medically necessary surgery is $3800, which is my max out of pocket. And I’d get short term disability which pays both 80% of my salary to me, and some amount to the company to compensate for my lost time.

Good jobs in the US really don’t have as many horror stories you are always hearing on the internet. I mean, we have lots of other horror stories which are totally true, like our schools being violent and deadly. And rural areas being filled with the stupidest people on the planet. And even in lots of tier one US cities, the public transportation being useless.

Kiloee ,

How do these comparisons look if we go by pay per hour worked? Because here in Germany the maximum amount you are allowed to work in a week is 60 hours. Unless in special positions (like the ones that have harvesting season or mine stuff), this has to be equalised down to 48 over a 6 week period at max (the special ones just have a longer period for it or a different timing system on what counts as break). If you are in a position that equals to 48 hours a week (6 day week), your minimum PTO is 24 days. If you have a 5 day week it is 20 days, and the numbers above shift down to 50 and 40 respectively. Most jobs that have any kind of skilled work behind them have 30 days PTO. Plus there are a lot of national holidays.

I work in taxes and the average days worked in a year is assumed at 230 (if we don’t have information otherwise ofc). That is less than 2/3 of the year.

Whereas my knowledge on the US is that 60 hour weeks are not necessarily an exception, you get way less PTO, you have less national holidays and you often need to network after hours to even be successful to a moderate degree (of course networking is a thing here as well, but it isn’t that necessary at a medium level, only if you want to get the high positions).

Appoxo ,
@Appoxo@lemmy.dbzer0.com avatar

Not to mention we are “forced” to take those days and are not in an at-will position where you can get fired any day of the week.

Socsa ,

Again in my industry I work 40-50 hours and have 20 days of PTO but it’s not really a hard limit. There are ten national holidays on top of that.

Kiloee ,

So you are always at least at the maximum average we have and often higher, with less PTO and holidays?

You also missed my core statement: how would the salary comparison go if we break it down to a hourly one? How would the gap look then?

azertyfun ,

COL is not anywhere near $50k/y ($4100/mo!) except maaaybe in some very narrow parts (basically just SV an Manhattan, assuming you want a decently large apartment). But in either of those places an engineer makes up for it by making $150k/y instead.

Also rich Americans have good insurance, I’m sure you could find an example of someone who had this happen but it’s basically a non-risk.

And if healthcare was the only problem, then Canada would be an option as well. Engineers there still make a shitload more than German engineers. Watch out for the real estate market tho.

Potatos_are_not_friends ,

I did the math a few years ago when Trump was president.

I currently make double in America of what is made in other countries. It was something ridiculous like even if I had $35k a year in med expenses, I’d still be making more in the US.

Either American engineers are paid way out of proportion, or the rest of the world pays poorly. Either way, I’m going to ride this train before Skynet replaced me.

porous_grey_matter ,

Yes, depending on where you live rent might be similar (London isn’t much cheaper than NY or LA) but cost of living is otherwise less. Also, people tend to work much shorter hours (a limit of 37 for me, any extra is returned as PTO) and start with much more annual leave (25 days discretionary, for me, plus public holidays, plus we close over Christmas and new year’s). Furthermore there’s no health costs to pay etc. On the whole it balances out and I think the lifestyle here is better, but I do envy the extreme salaries of those in the US.

AstridWipenaugh ,

As someone in the US, 40 hours per week is the minimum. Recognition for “being a hard worker” has required 60+ hours at some places I’ve worked. This is for a fixed salary and no overtime pay, mind you. Then you’re usually on an on call rotation every few weeks where you may have to work off-hours if something comes up. That’s additional unpaid hours. My current company pays $80,000 USD for new college grad software developers.

US holidays are 8-10 days, and junior devs usually start with 5-10 days of vacation. Health insurance costs at least several hundred a month (your employer also pays about 3x more than you towards your insurance premium as a benefit).

chakan2 ,
@chakan2@lemmy.world avatar

You’re actually getting applicants at 80k? That’s nuts. Last I checked fresh outs were clearing 100k.

AstridWipenaugh ,

Despite incessant reassurance from recruiting that they have the best market data and we’re paying above average, I have reasons to suspect that’s not the truth. One of them being we’re hemorrhaging mid-grade talent and focusing on hiring backfills in Ireland and Hungary for much lower salaries. It almost seems like they’re trying to offshore the dev group via attrition to work around having to do layoffs…

chakan2 ,
@chakan2@lemmy.world avatar

Every HR department ever says that exact same thing. Even while the company is burning down and past bankruptcy.

Edit: For example, the fortune 50 I worked for insisted the same thing. Even when faced with industry data…they’d insist the Glassdoor and Indeed numbers were fake.

I left and got a 90% raise. That’s not a joke number.

AlecSadler ,

Wow those benefits are amazing.

porous_grey_matter ,

It’s not too crazy here :) 25 days a year is the legal minimum and I get about 10 more than that, plus a few extra from doing overtime here and there. That’s why I say the lifestyle is on the whole better here even though we don’t earn nearly as much. It’s still plenty to pay the mortgage, and Europe is right on the doorstep to spend all that holiday time in.

Aceticon ,

You made that as a senior software dev in Finance more than a decade ago, more now (mainly because the pound went down versus other main currencies), especially if you’re working in the Front Office (i.e. directly with business, such as Traders and Analysts)

However breaking into Front Office IT in Finance without previous experience in your CV working in banking or similar is pretty though.

porous_grey_matter ,

Sure, yes, but those kinds of positions in the US make 300k or more too. Also, then you work in finance and you have to live with the fact that you are categorically making the world a worse place every day.

Aceticon ,

Absolutelly, I agree with you, on all of it.

gmtom ,

Varies heavily dependent on industry, but typically less than US devs. Also if you live outside London it’s going to be a lot less.

You average non-junior dev will probably make about 50-60k £ in london but about 25-35k £ outside london.

Senior developer can vary heavily. in london I’ve seen 60-120k depending on language and industry.

AlecSadler ,

Wait so it’s possible a Senior Dev outside of London would make $35k??

MrScottyTay ,

I’m a senior in the north east and I’m on 32k. But cost of living and houses are sooooo much cheaper here. I am not scraping by, I’m doing good.

my_hat_stinks ,

I’d say you’re very underpaid, I’m making about 50% more than that in a fully remote UK-based mid-level position. You should start looking for a new job, even if it’s just as leverage to get paid fairly at your current place.

theo ,

To add to this, I get paid more as a junior in Wales which should be comparable to NW England economically.

MrScottyTay ,

Oh yeah, I’m severely underpaid in my current job, even for where I live and what my role is. But I’m happy with my bosses and my colleagues. They’ve got my back more than not and I can be happy knowing I’m not in a hostile work environment. They are my genuine friends. Also helps that I enjoy the work I do. It’s not going to be my forever job but I’m savoring it while i can before I move on.

my_hat_stinks ,

If they’re genuine friends they’ll be receptive when you ask them to pay you fairly.

MrScottyTay ,

I already get paid more than the three directors, we’re a small company with very little money at the moment, and under threat of going under. They want to pay me more. It’s just if they did, the company goes under next month instead of a few months down the line if no new clients come to the table and actually commit to working with us.

Tja ,

However things like cars, phones, vacations, gas/petrol or electricity still cost the same everywhere…

Kiloee ,

Vacations maybe because that also depends on where you want to go. Cars can differ wildly, unless you want a sportscar or some such. Same goes for phones, often you get one „free“ with your contract for mobile. Gas/Petrol vary a lot, because of taxes and other state side things attached to them. Same goes for electricity plus those also depend on availability.

Tja ,

A VW Golf or a Hyundai i20 costs the same in London as in a village, not only a Porsche.

Same for the phone, the contract per month is the same anywhere you live.

Taxes on gas usually are the same for all locations in a country, at least in the countries I’ve lived in. Only highway/town variations.

I’d love to see where electricity prices vary locally, never seen that myself.

Kiloee ,

I interpreted your comment as between countries, my bad then.

smeg ,

Pounds and dollars are not the same. Also don’t move country just for a job, you can probably work remotely anyway!

gmtom ,

£, not $, but yes.

captainthroatfuck ,

Holy shit, that’s nothing outside of London. At that point be a restaurant server.

One thing in the US that has been encouraging is the very lowest earners are getting big jumps in pay, while people like devs are stagnating

punkwalrus , in My Git Knowledge
@punkwalrus@lemmy.world avatar

The thing is that for a majority of cases, this is all one needs to know about git for their job. Knowing git add, git -m commit “Change text”, git push, git branch, git checkout , is most of what a lone programmer does on their code.

Where it gets complicated real fast is collaboration on the same branch. Merge conflicts, outdated pulls, “clever shortcuts,” hacks done by programmers who “kindof” know git at an advanced level, those who don’t understand “least surprise,” and those who cut and paste fixes from Stackexchange or ChatGPT. Plus who has admin access to “undo your changes” so all that work you did and pushed is erased and there’s no record of it anymore. And egos of programmers who refuse any changes you make for weird esoteric reasons. I had a programmer lead who rejected any and all code with comments “because I like clean code. If it’s not in the git log, it’s not a comment.” And his git comments were frustratingly vague and brief. “Fixed issue with ssl python libs,” or “Minor bugfixes.”

Ottomateeverything ,

I had a programmer lead who rejected any and all code with comments “because I like clean code. If it’s not in the git log, it’s not a comment.”

Pretty sure I would quit on the spot. Clearly doesn’t understand “clean” code, nor how people are going to interface with code, or git for that matter. Even if you write a book for each commit, that would be so hard to track down relevant info.

mkwt ,

Yeah, I think that guy only got a superficial understanding of what Uncle Bob was saying.

My policy as a tech lead is this: In an ideal world, you don’t need the comment because the names and the flow are good. But when you do need the comments, you usually really need those comments. Anything that’s surprising, unusual, or possibly difficult to understand gets comments. Because sometimes the world is not ideal, and we don’t have the time or energy to fully express our ideas clearly in code.

My policy on SCM logs is that they should be geared more towards why this commit is going in, not what is being done. And what other tickets, stories, bugs it relates to.

PrettyFlyForAFatGuy ,

Lead of a small team of scripters here. The “Why. Not What” is defo a good way of encouraging cleaner code.

Had to request changes recently on a PR like this, big function with comments telling me what it was doing. When they resubmitted for review they had broken it down into smaller functions with good variable/function naming. following what was going on was much easier

AA5B ,

Same strategy here, but recently found myself commenting on the “what”. There was a perfect built-in, but not really readable and I couldn’t figure out how to make it readable, so fine

AstridWipenaugh ,

We solve that problem using naming conventions. Branch names must start with the issue key (we use Jira). You don’t do anything in that branch that’s not part of that issue. If you do, you must prefix the commit message with the issue key that it goes with. The commit itself identifies what changed. The Jira issue provides all the backstory and links to any supporting materials (design docs, support tickets, etc). I have to do a lot of git archeology in my role, and this scheme regularly allows me to figure out why a code change was made years ago without ever talking to anyone.

AA5B ,

To be honest, when I ask a candidate about git, I’m looking for them to describe this workflow.

Heck, I have a new person who I tasked with minor config change, just to make sure she knows how to use git in a professional environment

bleistift2 ,

But when you do need the comments, you usually really need those comments.

It’s nice to see you sharing my experience. My code is either uncommented or very severely commented with comment-to-code ratios of 10:1 or more. I hate the files that are soo green… :(

Valmond ,

Why does

git rebase

work sometimes?

Yeah git can get quite complicated when there ate lots of people working on the same things.

mkwt ,

It’s not git that’s complicated. The work is complicated. git is just one of the tools that programmers use to manage the complexity.

I also think that some people get too hung up on having a “clean” history, and trying to “fix” the history after it has already occurred. I usually have enough problems to worry about in the present, without also trying to worry about the past.

zqwzzle ,

I like to rebase on my feature branches before the PR because it’s a gift to my future self that resolves all the conflicts (if any) before my work goes in. I just find trying to figure out how those conflicts got resolved when there are a bunch of merges in more difficult if there’s a problem later. It’s easier to understand for me. YMMV, this does not work for everyone. Etc etc.

Wrench ,

I find the “clean history” argument so flawed.

Sure, if you’re they type to micro commit, you can squash your branch and clean it up before merging. We don’t need a dozen “fixed tests” commits for context.

But in practice, I have seen multiple teams with the policy of squash merging every branch with 0 exceptions. Even going so far as squash merging development branches to master, which then lumps 20 different changes into a single commit. Sure, you can always be a git archeologist, check out specific revisions, see the original commits, and dig down the history over and over, to get the original context of the specific change you’re looking into. But that’s way fucking more overhead than just looking at an unmanipulated history and seeing the parallel work going on, and get a clue on context at a glance at the network graph.

GissaMittJobb ,

Using curated commits to optimize for pull request reviewability is highly underrated. Liberal use of interactive rebasing to ‘tell a story’, essentially.

andioop ,

you’re they type to micro commit

Thanks for a much shorter and better way to explain this tendency of mine and why I rebase a lot, yoinking this phrase.

ekky ,

“Fixed issue with ssl python libs,” or “Minor bugfixes.”

Red bird going “Hahaha, No!”

In other news, never work more than one person on a branch (that’s why we have them). Make a new related issue with its own branch and rebase whenever necessary, and don’t even think about touching main or dev with anything but a properly reviewed and approved PR (in case they aren’t already protected), or I’ll find and report you to the same authority that handles all the failed sudo requests!

Also, companies that disable rebasing are my bane. While you can absolutely do without, i much prefer to have less conflicts, cleaner branches and commits, easier method to pull in new changes from dev, overall better times for the reviewer, and the list goes on. Though, the intern rewriting multiple branches’ history which they have no business pushing to is also rather annoying.

seth ,

deleted_by_author

  • Loading...
  • AA5B ,

    To be honest, this is a simple rejection that really doesn’t waste anyone’s time except the perpetrator

    bleistift2 ,

    If it’s not in the git log, it’s not a comment.”

    This is so incredibly dumb, though I’m sure I don’t have to tell you this. That comment will be buried in the git log if anyone ever fixes a typo on that line.

    timbuck2themoon ,

    Your lead sounds like someone who thinks you’re charged per line of code you commit.

    ramjambamalam , in My Git Knowledge

    git gud

    aeharding ,
    @aeharding@lemmy.world avatar

    git: ‘gud’ is not a git command. See ‘git --help’.

    rekt

    Adanisi ,
    @Adanisi@lemmy.zip avatar

    They should add that command, just to screw up this joke

    uis ,

    git help

    Nalivai ,
    
    <span style="color:#323232;">zsh: command not found: rekt
    </span><span style="color:#323232;">
    </span>
    
    theFibonacciEffect ,

    git rekt

    drathvedro , in Beginner developer moment

    Those look pretty tame compared to some aircraft that actually took flight IRL - like Nemeth Parasol, Vought V-173, VVA-14, Coleopters, Flettner airplanes, and many, many more. Actually, they’d fit well as a following with “the projects they hire you to work on”.

    lemming ,

    Thanks for this, those are some incredible designs!

    laverabe ,

    Come join us on the dark side in !cranetrainexcavators

    bleistift2 , in Beginner developer moment

    Personal repositories aren’t production code. They’re learning opportunities. You tried adding 100 engines to a plane and learned that that was a bad idea. Who cares if there’s no cockpit if you were test-driving the wings?

    Gork ,

    The top left still has a cockpit, look at the tail fin lol

    Rooskie91 ,

    This is… More inspirational than I thought it could be.

    1984 , in Beginner developer moment
    @1984@lemmy.today avatar

    I love the pic of all engines the most. :)

    Would probably use all fuel in 10 minutes, and be way too heavy to even take off.

    Kissaki ,

    be way too heavy to even take off

    maybe the engines would take off by themselves

    ProfessorProteus ,
    @ProfessorProteus@lemmy.world avatar

    This is just off the top of my head from a bit of experience in KSP, but depending on the thrust-to-weight ratio of the engines, it would probably be able to take off, but you’re right, it wouldn’t win any fuel economy awards.

    Actually I doubt any material could stand that kind of wing loading, and the aerodynamics would probably be all kinds of fucked. Pretty apt analogy for a beginner developer.

    samus12345 , in My Git Knowledge
    @samus12345@lemmy.world avatar

    Seeing Peter Griffin labelled as “HR”, I automatically pronounce the R as “Ah” in my head.

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