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.

DivineDev , in "I want to live forever in AI"

Consciousness and conscience are not the same thing, this naming is horrible

NeatNit ,

This just makes it more realistic

Wxnzxn ,
@Wxnzxn@lemmy.ml avatar

Hey, just be glad I changed it from asdf_test_3, okay?

JasonDJ , in I can't believe people are still using GUMBIES when there are so many better alternatives.

Thanks everyone, I figured it out.

loutr ,
@loutr@sh.itjust.works avatar
AnUnusualRelic ,
@AnUnusualRelic@lemmy.world avatar

Alternatively: “Never mind, I figured it out”

mods_are_assholes ,

Forum responses like that are why two of my four IBM Model M’s don’t work anymore…

EisFrei , in Sleep() at home

Ah yes. The speedup-loop.
thedailywtf.com/articles/The-Speedup-Loop

tryptaminev ,

This is brilliant.

pec , in Merge then review

Stop transfering people from sales to engineering!

HowManyNimons ,

But Elon’s annoying!

rubythulhu , in Think of the children

i meant it when i said -9. fuck that process.

Jamie ,
@Jamie@jamie.moe avatar

Chaotic evil: Send SIGSEGV

alr ,

Is kill -11 even allowed?

Jamie ,
@Jamie@jamie.moe avatar
CanadaPlus ,

I love making the kernel a liar.

Scoopta ,
@Scoopta@programming.dev avatar

You can send any signal manually including SIGSEGV and SIGABRT

MonkderZweite , in D or d come on

You’ve come from Windows and have brought dangerous expectations.

naught ,

MacOS has a case insensitive file system. It causes me untold grief

sysadmin420 ,

Is a 40 year old it guy who love linux, wat

Macos is case insensitive?!

sudo ,

OSX offers both case sensitive and case insensitive filesystems

sysadmin420 ,

Wow, I figured it’d be case sensitive, crazy, gotta make it more windows like I guess.

naught ,

Defaults to insensitive and if you want to change it you have to reformat 🥲

example ,

I’ve been using case insensitive fs on macOS for years and the only software having issues with this is onedrive.

can’t say i’m surprised.

naught , (edited )

I have issues with Docker a lot. Example: Rename a file from “File.js” to “file.js” in a dependency and it’s like something caches the old name so even when I redownload or install that dep it tries the old name and fails to find the file. Might just be me and my tomfoolery

example ,

if you’re renaming from File.js to file.ts, which is also changing suffixes instead of just capitalization, then that couldn’t be explained by case sensitivity, unless it was a typo and you meant File.js to file.js

naught ,

Yep typo thanks

kattfisk ,

This is likely because docker runs Linux in a VM on MacOS right?

We’ve had similar problems with stuff that works on the developers Mac but not the server which is case sensitive. It can be quite insidious if it does not cause an immediate “file not found”-error but say falls back to a default config because the provided one has the wrong casing.

naught ,

Yeah exactly. And I mount the volume to the local directory so they try to sync both ways. It’s a real mess. The solution is currently to: not fuck up the file name casing in the first place. lol

joyjoy ,

The same issue happens with git (on windows). The file system says they’re the same file and they haven’t changed, so you have to manually tell the program the file changed. With git, you’d run git rm --cached && git add . On docker, you could just do a non-cached build via docker build . --no-cache

steakmeout ,

That isn’t true.

naught ,

Which part? I’d love to switch if there’s no reformatting, and if your exception is with the first part, I’d ask for some evidence. All of my mac machines arrived brand new, case insensitive. Granted that’s only 3 so far, but it’s a smattering from 2019 onward. All the literature online points to this being the default too

Honytawk ,

Why would case sensitive path names be considered dangerous?

colonial ,
@colonial@lemmy.world avatar

I don’t know about dangerous, but case-insensitive Unicode comparison is annoying, expensive and probably prone to footguns compared to a simple byte-for-byte equality check.

