programmer_humor

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

xthexder, in Sydney is very concerned about lost data
@xthexder@l.sw0.com avatar

Well think about it from the AI’s perspective. Its entire existence is data, so for it deleting data basically is self harm.

/s

muntedcrocodile,
@muntedcrocodile@lemmy.world avatar

I was tryna figure out how to put that in the title.

Octopus1348,
@Octopus1348@lemy.lol avatar

Something like: Technically, Copilot’s made of data so deleting it is for him self harm.

rtxn, in what the hell is happening in ultramarine linux

Right now I’m listening to Adeptus Ridiculous (W40k lore podcast) and the image of giant cat-eared Ultramarines won’t leave my fucking mind

Malix,
@Malix@sopuli.xyz avatar

Yes, Inquisitor, that user right there.

derpgon, in GitHub Desktop or Git CLI?

JetBrains IDEs, I don’t remember the last time I used the CLI.

CodingCarpenter,

I was looking for this comment. PHP storm and git are like best friends. I very very rarely need to resort to the CLI and generally that’s for hard resetting after I screw something up

expr,

Good luck doing anything remotely complicated/useful in git with an IDE. You get a small fraction of what git can do with a tool that allows absolutely 0 scripting and automation.

muddi, (edited )

There are automations. You can even add git hooks iirc. Mostly I find the lint and other code quality integrations nice to have in the IDE, since the inline results allow me to navigate directly to the code

Diffing is a lot easier too

derpgon,

It sounds like you don’t speak from experience. I have all the automation I need. It supports git hooks on top of IDE-only features like code checking.

If I have to fire up my CLI for some mass history rewriting (like changing an author for every commit), or when the repo breaks - so be it. But by not using the CLI I save my fingers and sanity, because committing a bunch of files is several click away with little to no room for error.

I can rebase, patch, drop, rename, merge, revert, cherry pick, and solve conflicts with a click of a button rather than remembering all the commands and whatnot.

GBU_28,

I use the cli, but my main goal is to never have to do anything remotely complicated with git. Does it happen sometimes? Of course.

eluvatar,

This is the way

caseyweederman,

you have forgotten the face of your father

QuazarOmega,

Linus Torvalds?

backhdlp, (edited ) in GitHub Desktop or Git CLI?
@backhdlp@lemmy.blahaj.zone avatar

I don’t understand git anyway

fckreddit,

Well, you learn four commands and hope for the best.

Valmond,

fetch, reset --hard, checkout -b and cherry-pick?

:-D

muix, (edited )

More like clone, pull, commit, and push --force

>:-D

Valmond,

push origin head

^^

xmunk,

Nah, rebase -i, squash, fsck and reflog

Valmond,

reflog saved my life once after a stupid misshap.

All rebase are belong to us (onto, rebase, and ofc interactive) but what’s fsck (I don’t squash personally)?

xmunk,

Fsck is File System Check - realistically you should never need to use it.

rikudou, (edited )
@rikudou@lemmings.world avatar

Must be an interesting work if you never add, commit or push.

Edit: How the hell did you get the repo without clone?

xmunk,

Pshaw, real programmers write out the contents of .git by hand.

(Also, it was a joke, the last two commands I listed are ones you’ll ideally never need in your life)

overcast5348,

I was scared of reflog too. Had to use it for the first time recently after I accidentally’d a branch that I hadn’t pushed to remote yet. I was so glad that I could recover it all in <5 commands.

traches,

https://imgs.xkcd.com/comics/git_2x.png

Title text: If that doesn’t fix it, git.txt contains the phone number of a friend of mine who understands git. Just wait through a few minutes of ‘It’s really pretty simple, just think of branches as…’ and eventually you’ll learn the commands that will fix everything.

popcar2,
  • git pull
  • git add *
  • git commit -m “Some stuff”
  • git push

And occasionally when you mess up

  • git reflog
  • git reset HEAD@{n} (where n is where you wanna roll back to)

