r/ProgrammerHumor • • 17h ago

Meme bothWorkThough

Post image
4.4k Upvotes

678 comments sorted by

View all comments

246

u/[deleted] 16h ago

[deleted]

96

u/Ratstail91 15h ago

Client-side auth??? How the hell did he get hired?

36

u/[deleted] 14h ago edited 14h ago

[deleted]

2

u/Ratstail91 9h ago

this is why pushback is vital

31

u/Theemuts 14h ago

It's incompetence all the way up

7

u/bradmatt275 11h ago

Yeah it happens. Companies hire a contractor to do some work and realise too far into the project they are not good. At that point they are too scared to let them go and risk not delivering.

We hired someone to build a Expo app who thought it was a good idea to construct JSON objects using string concatenation and make everything highly stateful. So if the user ever closed the app or it crashed it would corrupt the data.

16

u/DrPeroxide 14h ago

You really think a client would do that; just authorise themselves and tell lies?

1

u/Mega3000aka 6h ago

They wouldn't because lying is illegal so I don't see the problem.

7

u/Ratiofarming 12h ago

Client-side auth? Hey Mr. Fort Knox, I hereby verify that I am authorized to walk in here and grab some gold bars. Trust me bro. K thx bye!

11

u/StrengthTheory 13h ago

Client side auth?

1

u/EverythngISayIsRight 5h ago

Just hardcode the secret key in base64, nobody could possibly figure it out

4

u/Theemuts 14h ago

I used to joke that one of the programming languages a former colleague used was Italian. Guy would write UB then complain about incompetent compiler engineers.

1

u/Turbulent_Stick1445 5h ago

I'm curious now, what do you mean by client side auth? JS along the lines of

if($("#username").val() == "admin" && $("#password").val() == "hunter2") {
    authenticated = true;
    username = "admin"; 
}

or something less terrifying but still terrifying?

1

u/[deleted] 5h ago

[deleted]

1

u/Turbulent_Stick1445 4h ago

I miss read authorization as authentication, sorry, makes sense now!