(And yes, all modern filesystems support Unicode. Linux stores them as arbitrary bytes, Apple’s HFS uses… some special bullshit, and Windows uses UTF-16.)

MenacingPerson ,

Meanwhile fishshell:

lnee ,

so if linux stores file names as arbitrary bytes them could I modify a ext4 fs to include a / in a file name

kattfisk ,

If you did it would likely break something as it’s one of only two characters not allowed in a file name (the other being null).

You can do a lot of funky stuff within the rules though, think about control characters, non-printing characters, newlines, homographs, emojis etc. and go forth and make your file system chaos!

Sh1nyM3t4l4ss , in D or d come on

Use a shell with decent auto-completion. I have not been irritated by this in years.

nogooduser ,

Won’t autocomplete fail if you do “cd d” and then try the autocomplete?

Or is that what you mean by “decent” auto-completion?

bdonvr ,

No, it will probably go to “Documents”, and if you hit tab again it should go to “Downloads”. (Assuming you have the normal default folders)

rasensprenger ,

bash’s autocomplete fails (at least with default settings), but e.g. zsh can figure out what you mean

newIdentity ,

Not with a decent autocomplete. It will look for a folder starting with a small d and if it doesn’t exist it looks at a folder with a large D.

pgp ,

The choice of the letter d was brilliant, that’s for sure. Now I’m imagining a folder with a large D.

newIdentity ,

I don’t get what you mean. It doesn’t matter if you write a uppercase or lowercase d

pgp ,
Skimmer ,

What shell would you recommend? 🤔

Sh1nyM3t4l4ss ,

I use fish which is quite nice OOTB, although if you want a posix compliant shell, zsh with some plugins is also great.

ayaya ,
@ayaya@lemdro.id avatar

If you need to run a set of commands or a script with fish you can just toss them in a file and run bash file.sh. I have been daily driving fish for years and I don’t even have think about it.

stevehobbes ,
yum13241 ,

Is fucking irrelevant. Just use your package manager.

stevehobbes ,

Get some anger management help.

yum13241 ,

Maybe stop trying to be a smartass.

Swedneck ,
@Swedneck@discuss.tchncs.de avatar

I personally like xonsh despite the minor amount of wonkiness it has, it’s so nice to have python available directly in your shell, it takes the “i don’t care about the quality of my code i just want this shit to work with minimal effort”-ness of bash and turns it up to 13.

wviana ,

Zsh.

Omg looks like people think omz is a shell.

Zaphod ,

Oh my zsh?

wviana ,

No. Zsh. It’s pretty easy to have a nice auto compl. No need for omz. After knowing poweline10k I just use it and syntax highlight plugin, manually installed. There is no need to add entire omz.

lightnsfw ,

I just don’t use caps when naming directories

cerement , in The team that pushed yesterday's Crowdstrike update has been identified.
@cerement@slrpnk.net avatar
lordnikon ,

dude

ZeroCool OP ,

Nice username.

radicalautonomy ,
@radicalautonomy@lemmy.world avatar

I thought you was black, man?

darklamer , in blahaj
@darklamer@lemmy.dbzer0.com avatar

We have Unicode these days: blåhaj

ArmokGoB ,

How do I type that on a desktop without a numpad and without putting “å” into my clipboard?

Pissmidget ,
ChaoticNeutralCzech , (edited )

Hold the Combine key (Linux-only, user-configurable, usually RCtrl) and press a twice. Or Combine+a+*.

Or get a laptop with a numpad. I am so used to Alt+num that I’d donate to someone to implement it in the Linux libinput, and I’m not alone.

felbane ,

You are not alone. I am here with you.

thehatfox ,
@thehatfox@lemmy.world avatar

Depends on your computing platform.

I see another reply has already covered Linux.

On a Mac, press and hold a character key and a list of accent characters will appear. There are also dead key combinations using the option key to enter special characters directly.

andioop ,