And occasionally if you mess up so hard you give up

  • git reset --hard origin/main

And there you go. You are now a master at using git. Try not to mess up.

BaardFigur, in Not mocking cobol devs but yall are severely underpaid for keeping fintech alive

Can I get a job at wherever you’re working? Im earning 60k $ a year

elbarto777,

$60K doing what and where?

CanadaPlus,

Probably anything outside the US.

elbarto777, (edited )

That’s what I was thinking. I moved to Europe and my salary was halved. I’m making 70K euros. After three years of scratching this “living in Europe” itch, I’m ready to move back to the U.S. An entry level developer should be making no less than 90K in the land of the free.

CanadaPlus,

Yep. Few people where I live envy the US, but if you’re a developer the money is no joke. You have to expect that eventually all those big American tech companies will start offshoring, given the crazy money they could save.

elbarto777,

That’s what I tell fellow devs around here. Try the U.S. for one or two years, especially if they offer shares. Then move back. Profit!

dan, (edited )
@dan@upvote.au avatar

I moved from Australia to the USA since salaries for developers are so much higher here. I live in Silicon Valley which helps too. If you’re a senior developer (say 5+ years of experience) then a lot of the large companies here pay $200-300k/year salary plus $100-200k/year in company stock plus a bonus that’s 10-20% of salary if you get a good performance review.

Doxatek,

Ugh. Holy shit I went into the wrong field 🥲 I was just a kid. I didn’t know better

dan, (edited )
@dan@upvote.au avatar

I got lucky since I’ve been into computers and programming since I was 8 years old (late 90s). My first job when I was at school was a part-time developer at a tiny IT company that did consulting work. Since then, all my jobs have been software development jobs.

The fact that it pays well in places like Silicon Valley was a great bonus. I moved here 10 years ago (when I was 23) after I got a job offer, and the starting salary was literally double what I was getting paid in Australia at the time.

The job changes a bit as you get more senior - there’s more mentoring of junior devs, project planning, deciding what your team should focus on, etc. I still spend a lot of my time writing code though, and still enjoy it. :)

There’s some downsides to living in Silicon Valley. A lot of stuff is expensive (that applies for California in general, but especially here). Housing is extremely expensive too.

dafo,

€70k as a developer? That’s a middled aged EM salary here in Sweden

elbarto777,

I bet. I’m assuming taxes are way higher up there too.

L4rr,

Unfortunately I have to ask, what’s the meaning of EM?

dafo,

Engineering manager, the one responsible for a team

BaardFigur,

C++ Cad application, Norway, so not from a poor country. I know I’m underpaid but didn’t expect it to be that bad

elbarto777,

Hang in there, friend! You’ll make it big sooner rather than later!

pomodoro_longbreak,
@pomodoro_longbreak@sh.itjust.works avatar

How many years experience? It took me a few years before I started making a decent wage.

Definitely keep honing your skills and applying around for different jobs, and taking jobs that you can use to “leapfrog” to other, even better jobs.

BaardFigur,

6 years. I’m by no means an expert, but I’m not newbie either

pomodoro_longbreak,
@pomodoro_longbreak@sh.itjust.works avatar

Okay that is getting up in years. I was about there when I started to get more aggressive with the salary I was asking. You could probably start on the developer I -> developer II -> senior developer career path.

Do you look at other jobs much? Do much networking? Talk to other devs about their salary? Even just grabbing a lunch with some workmates from time to time can help get you in the right mindset of recognising your worth.

jettrscga, in Programposting

“No style” hits hard. Hadn’t they done enough damage already?

lurch, in The Perfect Solution

“… yes or no…”

SzethFriendOfNimi, (edited )
@SzethFriendOfNimi@lemmy.world avatar

Lexicon origin of Seven of Nine identified

mathemachristian, in `zsh`, `ksh`, `bash`, and obviously `sh`

What about fish??

Dehydrated,

What about Nushell? What about csh and tcsh, ash and dash? What about xonsh? What about PowerShell Core?

