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
-
codecrow2184yI like the attention to detail.
They're retrieving 'your dick' and inserting it into 'yomama', in a fuck object.
Hilarious. -
I agree, this is truly disgusting code:
- no strict-mode
- class in global-namespace
- class not final
- class name not in camel-case
- no autoloading
- public properties
- direct accessing global-variables
- echo-statement (instead of return)
- ugly string concat
:( -
Now that is a highly professional way of leaving the company.
Please tell me they have git so all it took to fix this was a quick revert? -
@ilPinguino Unfortunately, they don't use git(The f*** up moment). They just send me the zip file.
-
@johnmelodyme Oh shit...
I sure hope your IDE has a good refactoring function because you'll need it. -
@ilPinguino I'm using Visual Studio Code so no I have no worries on refactoring , I concern on I have to understand the code...
-
@ilPinguino thanks .... I hope I can understand it.... Otherwise I have to drop the bid.
-
@johnmelodyme hm... I'm just thinking, if you have to drop the bid because of that former employees actions, that person may be liable (of course, depending on your jurisdiction) for the damages caused to both you and the client.
But that's just my 2 Cents. -
@johnmelodyme Yeah, but consult your lawyer first please. I don't know the situation you're in.
But I'd definitely show the client what that code looked like when you started. Maybe they'll throw in a bonus, or are little more understanding when there are delays. -
@johnmelodyme Yeah. If it comes down to you having to drop that bid due to this person's actions, and you're thinking of suing them, please consult a lawyer first.
I'm just a random penguin on some social media platform. Although judges and such occasionally dress up like penguins that doesn't mean I, as a penguin, know the law well enough to give advice on it. -
mash9794yThis looks kinda cool! for the some people who will have easy time to understand the code!
-
pipe3274y@ilPinguino Should I ever choose to quit like this, I'd delete every old commit just so this version is the last remaining.
-
@pipe The client could argue that unjustifiable deletion of commits is intentional damage to the code which is their property. It's much harder to argue that based on this.
-
I would definitely tell the client, if for nothing else then so that they know what I'm spending their time on.
-
@johnmelodyme
You might want to keep that code for when you leave that project for the very same reason that made the author write it.
Always keep in mind, that the overwhelming majority of people aren't destructive by nature.
There probably is a very disturbing reason for that code to exist... -
cprn17394y@pipe Absolutely not true. Neither compilation nor interpretation are attributes of the programming language. Saying some code is written in a compiled programming language or in an interpreted programming language is a non-sense. These are properties of the implementation. The most common implementation of PHP is Zend Engine, a.k.a. `php` binary, which *compiles* sources down to an intermediate bytecode before interpreting. Google HHVM for a popular example of an alternative implementation. And guess what, it also *compiles* sources to bytecode. There are more.
-
pipe3274y@cprn The one where I said "my bad" was posted in reply to when you said that php was indeed compiled. Then you seemingly deleted that comment and actually said that compilation wasn't a property of the language, to which I answered I knew. Everything is in the right order to me! It's not time travel, it's comment manipulation!
-
@cprn If you call converting to bytecode compilation then every language that isn't a complete joke is compiled. Toy languages and very early PoCs interpret from source, everything else uses a bytecode even if you can't access it, because it's more cache friendly.
-
@homo-lorens Also because you don't want to redo anything except the instructions themselves when you execute a path the second time.
-
I am offended. PHP is the devil's work and in this house something something religion pun. I just hate PHP.
-
cprn17394y@homo-lorens It's true, though, isn't it? Nowadays it's a rarity to find a language that doesn't have compilation step in any of its implementations. Maybe shell script. Everything else, if it hangs around long enough, sooner or later gets a compiler. Saying "a programming language is interpreted" is kind of like saying "this text in English can be read and understood perfectly well but it's impossible to translate it to Dutch".
-
@cprn Which is why we call something compiled if it is converted to machine code and no mediator is required for its execution, and bytecode-based languages are interpreted or maybe transpiled. How we classify JIT compilation is an interesting question.
-
cprn17394y@homo-lorens PHP doesn't require interpreter at least since PHP 7.4 - I'm actually using an ahead of time compiler that does produce machine code in an obscure project at work once every 90 days or so. I'm not sure compilation is defined as process of converting source into machine code per se (and converting to byte code doesn't qualify, I honestly thought it does) but that's not really a point. What I was trying to say is "compiled" or "interpreted" aren't words that can be used to characterize a programming language because language is an abstract set of rules. A language that doesn't have an AOT compiler today can have one tomorrow. There's enough crazy people around to make sure of that. Root.cern people made Cint. Does that make C++ an interpreted language? I don't think it does. 🤷♂️
-
@pipe Arguably a html to bitmap renderer is a html compiler because you can pass the result as-is to the GPU and it will be able to use it.
-
@evici
Hey, i see you are a connoisseur of the well aged bones already cleaned from all the flesh by the passing of time - but would you also like to try a more aromatic thread featuring slight residues of bad jokes rot:
https://devrant.com/rants/2126149/...
Related Rants
In my freelancing job, I got this as a source code ? Really? Are you guys serious? Is this a joke?
rant
freelance
code
wtf
php