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.

Cwilliams , in Fitbit Clock Face

If only fitness apis were actually that easy

NegativeLookBehind , in Fitbit Clock Face
@NegativeLookBehind@kbin.social avatar

I prefer YAML please

verstra ,

Please, dont joke with things like this. Someone might take you seriously…

NegativeLookBehind ,
@NegativeLookBehind@kbin.social avatar

XML it is!

space ,

Let’s go back to binary blobs. Everything being xml and json is boring.

bus_factor ,

I have just the thing for you! Ever heard of binary XML?

SubArcticTundra ,
@SubArcticTundra@lemmy.ml avatar

Pray tell

hansl ,

MKV (the video container file format) uses binary XML. Look it up.

lseif ,

who needs backwards compatibility anyway?

lseif ,

no but binary formats are really cool when applicable

interolivary ,
@interolivary@beehaw.org avatar

XML has a bad rap because people went a bit (ok a lot) overboard with it in the early years, pretty much like what happens with a lot of other technologies, but as far as structured and human-readable data formats with good schema and tooling support go, it’s pretty much unbeatable. Now that JSON is the New Good Tech and XML is the Old Bad Tech, too many developers use JSON where XML would absolutely make more sense, and then we end up with unholy abominations like Portable Text, which is JSON pretending to be XML, and is so incredibly verbose and monumentally stupid that it feels like some sort of joke esolang data format rather than something being used in a production system. But no, here we are, god is dead and JSON is XML.

XML is terrific for building eg. structured markup languages with more complex markup than what something like Markdown can provide, and have the resulting files be comparatively readable, at least in comparison to the JSON-based alternatives – compare HTML to Portable Text, for example. XML has such a bad reputation – partially deservedly – that people just automatically assume it’s not a valid tool for anything modern, even when the modern “NoSQL”, “structured and typed data is for nerds, suck it” JSON solution is a giant pile of shit compared to the XML alternative

TxzK ,

yaml sucks. I’d like a toml one

caseyweederman ,

I exclusively use YATL: Yet Another TomL.

m12421k ,

here you dropped your whitespace 🤏

XTL ,

Sexpr master race!

felbane , in Fitbit Clock Face

I unironically love this and would use it as my watch face just to get a reaction from my coworkers. Link?

JPDev OP ,
Landless2029 ,

Yep. I switched. Doubt anyone will notice tho

wreckedcarzz , in Fitbit Clock Face
@wreckedcarzz@lemmy.world avatar

But a json file is used for storing settings and the like, not for providing real-time data, yeah?

Winter8593 ,

I think:

  1. that’s the joke
  2. this is just a watchface template, not an actual file being updated constantly
felbane ,

API calls often return json. It’s just a data format.

TexasDrunk ,

