Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Perhaps you should show this thread to your HR department and they'll get how fucking stupid your code owner is.
-
I’m guessing their interaction with HR went something like this:
“HR! My coworker keeps asking me to explain my code to them. Why do you hire people who can’t read code? I shouldn’t have to explain myself!” -
@ScriptCoded It won't work! she just yelled at me and shut me off every time show her this.
-
MM8312243yNobody writes code like this. Dude is either trying to look clever (ironic if true, because any half-decent letter-user can see how this is an incredibly stupid way to do anything) or he's trying to ring-fence the codebase because he doesn't want anyone else working on it for whatever reason.
Stay polite, ask him to refer you and HR to the style guide that encourages this...then ask why, if there isn't one, it helps the company to adopt a practice that no-one else uses. -
kiki352493yWrite the code everyone can understand, and you'll have a job for a year. Write the code no one can understand, and you'll have a job for the entire life.
-
@sbiewald Is there something here that could be exploited? I have no idea about this syntax.
-
NarkoCat2843yThat's the actual code? WTF. I thought OP removed variable names for devrant only.
Fuck the guy. -
NarkoCat2843yBTW that's some legacy PHP going on there are no type hints for props or the return type, no formatting whatsoever, fuck knows what's going on with the variable names, I want to puke.
-
@annapurna I asked him whether this is obfuscated , he said no which minutes later I got a phone call from the HR to tell me to "GET BACK TO WORK "
This happen everytime -
@johnmelodyme not sure what you should be worried about more. The stupidity of the so called senior dev, or the fact that HR defend him (and by doing so, are empowering him to keep writing shit code)?
-
@TheCommoner282 the first one. I am just reviewing code and I need some functions from the class, and this is what I got.
-
ajinxs5083yThis looks like something I used to get in 5th grade. Fill in the blanks with the correct word. Never knew this happened in coding too lol
-
I’m pretty sure that nobody is dumb enough to think that this kind of coding is a good idea.
So, it must be intentional. He is deliberately trying to obfuscate the code.
This is beyond "not conforming to guidelines". It is sabotaging the company.
I’d accuse him of exactly that. Maybe that will get more attention and ring some bells in the HR department.
(Edit to be more friendly for the case that you want to show this rant to HR) -
* Maliciously obfuscated code
* Social engineering of HR
* HR can own a process???
* People in HR too stupid to get expert advice on issues they don't understand.
In case you ever show this to HR:
Dear OPs HR team. You are so terrible at your job you're encouraging sabotage! I would highly recommend restructuring your company to prevent you from having any decision power. If a board of directors ever saw your decision making power here, they would fire you on the spot.
In case you ever show this to your co-worker who wrote this:
What agency are you working for? A nation state? North Korea? China? Russia?
In case an investor in OPs company ever sees this:
This company is incompetent. Please move your investment somewhere else! -
@lungdart bruh.... 👑 You have my respect, I still don't know why the HR lady consistently screaming and telling at me everytime of my attempt to reasoning with her , for example like this rant.
-
These Malaysian devs and HR managers would be flipping burgers in any other country. In fact, most HR professionals would be flipping burgers if not for HR being a thing! They are at the lowest rung of the intellectual totem pole but they are loved and coddled with big salaries and power to abuse people better than themselves! What a deal lol
-
I would like to underscore that you need to mind the number of underscores when you re-use these utility functions. I don't like lodash so we are using _______
-
hjk10156963yIf that is what HR wants. Just get it in writing from yelling HR prick.
Just say you want to settle this matter once and for all and ask if you should code in the fuckers style. Attaching his offuscated code.
If it is positive grab the source of the project offuscate it fully in a new repo and push that. You can have a chosen few that can access and work with the original source. -
kiki352493y@nachocode LSD is a substance for smart, creative people. Transhumanist scientists from a so-called "chemical background" (I'm not kidding), Jimi Hendrix, David Gilmour, Jackson Pollock, Andy Warhol, the list is countable infinite.
However, the list of shit coders is uncountable infinite, so according to the diagonalization proof, there is an uncountable infinite amount of shit coders who'll never have a chance to belong to the list of smart, creative people. -
BadFox23313yI mean, assuming the lower function calls the higher one, it does literally fuck all, adds zero to an array of the two values passed to it?
-
kraator4113yJust write a script to replace all remaining variable und function names in your entire code base with underscores. Then lean back and watch everything burn. Only then they will truly understand your point.
-
@sbiewald
"Are you sure he isnt a malware developer in disguise?"
are you sure he isnt malware in disguise? -
@ComputerToucher That’s my boy! The man who wrote the English language dictionary all others are based on. His name is Samuel Johnson.@ComputerToucher
Related Rants
So today this Mother F**ker get HR to back him up to accuse me of not communicating well in the team because I consistently asked him (the code owner) why he kept coding not following the coding guideline.
How is it not communicating? He literally ghosted me and blocked me every time I ask him questions. Which I somewhat don't understand what he is trying to do. HR lady told me that a senior software engineer should have the knowledge to understand everything and all the code.
But the code looks like this :
rant
code
wtf
malaysia