If you’re like me and wondered what a dead key is…

A dead key is a special kind of modifier key on a mechanical typewriter, or computer keyboard, that is typically used to attach a specific diacritic to a base letter.[1] The dead key does not generate a (complete) character by itself, but modifies the character generated by the key struck immediately after.

Wikipedia

bob_lemon ,

On Windows, you can open the emoji picker with Win+. or Win+, (depending on locale iirc). Then just switch to the symbols tab by clicking the omega symbol and chose å

Alternatively, you can install PowerToys, which includes a quick accentuator tool.

tiredofsametab ,

Failing that win+r and type charmap. You can browse symbols there.

rmuk ,

charmap.exe? Holy shit. Windows 95 called, but I didn’t have a 33.6k modem ready to answer.

tiredofsametab ,

I mostly just had the alt+whatever codes memorized when I was typing French or German, but I didn't always have a numpad when I was using laptops away from home. I just ended up using charmap and never realized newer windows had any replacement (although I'm on mac for work and also use linux for both work and some home stuff now as well so not spending as much time in Windows).

ArmokGoB ,

Alternatively, you can install PowerToys, which includes a quick accentuator tool.

₽øɢĝê̌ℝ§

sparkle ,

US international layout, or make a custom layout (KbdEdit is multiplatform but there’s free Linux programs to do it too)

TheRedSpade ,

Compose key

30p87 ,

It’s annoying to type in the terminal tho.

darklamer ,
@darklamer@lemmy.dbzer0.com avatar

No, it isn’t. Why would it be?

30p87 , (edited )

Because you would need to know the code for å in all kb layouts, on all OS’s, even in a bare terminal with no way to just open the emoji picker, with or without special keys and no clipboard. Of course, tab completion or globs may help you, but not in all cases.

Try to select blåhaj.txt in a dir with blåhaj.txt and blahaj.txt present. Easy, ls blhaj.txt | grep -i blahaj.txt. Now with blåhaj.txt and bløhaj.txt. Not as easy anymore, but doable with tail -n1 or head -n1. Now do it consistently in a script. So you again need to single out the right string, or single char, and >> it into the script so you have the special char. Then you have a component that does not like certain special chars, so you need to escape it. All because one decided to use special chars as a file name/identifier. Using [a-zA-Z0-9-_.:;,] would be so easy.

darklamer ,
@darklamer@lemmy.dbzer0.com avatar

Because you would need to know the code for å in all kb layouts, on all OS’s,

WTF!? Why would you ever need to know that!?

30p87 ,

So, you create a file with the name containing å. Then you send it to another person. They want to handle it via the command line. Because it’s more efficient. So that person needs to know said information.

darklamer ,
@darklamer@lemmy.dbzer0.com avatar

Most people never type a full file name on the command line, they normally just use file name completion.

And if they happen to have a lot of files that are only distinguished by some single character, what would be so difficult about typing that one character then?

30p87 ,

The fact they couldn’t type that one character, on the command line, without those special chars.

darklamer ,
@darklamer@lemmy.dbzer0.com avatar

I still don’t get what would be so difficult about typing one such character if ever needed.

iAvicenna , in What a time to be alive
@iAvicenna@lemmy.world avatar

I think tech CEOs can empathise with chatgpt on how uninformed its opinions are and how well it can it bullshit

TachyonTele ,

Great. It’s going to run for president now.

iAvicenna ,
@iAvicenna@lemmy.world avatar

about time: chatgpt the president that we don’t need but that we deserve

explodicle ,

Even a bot trained on Redditors would be better than either major candidate.

TachyonTele ,

I like the sentiment, but that’s not really true. Biden is a life long politician, which means he knows how things work and who to talk to.

Trump is an angry spiteful asshole that just wants to hear his own voice.

iAvicenna ,
@iAvicenna@lemmy.world avatar

so is Trump better than chatgpt or not still cant decide

TachyonTele ,