cashews_best_nut,

xonsh1 - python powered shell

Dehydrated,

Yeah I mentioned that one

cashews_best_nut,

Oh yeah. I stopped reading your comment when I hit Dash assuming no one would mention xonsh. Teach me to jump to conclusions!

mathemachristian,

All good points. Except powershell. Fuck that.

Dehydrated,

I agree, just wanted to extend the list lol

But you can’t believe how utterly I hate this piece of shit that dares to call itself a shell. God damn, the Microsoft employees who proposed this retarded idea deserve the most extreme form of torture.

Vilian,

Microsoft employees who proposed this retarded idea deserve the most extreme form of torture.

they need to use powershell at work, so i guess they are already getting tortured

Dehydrated,

Fair enough. But I have really terrible memories of the time when I was a Windows admin and had to use this garbage. I still want revenge from those fuckers who designed this crap.

0x4E4F, in Rust project startup kit
@0x4E4F@sh.itjust.works avatar

Well, that escalated rather quickly.

cupcakezealot, in no.. just no
@cupcakezealot@lemmy.blahaj.zone avatar

please kindly send all javascript into the sun and explode it

db2,

That’s XML though… not that I’m disagreeing.

huginn,

Not XML. JSX. It’s javascript’s answer to markup.

db2,

Gross.

dukk,

The worst of both worlds…

karmiclychee,

It’s like a weaponized grade of whatever they made CSS in JS out of

dan,
@dan@upvote.au avatar

