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.

Orbituary , in GoOn
@Orbituary@lemmy.world avatar

deleted_by_author

  • Loading...
  • takeda ,

    That’s 1/256th of IPv4

    0/0 and ::/0

    Orbituary ,
    @Orbituary@lemmy.world avatar

    Funny. I put 0/0 first then reconsidered, but I don’t know why.

    NigelFrobisher , in Merge then review

    It’s insane to me that gitflow won over TBD and Continuous Integration to the point that this is now considered an extreme position. Not all projects are open source with many remote collaborators.

    savvywolf , in A box of DevOps
    @savvywolf@pawb.social avatar

    You know, at this point I’ve been writing YAML on and off for a while now. You’d think I actually understand the syntax by now, but I don’t.

    ApexHunter ,

    That’s because it is absolutely terrible. It is the first serious/real “language” I have encountered since Cobol where indent level has functional meaning. This is not good company to be in.

    KrokanteBamischijf ,

    The python community would like to have a word with you.

    GTG3000 ,

    Python has stricter rules about what can be cludged together and how.

    Yaml is… Kind of nebulous, which is not a good thing for a data serialization format.

    KrokanteBamischijf ,

    Yeah not a fan of YAML either. I simply don’t see the benefit of getting rid of delimiters and replacing them with indentation. Yes, it does save several bytes, which might be important if you measure space in kilobytes I guess. It does provide cleaner files which may or may not be more readable.

    It does not provide any advantages in parsing complexity. It does not provide any protection against typos.

    I guess the same can be said of python, which forces indentation and therefore readable code formatting. Which is a problem that does not exist since the invention of code formatters and linters.

    I like python for what it does but delimiters are actually useful in terms of readability. They provide an extra hint that the text you’re about to look at conforms to a specific structure.

    GTG3000 ,

    Oh god, parsing complexity. I actually tried writing a YAML parser in my free time before and boy was that not worth the headache. So many little things that complicate parsing and are ignored by majority of users!

    I really like python, but I can agree that it’s no-delimiters style can be… Confusing at times. I definitely had to hunt down bugs that were introduced by wrong indentation. That and the way it handles global/local variables, mostly.

    I do appreciate not having to enclose every key in “”, and being able to copy values - but if we want that kind of logic making our configs, why not just switch to writing configurations in Lua? It certainly has less footguns than YAML and it has the niceties like “I can just write {key = “value”} instead of {“key”: “value”}”.

    KrokanteBamischijf ,

    Honestly that probably goes for any interpreted programming language that supports imports.

    Many Javascript frameworks just put their configuration into -.config.js files in the project root. Which is a pretty elegant solution that does not require custom parsing. Just import the config and go nuts.

    Compiled (and by extension bundled) software obviously requires a different approach, but at that point you should probably consider storing your config in some kind of database.

    Maybe there just isn’t a right answer to the config conundrum if all the general solutions are janky in some way.

    GTG3000 ,

    Well, there’s a few things I personally think are a must for a config format:

    1. It must be human readable and editable, in some way. - in many cases, you may want to go and change something in the config while the application proper isn’t running. That rules out stuff like pickle or binary formats. Although I suppose sqlite and it’s ilk still fulfill it, in a roundabout way.
    2. It should be unambiguous, with one way to do something right. - this one’s a doozie. JSON fulfills it since it’s unambiguous about it’s types, but many interpreted language configs will have options. And then YAML will have “no” turn into “false”.
    3. It should probably have comments. - handily failed by standard JSON implementations. Although to be fair a lot of parsers I’ve used understand comments. Or you can make a comment stripper real easily.
    4. It should have obvious structure. - I’ve dealt with CSV configs before, I do not want to ever again.
    cyborganism , in Yes

    All you need are Bash scripts with chroot and cgroups and some ssh access.

    TWeaK , in Implemented as requested

    HIS HOUSE HAS THE APPARATUS!!

    kromem , in Correcting > Helping

    I learned so much over the years abusing Cunningham’s.

    Could have a presentation for the C-suite for a major company, post some tenuous claim related to what I intended to present on, and have people with PhDs in the subject citing papers correcting me with nuances that would make it into the final presentation.

    It’s one of the key things I miss about Reddit. The scale of Lemmy just doesn’t have the same rate and quality of expertise jumping in to correct random things as a site with 100x the users.

    Kidplayer_666 ,

    Errmmmmh achstually…, lol

    jballs ,
    @jballs@sh.itjust.works avatar

    The major problem with reddit is that you could never really trust the credentials of the person you were talking to. They might have been PhDs or they might have been 13 year olds who just learned to Google. It amazes me how many times I saw a highly upvoted comment posted about a subject that I knew a lot about, but was just so blatantly wrong.

    repungnant_canary ,

    As long as they provide appropriate sources then it doesn’t really matter who they are

    kool_newt ,

    There’s no clear winner between a 13yo who can use a search engine and a crusty old PhD who can’t keep up with changing times.

    CanadaPlus ,

    Especially if you move 0.1% away from that PhD’s particular specialty.

    MotoAsh ,

    I mean, unironically exactly why people think LLMs are smart.

    jettrscga ,

    Yeah voting on content has nothing to do with quality and everything to do with feelings.

    People just vote for their side of any discussion, regardless of validity.

    CanadaPlus ,

    Only if it’s something controversial. If it’s something technical with no political affiliation, people vote for answers that sound right. Thankfully Cunningham’s usually comes to the rescue on time.

    Feyter ,

    To be fair this is not a Reddit thing and it can be found in the fediverse too. I can remember some of such situations where a person just posted wrong stuff but in a very confident way. I was able to prove him wrong later but nobody cared anymore.

    reverendsteveii ,

    cunningham’s law is intended to be used recursively

    yum13241 ,

    I know what you’re trying to do, but that is not the case /hj

    CanadaPlus ,

    Unless the thing falls under non-commercial electronics or computing. The community on here is skewed towards that for obvious reasons.

    glitches_brew ,

    I always kind of felt like those voices began to be drowned out the more and more popular reddit became. You’re correct about Lemmy’s scale, but there is certainly a sweet spot. I’m happy knowing Lemmy hasn’t yet reached its own, and reddit’s is long gone. I’m happier here and it’s likely only going to get better.

    einfach_orangensaft , in Yes

    i feel this

    GammaGames , in GoOn

    0.0.0.0/0

    intensely_human , in Merge then review

    If you’re working in a context where it’s okay to make mistakes so long as they get fixed later, you’re not working on anything important.

    MJBrune ,

    Honestly that’s okay. That’s how most of the games industry works and you know what? I sleep very well knowing that none of my code is actively hurting people. I do likely have some code in some defense simulator from my work on squad but so be it. Overall I make toys. Works of art and as long as the bugs are caught it really doesn’t matter when. As long as it’s before release. Even then you can just work at Bethesda and just never fix them no matter what.

    sirdorius , in Merge then review

    I really wish LinkedIn would add an anonymous cringe emoji. I would use it on like 90% of the content on that site.

    zalgotext ,

    I wouldn’t even do it anonymously if I still had a linked in account

    Pregnenolone ,

    The best thing you can do with that shithole of a site is ignore it as best as possible. Don’t give them any engagement. They’re no better than rage-baiters on Reddit and TikTok

    footfaults , in GoOn
    @footfaults@hexbear.net avatar

    0.0.0.0/0

    ::

    lowleveldata , in Correcting > Helping

    Who post programming questions on Reddit? Are you looking for answers in meme format?

    bassomitron ,

    There are serious programming subs. However, I find that those tend to debate/discuss solutions/approaches moreso than the actual code itself, although that’s not unheard of either. For actual coding questions, I want to say there’s a “learn programming” sub that has those, but they’re pretty strict about just doing people’s homework for them (those posts tend to be pretty obvious).

    tilcica ,

    reddit was/is much more than a meme site

    Kusimulkku ,

    Where would you post them?

    lowleveldata ,

    stack overflow

    Kusimulkku ,

    Oh god

    lowleveldata ,

    There there. I’m not quite god himself yet although I have over 1000 points on stack overflow.

    h_a_r_u_k_i ,
    @h_a_r_u_k_i@programming.dev avatar

    DUPLICATED, CLOSED, etc.

    Joke aside, for an open question I’d prefer posting on Reddit/Lemmy/forums to have an open answer.

    SO is too strict on its policy.

    lowleveldata ,

    for an open question

    That’s clearly not the type of “programming question” mentioned in OP tho

    oce ,
    @oce@jlai.lu avatar

    The validation system is extremely off-putting. I have been working on some specialized tools for years so I could have answered some very precise questions with good confidence. However, the system was always there to detrust me and I was not going to spend hours to go through their hoops for an answer that takes me 10 min to redact. So instead I’ll post it on Reddit or a gist hopping people will be able to discover it.

    lowleveldata ,

    Off-putting it is. Still an important tool for finding actual answers I need for my work.

    oce ,
    @oce@jlai.lu avatar

    Useful for me too. But I wish it was more opened for people who would just want to answer a couple of times a year, community can sort it out.

    lntl ,

    for C and Python: libera.chat

    Zagorath ,
    @Zagorath@aussie.zone avatar

    Honestly, meme communities’ comments could have some of the best in-depth discussions. Memes tend to provide a great launching point for discussions. A sort of prompt that everyone can coalesce around to talk in a serious manner about the subject.

    /r/dndmemes and /r/programmerhumor were two great examples.

    swab148 ,
    @swab148@startrek.website avatar

    And they’re still pretty good on Lemmy!

    Zagorath ,
    @Zagorath@aussie.zone avatar

    Omg I didn’t even realise which community I was in as I made that comment!

    But yeah, this one and !rpgmemes are both great.

    oce ,
    @oce@jlai.lu avatar

    Niche professional subs under 100k members can be very good quality.

    henfredemars , in The app doth protest too much, methinks

    Upon the web, a cipher dance delayed, An SSL error in its code displayed. In cryptic realms, where data ought to flow, A falter in the handshake, whispers woe.

    – ChatGPT

    From one program to another I suppose.

    subignition , in Oh yea, that's the good stuff **huffs glue**
    @subignition@fedia.io avatar

    Definitely looks unsafe to me.

    tilcica , in Correcting > Helping

    i do the same thing. its called Murphy’s law :D

    themeatbridge ,

    I know what you’re doing but I can’t help myself. It’s Cunningham’s law.

    Malix ,
    @Malix@sopuli.xyz avatar

    tbh, I prefer Cole’s Law

    bassomitron ,

    Took me a minute to realize this was a pun… shame on me.

    squaresinger ,

    Cole’s law is best with a burger.

    ObviouslyNotBanana ,
    @ObviouslyNotBanana@lemmy.world avatar

    Cole’s Law: if there’s a salad, I want that one.

    jaybone ,

    Brannigan’s Love is like Brannigan’s cole slaw, wet and chunky.

    swab148 ,
    @swab148@startrek.website avatar

    The spirit is willing but the flesh is spongy and bruised.

    Z3k3 ,

    I’ll be honest you almost for me

    magic_lobster_party ,

    Ahem, it’s called Poe’s law

    Sotuanduso ,

    Are you /srs or /j?

    AngryCommieKender ,

    They’re Super Cereal

    Sotuanduso ,

    Is this Betteridge’s Law?

    FlyingSquid ,
    @FlyingSquid@lemmy.world avatar

    No.

    CJOtheReal ,

    Nah thats called laws of thermodynamics! And they were made up by Elvis together with is homy Obama (the guy without last name) who were known for their contributions to biology

    moody ,

    Are you talking about uncle Obama, well known for his banana?

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