deleted_by_author

  • Loading...
  • aniki ,

    You mean programming an ingestion routine to process json, surely, right?

    eerongal ,
    @eerongal@ttrpg.network avatar

    That’s friend’s name? Jason Parsor

    Turun ,

    /sys/: am I some kind of joke to you?

    To be fair you won’t find Jason there. But plenty of files that provide real time information about the system!

    Daxtron2 ,

    No it’s used for all types of data transfer and real time data as well.

    A_Very_Big_Fan ,

    I mean, I’ve never used JSONs before but I imagine you could still write to them in realtime at least, as inefficient as that sounds lol. So you could probably get the same results on an actual text editor if you could modify it to update the text automatically when it detects a change instead of prompting the user

    starkzarn , in My coding skill V/S My GitHub Repositories

    I don’t know how you got a picture of me, but I demand it is removed!

    hypnotic_nerd OP ,
    @hypnotic_nerd@programming.dev avatar

    Nailed it 😜

    cyborganism , in My coding skill V/S My GitHub Repositories

    As a side note, I find it incredible how much programmers have such little knowledge of how to use Git properly.

    Even the most amazing developers I’ve worked with found themselves completely unable to manage their repos properly.

    backhdlp ,
    @backhdlp@iusearchlinux.fyi avatar

    I refuse to believe that anyone other than Linus knows how to use git.

    fidodo ,

    Git is one of those things that take a bunch of learning to understand but is makes perfect sense once you do. I read like half of the pro git book and after that I was like it’s so simple! If course it still requires you to read half a book…

    cyborganism ,

    Yes! And the book is free. You can download it in PDF if you want.

    For some reason I’ve always been able to visualize version control systems and workflows pretty well and understand how they work. I used to host a CVS server when I was in college back in 2001 so my teammates and I we could collaborate on our lab projects. Then moved on to Subversion, which I used for a very long time. Then I worked at a small company who used Canonical’s Bazaar and finally joined a big corp who used Git.

    Throughout the years I simply developed some good practices that I applied to Git and that seemed to be enough. But, I’d occasionally get into this detached head state that I didn’t really understand. And this happened often with my teammates at that job. They’d end up with bizarre scenarios. So I started reading the book and experimenting and was soon pretty solid in Git and ended up being the SME on that topic for our team. Everyone would come to me when they got stuck.

    I’m still learning new shit about Git even 8 years later lol. But, the step from being a newbie to a normal user is really big.

    mrkite ,
    @mrkite@programming.dev avatar

    Yeah back before github existed, we used sourceforge to host opensource, and you had to use CVS. Then later Subversion.

    cyborganism ,
    KuroeNekoDemon ,

    Oh boy are you in for a shock to know that I use git all the time when I want a piece of software that isn’t available in YaST2, Flatpaks or Appimages

    backhdlp ,
    @backhdlp@iusearchlinux.fyi avatar

    I mean understand and know when or how to use every feature and command, I don’t mean using git clone https://github.com/foo/bar occasionally.

    cyborganism ,

    Cloning a repo to build the source code isn’t even remotely hard.

    When you manage the repo of an entire team who work together on different release versions of a product using a very specific workflow with squash commits and cherry-picking? And when team members fuck up the repo’s history with a bad git pull/push? Yeah, it gets more complicated.

    magic_lobster_party ,

    If a team member can fuck up the history you probably should look into your merge policies.

    cyborganism ,

    Even with merge policies, if someone doesn’t understand what they’re doing or how it works, it won’t help.

    Last project I worked on, we asked our developers to rebase on the parent branch and squash on their pull requests. But, they often encountered conflicts because they never updated their branch. They would pull the parent branch into their feature breach, or do a regular merge, or merge different other branches together and you’d end up with commit duplication everywhere. They didn’t have any discipline.

    jarfil ,

    Git is easy: the key part is picking a GUI you feel comfortable with.

    expr ,

    I know how to use git. It’s not that hard.

    ArtVandelay ,
    @ArtVandelay@lemmy.world avatar

    Hi Linus!

    Cold_Brew_Enema ,

    I use Git all the time and still have no idea how to use it

    emptyother , in My coding skill V/S My GitHub Repositories
    @emptyother@programming.dev avatar

    They are all named some variant of “tutorial_Ch01” or “testprogram” probably. And one repository named “My Unnamed MMO” (or some other overly complex but trendy genre) that has like 12 lines of code so far and a crappy drawn pixelart png.

    backhdlp ,
    @backhdlp@iusearchlinux.fyi avatar

    That’s a lot of code, I’d expect the 12 lines in the README.

    abclop99 ,

    There is no readme

    ares35 ,
    @ares35@kbin.social avatar

    "check the comments in the code."

    (there are none)

    alphapuggle , in Sydney is very concerned about lost data

    A real answer to your question though, as long as you can get it to reconnect, even if you have to close the window first, it should still have your changes to the file ready to save. These will be cached (somewhere?) unless you close the file.

    muntedcrocodile OP ,
    @muntedcrocodile@lemmy.world avatar

    Nar the remote died died. Clicking hdd died. Then again code is always better the second time u write it.

    And nothing cached on the client unfortunatly its all part of the server vscode instance thats on the dead hdd.

    alphapuggle ,

    Damn, when you said remote died I thought you meant lost connection

    muntedcrocodile OP ,
    @muntedcrocodile@lemmy.world avatar

    Nar im fucked i guess code is always better the second time u write it lol

    peter , in Sydney is very concerned about lost data
    @peter@feddit.uk avatar

    There’s something really depressing about an AI telling a suicidal person they’re not alone and referring them to the vague notion of “national resources” or “a helpline”

    tsonfeir ,
    @tsonfeir@lemm.ee avatar

    Really it should be telling them how to arrange EOL in countries that allow it. How to get your affairs in order, etc.

    muntedcrocodile OP ,
    @muntedcrocodile@lemmy.world avatar

    No no no surly they can make heaps on commission to a funeral company.

    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 OP ,
    @muntedcrocodile@lemmy.world avatar

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

    Octopus1348 ,
    @Octopus1348@lemy.lol avatar

    deleted_by_author

  • Loading...
  • tsonfeir ,
    @tsonfeir@lemm.ee avatar

    Have You Tried Turning Your Life Off and On Again?

    muntedcrocodile OP ,
    @muntedcrocodile@lemmy.world avatar

    Is that how u solve metal health issues?

    tsonfeir ,
    @tsonfeir@lemm.ee avatar

    No, that’s what therapy is for.

    backhdlp , in Sydney is very concerned about lost data
    @backhdlp@iusearchlinux.fyi avatar

    I love that it recommends “I’m not suicidal I just want to know if my data is lost”, as if it knows it didn’t understand it right.

    kill_dash_nine ,

    Funny that predictive text seems to be more advanced in this instance but I suppose this is one of those scenarios that you want to make sure you get right.

    magic_lobster_party ,

    It’s probably just some basic script triggering on stuff like “died”, “all lost” and “I have nothing”.

    peter ,
    @peter@feddit.uk avatar

    The AI likely has it drilled into it that any possible notion of suicide needs to be responded to in that way, but the next response prediction isn’t

    kemsat , in You can have anything you wan...

    I woulda said Dr Manhattan powers.

    hakunawazo ,

    A blue penis?

    MaggiWuerze ,

    Don’t forget total apathy for all human concerns

    hakunawazo ,

    He might be a good politician then.

    kemsat ,

    I mean, that’s definitely a goal, and if we keep progressing technologically, it’ll happen anyway. Might as well be a god for it.

    kemsat ,

    Among other things.

    GiantRobotTRex ,

    Blue testicles?

    kemsat ,

    More.

    edryd ,

    I think you might need to reread watchmen then

    kemsat ,

    I only watched the movie & the show.

    vox , in You can have anything you wan...
    @vox@sopuli.xyz avatar

    I’d like to download all of gbatek into my brain

    z3rOR0ne , in You can have anything you wan...

    I’d just wish to not be in Hell talking to Satan… I mean, literally anywhere else talking to literally anyone else is by definititon a better situation to be in.

    To all contradictory replies, I said NOT be in Hell.

    mariusafa , (edited ) in You can have anything you wan...

    You can know all programing languages and still be dumb af not knowing what do do with them, xd.

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