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.

cRazi_man , in I hate it

What about ))-((

xeekei ,

The reverse would be ((-))

Micromot ,

Wouldn’t it be ()-)( as a palindrome?

lugal ,

That’s a palindrome because the reverse is the same. The comment above you shows that the one above isn’t a palindrome since the reverse is different, not showing a palindrome

Micromot ,

Yeah I realized

driving_crooner , in Detailed Error Messages
@driving_crooner@lemmy.eco.br avatar

Is that python? If it’s, thank you, finally learned how to format text in a way that can be read on the script and in the execution.

Korne127 ,
@Korne127@lemmy.world avatar

It isn’t, there are curly braces. It’s TypeScript.

driving_crooner ,
@driving_crooner@lemmy.eco.br avatar

Python also have curly bracers, om dictionaries.

Korne127 ,
@Korne127@lemmy.world avatar

Yes, but not for indentation (which is obviously what I meant)

ReveredOxygen ,
@ReveredOxygen@sh.itjust.works avatar

No, but you can do the same in python

driving_crooner ,
@driving_crooner@lemmy.eco.br avatar

I was thinking on trying it. Need to see how it works with f formatting.

alfenstein ,

Looks like TypeScript to me

zaphod ,

As the other comments have already said it’s not Python. Not sure what you mean with text formatting, do you mean that it’s multiple strings that are concatenated using +? You don’t need the + in Python, you can do


<span style="color:#323232;">some_function(
</span><span style="color:#323232;">    </span><span style="color:#183691;">"part one of really long string"
</span><span style="color:#323232;">    </span><span style="color:#183691;">" part two of really long string"
</span><span style="color:#323232;">)
</span>

Which is identical to


<span style="color:#323232;">some_function(</span><span style="color:#183691;">"part one of really long string part two of really long string"</span><span style="color:#323232;">)
</span>
xmunk , in I hate it

This is an unacceptable glitch in the universe.

It’s time to reboot it with a patch.

Lemminary , in You want some water?

Why, you want my <p> inside your <div>? We can make that happen 😏

Endmaker OP ,
Lemminary ,
bruhduh ,
@bruhduh@lemmy.world avatar
andioop ,

What show is this?

Endmaker OP ,

Gundam: The Witch from Mercury

CeeBee_Eh , in Detailed Error Messages

What the user was doing is that they don’t trust that the system truly deleted the account, and they worry it was just deactivated (while claiming it was “deleted”). So they tried to do a password recovery which often reactivates a falsely “deleted” account.

I’ve done this before and had to message the company and have them confirm the account is entirely deleted.

x00z ,
@x00z@lemmy.world avatar

Many services have a grace period. Mostly it’s 30-90 days where they keep your data, just in case somebody else decided to delete your account or you were drunk or something. But it could also be for legal reasons, like websites where you can post stuff for everybody to see, in case you post something highly illegal and the authorities need to find you. Another example is where a webshop is required to keep a copy of your data for their bookkeeping.

CeeBee_Eh ,

But it could also be for legal reasons, like websites where you can post stuff for everybody to see, in case you post something highly illegal and the authorities need to find you. Another example is where a webshop is required to keep a copy of your data for their bookkeeping.

None of these require your account to “exist”. There could simply be an acknowledgement stating those reasons with “after X days the data will be deleted, and xyz will be archived for legal reasons”.

Mostly it’s 30-90 days where they keep your data, just in case somebody else decided to delete your account or you were drunk or something

This is the only valid reason. But even then this could be stated so that the user is fully aware. Then an email one week and another one day before deletion as a reminder, and a final confirmation after the fact. I’ve used services before that do this. It’s done well and appreciated.

This pseudo-deletion shadow account stuff is annoying.

x00z ,
@x00z@lemmy.world avatar

None of these require your account to “exist”.

It’s actually much more technical than theoretical. When you delete an account on a website, that is being kept for a little while longer, it merely has field in the database that gets updated. (often with a removal date as well for the automatic removal after x amount of days). This field needs to be checked everywhere the account is used. And account recovery is mostly a part where this is forgotten, or possibly not even wanted.

And to claim this as fact, I just realized that the website I work on allows recovering of banned accounts. (Removed accounts are completely removed though because we don’t need to retain any data).

This is the only valid reason. But even then this could be stated so that the user is fully aware.

Keeping the records for a little while longer is actually implied to be known. It’s in their privacy policy, and is legal.

Whether or not services should make this easier to know exactly what is happening I definitely agree. Personally I think post history without user identifiable data should also be removed, but this is even less common practice (and is why tools exist to delete all your reddit posts for example).

dan ,
@dan@upvote.au avatar

This field needs to be checked everywhere the account is used.

Usually something like this would be enforced once in a centralized location (in the data layer / domain model), rather than at every call site.

for the automatic removal after x amount of days

This gets tricky because in many jurisdictions, you need to ensure that you don’t just delete the user, but also any data associated with the user (data they created, data collected about them, data provided by third-parties, etc). The fan-out logic can get pretty complex :)

x00z ,
@x00z@lemmy.world avatar

Usually something like this would be enforced once in a centralized location (in the data layer / domain model), rather than at every call site.

True. Although not every endpoint is the same, nor is every website or service.

This gets tricky because in many jurisdictions, you need to ensure that you don’t just delete the user, but also any data associated with the user

GDPR specifically mentions user identifiable data. I don’t know about others.

tourist , in Detailed Error Messages
@tourist@lemmy.world avatar

Trying this every time I need to delete an account

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

Immediately sue them for DSGVO GDPR

dan ,
@dan@upvote.au avatar

(DSGVO is the German version of GDPR)

Appoxo ,
@Appoxo@lemmy.dbzer0.com avatar

Knew something felt of

FuglyDuck , in Detailed Error Messages
@FuglyDuck@lemmy.world avatar

PEBKAC.

definitely a case of the PEBKAC

bratorange , (edited ) in Detailed Error Messages

Day 492 of predicting edge cases…

jaybone ,

You mean odor?

bratorange ,

Sorry typo

cupcakezealot , in Detailed Error Messages
@cupcakezealot@lemmy.blahaj.zone avatar

whats wild is that all the returned values were the same this is only for a log value that probably zero people check

wizardbeard ,

I believe rule of thumb is to track/log at least one level deeper than what you show to the end user, to ease with troubleshooting and debugging.

Beyond that, logs are only useless until they aren’t, and then if you don’t have them you’re in for a universe of pain.

tedvdb , in Detailed Error Messages
@tedvdb@feddit.nl avatar

Now the dev doesn’t need to comment this part of the code, saves him time.

fox2263 , in Detailed Error Messages

How’d they know it was a he

thanks_shakey_snake ,

Maybe there’s a specific person who keeps doing this and they wrote this error specifically for him.

fox2263 ,

Come on Dave sort yourself out.

You know this is a porn site then! 😂

jaybone ,

You bitwise OR into the higher end bits the user id, in which you have already encoded the user’s gender. (For which you have a util method to extract. )

thanks_shakey_snake ,

What the hell kind of second-rate DBMS doesn’t encode gender into its primary keys SMDH!!

Miaou ,

In case you’re serious, not everyone is a native speaker.

Affidavit ,

Don’t be silly; it’s obvious that there are different error messages for each gender expression. Error logs need to be detailed and specific in order to be useful.

acetanilide ,

They were talking about me. They got my pronouns wrong. It’s ok though, because they will have many more opportunities to get it right.

communism ,
@communism@lemmy.ml avatar

I like seeing instances where people have used “she” as the generic pronoun.

ByteOnBikes , in Detailed Error Messages

At my job, we have an error code that is similar to this. On the frontend, it’s just like error 123.

But in our internal error logs, it’s because the user submitted their credit card, didnt fully confirm, press back, removed all the items out of their cart, removed their credit card, then found their way back to the submit button through the browser history and attempted to submit without a card or a cart. Nothing would submit and no error was shown, but it was UI error.

It’s super convoluted. And we absolutely wanted to shoot the tester who gave us this use case.

Jerkface ,

Better the tester than a user.

chevy9294 ,

Whats the difference?

RecluseRamble ,

Different mindset. A user doesn’t want to find bugs but get shit done.

jawa21 ,
@jawa21@lemmy.sdf.org avatar

I’d argue that is maybe 95% of the time. People get bored.

slampisko ,

Being prepared for the eventuality, knowing the consequences and deciding what to do about it before it happens for a user.

normalexit ,

Brand reputation?

FreshLight ,

As of now, I consider you an enemy

danc4498 ,

Users are dumb, testers are assholes.

jaybone ,

Sometimes testers are also dumb. Most times.

filcuk ,

Are you from microsoft?

RecluseRamble , (edited )

And we absolutely wanted to shoot the tester who gave us this use case.

Why? Because he tested well and broke the software? A user changing their mind during a guided activity absolutely is a valid use case.

NeatNit ,

I think they meant shoot in like a friendly way. You know, happiness bullets!

KomfortablesKissen ,

Oh, THAT’s what “friendly fire” means!

tetris11 ,
@tetris11@lemmy.ml avatar

hey that tickles!

abbadon420 ,

Like how I always say to my friends, “Look at me again and I will fucking murder you and rape your family dog”… it’s just in good fun.

CatLikeLemming ,
@CatLikeLemming@lemmy.blahaj.zone avatar

It’s likely a difference of emotion compared to logic. Emotionally they’d think “Damn it, now we need to check for such a weird specific edge-case, this is so annoying” while logically knowing it’s better the tester caught it.

takeda ,

If that broke the software it sounds like you have a very good tester.

abbadon420 ,

This makes want to become a tester. It scratches my evil itch just the way I like it.

FuglyDuck ,
@FuglyDuck@lemmy.world avatar

there’s three qualifications to being a testor:

Finding stupid ways to break shit, Being able to accurately explain how you broke shit, and being likeable enough that breaking their shit doesn’t make the devs angry.

ICastFist ,
@ICastFist@programming.dev avatar

Being able to accurately explain how you broke shit

This is the most important part. Or look at systems like SpiffingBrit and Josh (Let’s Game it Out) look at games

cactusupyourbutt ,

Josh does mostly stress testing though

ICastFist ,
@ICastFist@programming.dev avatar

That too, but also lots of glitching through walls and, most importantly, “doing everything as wrong as possible”

WolfLink ,

What about the test case where I’m using the browser’s dev tools to re-send http requests in random orders?

baatliwala ,

Give that tester a raise bro

jaybone ,

Don’t shoot the tester shoot whoever wrote the code (or the framework / library) that got you into this situation in the first place.

ClassifiedPancake , in Detailed Error Messages

I might be the one hitting that link just to see what happens.

Omgarm ,

“Let’s see how good their testers are.”

CEbbinghaus , in Detailed Error Messages
@CEbbinghaus@lemmy.world avatar

Hoh man what a journey. And I love that this incredibly complex situation is the only reason that status would return. What a fun time debugging that would have been

Omgarm ,

The type of error where you have to give up trying to understand the user.

zaphod ,

It’s quite simple actually: The user wanted to delete their account, but forgot their password so they requested a password reset. Before the password reset email was delivered, the user remembered their password and deleted their account. The password reset email is finally delivered and apparently some email clients open all the links in the background for whatever reason, so it wasn’t actually the user who clicked the password reset link.

ClassifiedPancake ,

apparently some email clients open all the links in the background for whatever reason

What? Really??

Malix ,
@Malix@sopuli.xyz avatar

Yep. Apparently outlook does this and afaik because some kind of link sniffing/scam detection/whatever, but it does it by changing the first characters of each query argument around.

We spent amazingly long time figuring that one out. “Who the hell has gotten Microsoft service querying our app with malformed query args and why”

tedvdb ,
@tedvdb@feddit.nl avatar

Yes, e.g. outlook replaces links in mails so they can scan the site first. Also some virusscanners offer nail protection, checking the site that’s linked to first, before allowing the mail to end up in the user’s mail client.

Thats why you never take actions on a GET request, but require a form with button for the user to do a POST.

TrumpetX ,

It can be worse, we had to add a captcha for those link scanners cause they’d submit the forms and invalidate tokens too:(

jaybone ,

Wow. That sounds terrible. Good to know.

dan ,
@dan@upvote.au avatar

e.g. outlook replaces links in mails so they can scan the site first. Also some virusscanners offer nail protection, checking the site that’s linked to first, before allowing the mail to end up in the user’s mail client.

Proofpoint does this too, but AFAIK they all just change the link rather than go to it. The link is checked when the user actually clicks on it. Makes sense to do it on-demand because the contents of the link can change between when the email is received and when the user actually clicks it.

lazynooblet ,
@lazynooblet@lazysoci.al avatar

Not really the only reason. It would be better to just return “token invalid”.

It could occur by someone messing with the URL from the reset password email, like accidently adding an extra character before pressing enter

Or a poor email client that wraps the URL and doesn’t send the complete one when clicked.

Or someone attempting to find a weakness in the reset password system and sending junk as the token.

zurohki ,

Or an email client where you double click the link text to select it and press copy, and somehow this puts the link plus a trailing space in the clipboard to be pasted into a browser.

jaybone ,

Yeah that error status code seems like an odd way to reflect such a scenario.

Wirlocke , in How would your codebase (personal projects, work projects etc.) look as a burger?

The most immaculate well researched pickles ever seen.

But I’m getting bored, I should learn how to write, or maybe draw, or maybe dance.

No I got it, I’ll shift my focus to an obscure Github program I’m using to test a weird thought I had!

I’ll finish this burger later…

souperk ,
@souperk@reddthat.com avatar

Is that adhd? That’s definitely adhd!!!

Wirlocke ,

Ring ding ding, winner!

dosuser123456 ,
@dosuser123456@lemmy.sdf.org avatar

i have that too :/

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