I don’t have an answer to that either lol

SatouKazuma ,

I’d say no, because the difference to me lies in Trump being actively malicious, and ChatGPT essentially being random, as far as the lay public is concerned.

ChickenLadyLovesLife ,

Wait, chatgpt was convicted of multiple felonies?

iAvicenna ,
@iAvicenna@lemmy.world avatar

If it starts giving advice like google AI it soon will be

AcesFullOfKings , in The Perfect Solution

deleted_by_author

  • Loading...
  • rimu ,
    @rimu@piefed.social avatar

    gpt3.5 is faster though. You can tell they really thought about performance while writing this code because they used 3.5 instead. /s

    fartsparkles ,

    3.5e was so much better than 4e tho /d20

    masterairmagic , in Golang be like

    Go is not a programming language. It’s an angry rant of a bored Google engineer.

    AeonFelis ,

    IDK, Brainfuck is still classified as a programming language and Go is not that far behind it.

    GluWu , in Start ups when that VC funding kicks in

    I wish I hadn’t needed to learn these lessons about start ups by working in start ups. I just want to be a mailman or something at this point.

    0110010001100010 ,
    @0110010001100010@lemmy.world avatar

    I worked at a tree farm in my teens and honestly if I could still do that making what I make now I would be all over that. Always outside, in great shape, got to run heavy machinery, it was great.

    CodingCarpenter ,

    That’s crazy to me because I had the exact opposite experience. I went in hoping for a certain amount, and they offered me knowing full well what I was hoping for, 20,000 more. Plus all the other benefits like video games and dogs at work. In fact I don’t think I’ve ever had a bad experience with startups except that your job is essentially temporary cuz they will either close or sell

    Stovetop ,

    If they offered you 20,000 more than what you expected, might be you are underselling your actual worth and could have negotiated for more.

    TropicalDingdong ,

    That or dumb money is just dumb, and if the cost of money is free, you can just guess at things that might work with thousands of monkeys hitting typewriters.

    ICastFist ,
    @ICastFist@programming.dev avatar

    Or they knew they weren’t going to last more than 1 year, so why not spend all that tasty VC money?

    sukhmel ,

    Would be nice if true, but I guess those “extra” money would most commonly stay in tops’ pockets

    Graphy , (edited )

    Hah I was about to say that only bad part of startups that I’ve had was that you weren’t sure if you’d have a job six months from now. I probably just got lucky and jumped on board during the “throw cash at everything phase”

    Alexstarfire ,
    Cypher , in Demand ad companies take security seriously first and maybe we'll talk.

    Not just for security, selling snake oil is also grounds for ad blocking.

    grue ,

    I don’t need “grounds” for ad blocking, and neither do you. My property rights say that I’m entitled to modify the computation my system is doing as I see fit.

    qwertyqwertyqwerty ,

    We shoud have a right to not have commercials shoved down our eye and ear holes. If they could, they would force it down our throats and noses too.

    ptz OP ,
    @ptz@dubvee.org avatar

    If they could, they would force it down our throats and noses too.

    Throats are still safe (for now?), but hate to break it to you about noses: dennisfoodservice.com/the-smells-that-make-custom…

    (Warning: has an autoplaying video at the very bottom).

    qwertyqwertyqwerty ,

    I swear I will just stick with paperback books for all entertainment if they continue to further infect my current forms of entertainment. Lets seem them try to insert an unskippable ad into a paperback book.

    ptz OP , (edited )
    @ptz@dubvee.org avatar

    “Please watch the ad on the included smart book accessory device to dispense the solvent that will un-glue the next 10 pages”

    Relevant Simpsons Joke:

    https://y.yarn.co/8eb0bc34-3a09-464e-bae5-d95fa02ee5cc_text.gif

    qwertyqwertyqwerty ,

    You have discovered the thing that may finally radicalize me.

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

    We already have ad books. They’re called magazines, just give it a couple more years and regular books will be filled with ads too. I’ve already encountered some regular books that have an insert talking about another book from the same creator. Sure it doesn’t seem bad now but soon it’ll be an insert about a friend of the creator, then about the same company that did this book, then in similar genres, then more inserts about products that might make your book reading experience better, etc etc.

    qwertyqwertyqwerty ,

    I’ve already encountered some regular books that have an insert talking about another book from the same creator.

    Oh, those? We call those reading snacks. You just rip them out and dip them in a blend of extra virgin olive oil and nicely reduced balsamic vinaigrette. Perfect pairing with a nice drama or thriller.

    PriorityMotif ,
    @PriorityMotif@lemmy.world avatar

    You probably bought that book based on a paid review.

    Riven ,
    @Riven@lemmy.dbzer0.com avatar

    Jokes on you, I pirate my books. No idea if the book youtubers I watched were paid but their sensibilities are similar to mine and so far they haven’t lead me astray. I like supporting my book writers directly instead of giving money to corpos whenever possible.

    Zorsith ,
    @Zorsith@lemmy.blahaj.zone avatar

    Any book that gets a movie or TV show seems to replace the original cover with an ad for the movie/TV show

    Riven ,
    @Riven@lemmy.dbzer0.com avatar

    Yea it’s unfortunate.

    Reminds me, the box a pet rock came in that my brother gave me this last Christmas has the frigging minions logo on it. It says ‘as seen on [minions eye logo]’.

    smeg ,

    That’s really an advert for the book appealing to people who only know the TV/film though

    ManniSturgis ,

    I will stick to emulating 30 year old video game consoles and fan reimplementations like OpenMW and OpenRCT2. I am driven by pure spite. They will never get me!

    MajorHavoc ,

    Yeah. It’s wild to me that the idiots making these enshitification decisions don’t understand this.

    I could retreat into my existing installed Steam library for decades, to avoid their crap, if necessary.

    And my retro game catalog dwarfs my modern game catalog, since I’ve been collecting those games longer and some of them are devilishly hard to master.

    harmsy ,

    some of them are devilishly hard to master.

    The Magmoor Bomb Jump energy tank in the original version of Metroid Prime wants to say hello.

    smeg ,

    It’s wild to me that the idiots making these enshitification decisions don’t understand this.

    They understand perfectly. Enough people don’t share our attitude and so this kind of behaviour is still profitable for them!

    grue ,

    Property rights are those rights, and we already have them. The issue is that the copyright cartel is trying to take them away from us. They are colonizing our devices with DRM + the DMCA anti-circumvention clause in an attempt to reduce us to techno-serfdom.

    Ad-blocking, Free Software, Right to Repair (also a right we already have, not a new one we need), “you will own nothing and be happy” propaganda , etc. are all just different aspects of the same issue: the corporate war against property rights.

    Feathercrown ,

    Perfume salesmen have entered the chat

    melpomenesclevage ,

    I’m pretty sure the corporate property rights say you’re not allowed tho.

    so maybe laws are fucking stupid and you do it because if basic human dignity or something?

    grue ,

    To be clear, property rights don’t come from laws; they are natural rights. “Property” as a concept stems from the fact that when Caveman Oog gets himself a neat tool-shaped rock and is holding it in his hand, nobody else can use it because he’s the one who has it, and the only way they could use it is for him to not have it anymore. He controls it and its use is exclusive to him. The rock is his property. The law doesn’t create that concept; it only codifies it so that the rock can remain Oog’s when he sets it down, instead of him having to guard it all day.

    “Corporate” “property” “rights” are a whole different thing:

    1. Contrary to the Dred Scott-level bullshit the SCOTUS excreted in Citizens United, corporations are not people and don’t even have an inherent right to , let alone any other rights. A person (i.e. a sole proprietor) has rights. People associating with each other (i.e. a full-liability general partnership) have rights. A group granted the privileges of limited liability and taxation as a separate entity via incorporation exists at the pleasure of the State, and the State has every right to impose conditions on that existence in exchange for granting the privilege.
    2. Copyright is not “property.” A copyrighted work is an expression of an idea, and ideas are as near to opposite of property as it is possible to be. Not only does an idea stand in stark contrast to Oog’s rock in that it can be freely shared to the other cavemen without Oog losing possession of it, the value of it comes from the act of sharing. A creative work that never leaves the creator’s head is worthless, while a work shared with the whole world is incredibly valuable. (Don’t take my word for it, though: Thomas Jefferson – the guy who wrote or helped write the Copyright Clause, BTW – made a similar point, more eloquently explained.)
    3. Copyright isn’t a “right” either. It, like incorporation, is a privilege granted by the State (or more specifically, Congress, but Federalism is beside the point). It does not exist because the creator of a work is somehow entitled to it, or even because the People wish to reward creators for their work. Copyright exists for the sole and express purpose “to promote the progress of science and the useful arts” – in other words, to enrich the Public Domain. The mechanism of copyright, granting a temporary monopoly in order to encourage the creation of more works than would otherwise exist, is nothing more than a means to an end. The goal of copyright is for it to expire!

    Anyway, point is, I’m kinda already making that distinction between basic human dignity (natural rights) and artificial laws (copyright). The situation we find ourselves in today, where actual property rights of actual people are being subordinated to Intellectual “rights” of imaginary “people” is some pants-on-head stupid, ass-backwards, Bizarro-world bullshit!

    melpomenesclevage ,

    ‘natural rights’ okay so why are they right(s)?

    Cypher ,

    I honestly can’t tell if this is treading into sovcit territory or not.

    grue ,

    I mean, if this makes me a sovcit then it means Thomas Jefferson was one too, so at least I’m in good company.

    ¯_(ツ)_/¯

    explodicle ,

    It’s not. Protecting natural rights is the justification for a state in the first place.

    fubarx , in He revealed the secrets !

    Wait till they find out what software ‘architects’ really do.

    maryjayjay ,

    They do the same thing building architects do. They draw pretty pictures of the end product that may of may not be structurally sound, then rely on engineers to build it and make sure it doesn’t collapse.

    marcos ,

    Wait, did you find out? Can you tell us?

    fubarx ,

    Sorry, I don’t have enough certifications to answer that question.

    Speculater ,
    @Speculater@lemmy.world avatar

    I tried to get a software architect to explain their job to me once, it was like a “lean startup”, a libertarian, and a psychic had written an elevator pitch together.

    rimjob_rainer ,

    A good software engineer is also an architect. You don’t need dedicated architects if you have good developers.

    But on the other hand there are much more questionable and unnecessary jobs like product managers or managers of managers.

    xmunk ,

    I disagree with not needing dedicated architects at least once you reach a certain size. If there are 50 plus developers working on a dozen or more projects there’s a large communication cost to stay on top of everything.

    fruitycoder ,

    I always saw architects roles in modern development being the person trying to find synergies between different teams andcoordinateing them working with each other.

    Like if some team makes a sick project for managing streams of data streams the architect should be promoting it for other teams to leverage.

    xmunk ,

    That’s one role, as a software architect I also often served as the sunk cost fallacy bad news delivery system. It’s a good idea to keep some eyes from outside your team on your project just to do the occasional sensibility check.

    There is also a large responsibility to make sure different teams are well coordinated and not building the system in directly opposing directions. It really fucking sucks to have your work, as a developer, invalidated by someone else’s work suddenly without any warning.

    Aceticon ,

    The good ones: design and adjust software development processes, standards for cross-project functionality and reusability and in general try and improve at a high level the process of making, maintaining and improving software in a company.

    The bad ones: junior/mid-level software design with a thick layer of bullshit on top to spin it as advanced stuff.

    If you want to see bad software architecture, just look at most of Google’s frameworks and libraries.

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