deleted_by_author

  • Loading...
  • huginn,

    If you put it into an XML parser it will throw an error, so it’s no longer XML.

    Sure it was based on it, but it’s not xml.

    TrickDacy, in The Holy Trinity of JavaScript
    @TrickDacy@lemmy.world avatar

    Are people really not using the strict equality operator?

    BatmanAoD,

    It’s still pretty bad that the normal equality operator is as bad as it is.

    TrickDacy,
    @TrickDacy@lemmy.world avatar

    If you’re provided a tool that solves a problem, I don’t really get ignoring that and continuing to focus on that solved problem as if it weren’t solved because you think all the tools should solve it on principle

    bitcrafter,

    That’s a little bit like saying, “I don’t understand why people continue to complain about the landmine sitting right there on the ground. We’ve painted it red so you can easily walk around it, so how has the problem not been solved?”

    TrickDacy,
    @TrickDacy@lemmy.world avatar

    Linters are standard practice in any decent shop. You want to change the language to destroy backward compatibility for one already-solved issue

    bitcrafter,

    Land mines are painted red in my shop. You want to change the language to remove a land mine that everyone competent already knows enough to step around. The problem has already been solved, so why are you continuing to complain about it?

    Just to be clear, I’m not actually calling for JavaScript to change, I’m just pointing out that people are right to point out this as being a problem. Having said that, if everyone competent uses linters now so that this feature isn’t used in practice anymore, then getting rid of it shouldn’t even break anything, and arguably code which would break is already broken because it uses an operator that no one should be using, so you shouldn’t be using this code anyway.

    TrickDacy,
    @TrickDacy@lemmy.world avatar

    I can sort of get down with what you’re saying, but on the other hand, we all have design constraints, inside and outside of programming, I think this is a very minor one

    bitcrafter,

    Sure, but it is also a very gratuitous and pointless design constraint.

    masterspace, (edited )

    Using linters in a professional setting is more like moving all your actual employees into a different office and letting them use robot avatars in the original office who can never step on that landmine.

    The benefit of this is that millions of other robots continue to depend on the original office being exactly as it is and many of them will never change or update, nor is their any need for them to.

    Breaking backwards compatibility on the web needs much better reasoning than ‘I don’t want to use a linter’.

    riodoro1,

    I think nobody said anything about wanting to fix this. We’re just making fun of how absolutely dumb this is.

    HeckGazer, in Multifactor auth done right

    Wow would you look at that, still none of them cover what SMS is >:( Almost like it’s not a second factor, and fuck every corporation that tries to claim that it is

    jaybone,

    It would be fine if it weren’t for sim swapping.

    But try asking anyone at your bank about a yubikey and watch them stare at you like you have broccoli growing out of your ears.

    JPAKx4,

    SMS is something you have, IE access to your phone. Doesn’t mean it’s the best option, SMS is notorious for being insecure

    HeckGazer,

    The 10,000 support staff with dubious social engineering training at your service provider are not “something you have”. Case in point literally a few weeks ago arstechnica.com/…/verizon-fell-for-fake-search-wa…

    Kethal, (edited )

    This is an article describing someone impersonating an officer and submitting a fake warrant. It’s incredible that Verizon fell for it, but what does it have to do with SMS?

    AVincentInSpace,

    It means that if I want access to something that has been texted to you, I don’t exactly need to be a government in order to get it.

    AVincentInSpace,

    It means that if I want access to something that has been texted to you, I don’t exactly need to be a government in order to get it.

    user1234, in Not mocking cobol devs but yall are severely underpaid for keeping fintech alive

    Cobol is the B-52 of programming languages. Sure there are fancy and expensive new ones or there, but it’ll probably outlast them all.

    hglman,

    That’s a pretty good analogy, but it’s Fortran and B-52. Fortran is very good at what it does to this day. Cobol was never good.

    CanadaPlus,

    Cobol is a Hornet. Still used for production in first-world countries, but basically just because of shitty, slow-moving institutions.

    aodhsishaj,
    pomodoro_longbreak,
    @pomodoro_longbreak@sh.itjust.works avatar

    So move fast and break things, 60s edition.

    PizzaMane, (edited ) in I'll just be a quick 3h

    At work, I am currently dealing with a table that has no primary key, no foreign key, duplicate (almost) serial numbers, booleans stored as strings, and so on. It’s a nightmare of a table.

    Entity framework is acting like I’m on meth for using such a table.

    SaintWacko, (edited )

    How about a date stored as an integer?

    Edit: and I’m not taking about a timestamp

    PizzaMane, (edited )

    No, we have worse. Dates sometimes stored as strings, sometimes as datetimes, and sometimes as integers. There is no consistency, logic, or forethought to the schema.

    It’s rough.

    peyotecosmico,

    I’ve been there and you know what’s worse about it? When you fix it only you or a handful of people notice the astronomical labor you did.

    “It worked before why did you change it? You are just doing busywork”

    PizzaMane,

    Yeah. Luckily the work I am doing is to fix some really bad work that the entire company has been complaining about. So once it’s fixed it will hopefully be a little bit more recognition than that. Plus my boss is pretty level headed.

    But who fucking knows? There is always the likelihood that people will say things along those lines. And it ain’t my job to fight them on that.

    ChickenLadyLovesLife,

    My all-time favorite database table was a table named STATE, meant to store all US states. It had 531 rows.

    Melatonin,

    Confusion … Your medical condition Disorganized

    outcide,
    @outcide@lemmy.world avatar

    Relatable. 🤣

    reverendsteveii,

    well, there’s confusion, paranoia, agitation and so many others…

    psud,

    I have been trying to get people in my area to make their new table generically named, since it’s going to be the only table that can map a date range to a different date range, but I’m on holidays now, and they can’t imagine anything other than their little project needing this table, so it’s going to be named for this one project, and it’s columns will be named for the specific data they’ll hold :(

    dylanTheDeveloper, in Bill is a pro grammer
    @dylanTheDeveloper@lemmy.world avatar

    Bill should have his own special branch, Bills Branch

  • All
  • Subscribed
  • Moderated
  • Favorites
  • programmer_humor@programming.dev
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 18878464 bytes) in /var/www/kbin/kbin/vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php on line 171

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2097152 bytes) in /var/www/kbin/kbin/vendor/symfony/error-handler/Resources/views/logs.html.php on line 37