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.

dept , in Correcting > Helping

imo it’s not that correcting feels better than helping but rather it’s easier to correct someone than draft an answer of your own.

suy ,

Sometimes that’s part of the issue (or the whole deal), but sometimes it’s not even that.

Sometimes it’s that someone asked something difficult and elaborate to answer, which has been answered a ton of times, and it’s tedious to answer again and again. But if someone answers with misinformation or even straight FUD, then one needs to feel the urge to correct that to prevent misinformation.

I suffered that with questions in r/QtFramework. Tons of licensing questions, repeated over and over, from people who have not bothered to read a bit about such a well known and popular license as LGPL. Then someone who cares little for the nuance answers something heavy handed, and paints a wrong picture. Then I can’t let the question pass. I need to correct the shitty answer. :-(

repungnant_canary ,

I would say that if someone asks a difficult question it’s often difficult because it’s very general, so you don’t have any specific point to answer that you know will satisfy the person asking.

On the other hand, if someone is writing misinformation then they provide specific statements which still may be difficult to correct but you have those anchor points you can refer to.

So I guess the thing here is that if someone, after asking a question, writes a BS answer they actually refine their question and narrow its scope, thus making it easier to answer.

I usually see broad questions about rather simple things unanswered, but very specific yet difficult questions answered

MagnoliaMayhem , in Show me a better text format for serializing

Json. Your move, Joker.

theterrasque ,

puts the json in the yaml parser

Your move, foolish mortal

derpgon ,

For those uninitiated, every JSON is a valid YAML, since YAML is just a superset of JSON.

FlyingSquid , in Correcting > Helping
@FlyingSquid@lemmy.world avatar

ACTually, they’re still helping you, so it would be better to say correcting = helping.

Sincerely,

Definitely not Gollum’s alt.

Sotuanduso ,

Smeagol is that you?

FlyingSquid ,
@FlyingSquid@lemmy.world avatar

Don’t asks us, precious.

SonnyVabitch ,

Nicely corrected, thanks.

brothershamus , in Correcting > Helping
@brothershamus@kbin.social avatar

It's an older meme, sir, but it checks out. I was just about to upvote it.

Cwilliams , in Correcting > Helping

My coworkers had a hard time picking resturaunts, so I started recommending McDonald’s for work parties, and then everyone else started chiming in with actually good ideas.

Jackinopolis , in Temporary mental block

What helps me is asking Copilot to try doing it. When it spits out garbage; if it hits any of my targets I can tune it from there.

agent_flounder ,
@agent_flounder@lemmy.world avatar

This sounds good but I kind of prefer my approach of giving up.

cupcakezealot ,
@cupcakezealot@lemmy.blahaj.zone avatar

copilot is good but it respects comments too much. i like my code to be like a mystery box.

ptz , in I don't wanna show mine either
@ptz@dubvee.org avatar

I’ll show you mine:

Spoiler[There’s nothing here].

Beanie ,

wow my history is identical :0

what a coincidence

ekky43 ,

I’m pretty sure almost no nerds use chatgpt, as chatgpt kinda takes the nerdiness out of the nerd.

Script kiddy might fit better, looking at stackoverflow from the past half year.

FQQD OP ,

Yeah, you’re kinda right. Nerd doesn’t fit perfectly

tranzystorek_io ,
@tranzystorek_io@beehaw.org avatar
amanaftermidnight , in Temporary mental block

Trying to write tests for the spaghetti mess of a code of your app: 💀💀💀

fl42v , in A box of DevOps

Those devops should switch to nix already 😁

dan , in A lot of YAML
@dan@upvote.au avatar

Friendly reminder if you prefer dealing with JSON - YAML is a superset of JSON, so any valid JSON is also valid YAML.

magic_lobster_party ,

That’s more of a weakness of yaml. There’s so many ways to specify the exact same thing. Not exactly what you need for configuration files maintained by multiple people. It easily becomes an big incoherent mess.

In JSON the default way is the only way. Nice and coherent.

dan ,
@dan@upvote.au avatar

I agree that YAML is painful and it really seems like it’s had a lot of feature creep.

JSON is painful in its own way too, though. There’s a lot of syntax noise from things like braces, quotation marks, etc, so it’s easy to make a mistake. Regular JSON doesn’t allow trailing commas.

YAML tried to solve some of that, and did succeed in some ways, but introduced its own issues.

TOML seems great to me, but maybe it has its own issues. TOML actually has defined data formats for things like dates (both offset and local) and times, which is missing from both JSON and YAML so every app ends up doing it its own way.

XTornado ,

One big thing of JSON I hate is that sometimes is used for config files or similar and it doesn’t supports comments which sucks.

rambaroo ,

JSONC does support comments but it wouldn’t be interoperable with anything expecting pure JSON. But still useful for local configs.

theterrasque ,

Found out the hard way that no, it’s not… there are a few valid json files that most yaml parsers choke on

suy , in Show me a better text format for serializing

Norway.

Ups. Sorry, I meant “NO”.

Artyom , (edited ) in Show me a better text format for serializing

Yaml is a great, human-readible file format. Unless there’s an exclamation point in it, then it is an illegible Eldrich horror.

NewPerspective , in Show me a better text format for serializing

My problem with yaml is if you truncate it at any random spot, there’s a high likelihood it’s still valid yaml. I don’t like the idea that things can continue without even knowing there’s a problem. The single opening and closing curly braces enclosing a json object is all it takes to at least know you didn’t receive the entire message. Toml has the same issue. I’ll stick with json when it makes sense.

pimeys ,

Add a schema to it and you get XML. The ultimate serialization format.

marcos ,

Quite like YAML, XML has too many stuff in it. While a lot of parsers are not standard compliant and safe, if there’s any chance the stuff you include on your code can evolve into a fully featured parser, including it is something to avoid.

There is this language called KDL that looks interesting.

synae , in Show me a better text format for serializing
@synae@lemmy.sdf.org avatar

For serializing? I’d probably just go with json.

For content meant to be written or edited by humans? YAML all day baby

Andy ,
@Andy@programming.dev avatar

Ever tried NestedText? It’s like basic YAML but everything is a string (types are up to the code that ingests it), and you never ever need to escape a character.

synae ,
@synae@lemmy.sdf.org avatar

I’ve got too many consumers that I don’t control which dictate their input formats. And to be quite honest, “types are up to the code that ingests it” sounds like a huge negative to me.

Andy ,
@Andy@programming.dev avatar

Ah, well I love that policy (types being in code, not configs). FWIW I sometimes use it as a hand-edited document, with a small type-specifying file, to generate json/yaml/toml for other programs to load.

Windex007 , in Show me a better text format for serializing

Genuinely curious what features OP is looking for, specifically for serialization as per the post, that has resulted in the conclusion being yaml.

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