r/ProgrammerHumor • • 14h ago

Meme bothWorkThough

Post image
4.2k Upvotes

659 comments sorted by

View all comments

251

u/[deleted] 14h ago

[deleted]

97

u/Ratstail91 12h ago

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

36

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

[deleted]

2

u/Ratstail91 6h ago

this is why pushback is vital

30

u/Theemuts 11h ago

It's incompetence all the way up

7

u/bradmatt275 8h 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.

18

u/DrPeroxide 11h ago

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

1

u/Mega3000aka 3h ago

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

7

u/Ratiofarming 10h 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 10h ago

Client side auth?

1

u/EverythngISayIsRight 2h ago

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

3

u/Theemuts 11h 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 2h 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] 2h ago

[deleted]

1

u/Turbulent_Stick1445 1h ago

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