170 comments

1

Also the guy never gets a date since the girl is always age=0 and she will not date him noo mater if he is good or bad looking.

1

Well the default int value of 0 applies pretty well here since she is being extremely infantile.

0

It gets even worse, property girl inside class Guy is private so he will never get to meet any girl ever. This guy is DOOMED!

0

Well assuming this is Java, it wouldn't even compile.

There is no "empty constructor" (Default constructor) defined. So, new Girl(), will not compile.

0

Or Csharp.

0

Isn't it undefined and importable?

0

Actually, the example wouldn't even compile. There is no constructor that takes no arguments. The Girl(int age) constructor would prevent the addition of an implicit constructor.

0

the Guy will just end up doing....

class Waifu extends Girl {

public boolean override willGoOutWithGirl(boolean isUgly) {

   return true;

}

}

0

Krieger was a fucking genius.

0

Even if the rest made sense, isUgly is always true

0

C# has a default constructor that takes no parameters. You dno't need to specify it. In this case all fields will automatically set to false, null or 0

0

I don't know the context, but that code won't work. Girl is constructed without that age argument.

0

something something default constructor might be in play.

0

It's been a while so I'm only 90% sure, but I think if the default value of a missing argument to a constructor is not specified it defaults to zero.

Talk about robbing the cradle.

0

Yes and her age will be 0 (default = 0), so she will never date him ever.

It is interesting that the comment says that he should not be able to know her age but we do know it, it can only be 0 (default constructor).

0

This might be intentional. isUgly is true by default, and we can't see whether or not there's a setter method defined below. So odds are girl willNeverGoOutWithGuy.

0

I suppose that's possible. I'm not entirely sure what language this is. In Java I was under the impression that if you define a constructor there is no default constructor generated. I think C# works the same way.

0

Just went and typed this shit up in java, and yea you are correct, since we defined one, now we dont have the default so it wont compile.

0

Nah Java always has a default constructor unless you override it.

0

C++ does generate a default constructor. Java doesn't.

0

Huh. I thought you'd have one unless you overrode it, rather than just defining ANY other constructor.

Shows how much I use default constructors in Java, I guess (none).

0

this is some nightmare level code just to call something from within another thing.

0

Yeah, but it's like, total cute code lol!

0

She left out the case for age >= 30 && isFat && wallHit(true).

0

Also some function in the guy that has a parameter named hasRoastie.

0

|| is fat

0

I think that's where you're supposed to throw an exception.

0

Bada boom!

0

I was gonna say, all you need is to make that an OR statement.

0

Search and replace girl to boy and see if it still compiles.

0

It's gay now though.

0

It will still compile, but automatically the program is granted root privilege for some unknown reason.

0

The boy naming triggers a toggle of the suid bit.

0

sed s/GuyUgly/GirlUgly/g

sed s/WillGirl/WillGuy/g

Fixed

0

or: isUgly with isRich

0

Something is wrong here, the girl is will only go out with a guy if SHE is 22+ and the guy is not ugly?

0

It's somewhat unclear what the age field of Girl refers to. Based on how it is used in the willGoOutWith() method, it seems to refer to the age of Guy, but it is [should be] passed in as a parameter to the constructor of Girl, implying that it would be a property of Girl.

Overall, this is shitty code on multiple levels, if someone produced this sort of code in an application to work at my company, they would not be hired.

0

If she won't go out until she's 22, I have to wonder whether the speaker even wrote the code. Waiting until one is more mature doesn't sound like the actions of an SJW.

0

Teaching girls not to date until they have left university is one way of reducing the number of unmarried mothers. (May not work.)

0

The Girl class does not have a means to change age, which is Private, so all Guy objects will eternally be stuck at age 0.

0

There is no default constructor defined, it wont even compile. This is Java.

0

The syntax is also consistent with C#, but I agree with you, the inclusion of the Girl(int age) constructor will prevent the creation of a default constructor, so it will not compile.

0

boolean != C#

0

The code isn't that bad...

The biggest problem is that they should introduce a main() function where one or more Girls can be instantiated and then passed as parameters to Guy.willGirlGoOutWithMe().

I'd also invert Guy.isUgly to Guy.isHandsome to avoid negation and clarify Girl.willGoOutWithGuy() but that's a nitpick.

0

Yes it is. It looks like Java and wouldn't compile unless there is a lombok @NoArgConstructor out of sight

0

Easily flagged by the compiler. They also have a comment that the Guy class has no knowledge of the Girl's age so they're on the right track. Between the compiler error and adding a main() function as I suggested, the solution becomes so apparent that I didn't take the time to spell it out--I just implied it with the part about where to do the instantiation :p .

0

You don't need C++ to do these functions. Having a private function that simply sets the same variable is a waste.

0

Having a private function that simply sets the same variable is a waste.

Where did he say that?

0

The chick did. Pushing and Popping the stack to set a variable is a great way to make slow programs.

0

I'd also invert Guy.isUgly to Guy.isHandsome

There should be Guy.hotnessRating and Guy.financialRating assigned on a scale of 0-10. The two should have to add up to at least 11 for him to get a date. Anything over 17 total (or possibly when financialRating = 10) means age is ignored.

0

Well that would only be if you wanted a reasonably accurate model of the real world.

0

The code is that bad. I'd be embarrassed to see a CS101 student write something like this. It's not a brainfart gotcha like a missing semicolon might be - the sample shows a fundamental misunderstanding of OOP. I mean it won't even compile for fuck's sake.

0

There were a couple of girls who could program rings around me at school, There were also just a couple girls in my programming classes, they were the same persons. During my IT career I encountered relatively few female programmers, and they were all crap (see below). Interestingly they were also all foreign born so my assumption has always been that they were trained as a part of some government program. Never saw a Canadian female programmer in the wild, not one. Again my assumption was that if they had to pay for their own schooling they were going into something either they enjoyed or had an aptitude for. I have nothing against girls in IT but programming is clearly not a strength.

By "they were all crap" I mean that they were almost incapable of using the toolset to do anything they had not explicitly been trained to do, which in my experience is the majority of programming jobs. Also they took longer than a guy would, like 3 times longer. I never came up with a theory to explain that. Every time we hired a female programmer we switched them to other duties relatively quickly.

Girls and accounting however was very common and usually a good match.

0

I knew some good female programmers, but that was back in the 90's when anybody who programmed was doing it because they liked it. One was fantastic at FoxPro, fucking FoxPro, a shit database with a shit language attached but damn if she couldn't do some amazing shit with it that I never saw guys do then or after.

0

This might be one of the reasons we have interview practices like FizzBuzz.

0

That girl needs a gui...from every guy on this comment thread amirite?

0
  1. Why the fuck would you put the initialisation for Guy.girl and Guy.isUgly outside the constructor.
  2. That's going to give a compilation error because Girl does not have a default constructor.
  3. Why on earth would Girl have to be a field of the Guy class. Are we implying that all guys contain girls?
0

It's wishful thinking or her perception on reality.

I suppooose the code makes sense if you're a closed-minded idiot.

0

Does that mean that girls are a property of guys?

0

Anytime you create a guy then a new girl is created and assigned to him.

0

The incel dream.

0

OOP problems

0

Reminder:

Here is the bar for men in STEM fields.

https://archive.is/e5x1V

0

If someone knew the basics of programming but was unsure of a good direction to head in for a self-taught career path, how would you advise them?

;)

0

Get a client project, give the actual work to someone else and take a cut, rinse and repeat.

0

Preferable someone that knows more

0

jajaja. I like your name.

I'm just curious about a direction some noob might should take for maximum employability. Right now, someone is playing with gentoo, docker containers, iptables, bash scripting, media server apps, etc. Someone also might be retarded, but he thinks he might be able to make it with some direction and better focus.

0

Make something cool, use it as your resume.

0

So the guy has the girl as his private property? Is that speaker Muslim?

0

It's probably a Freudian slip. She secretly wants to be dominated

0

Who's forcing women into programming?

0

Their pride and ego. They want to feel accomplishment like men, but think it's unfair all the work behind it.

0

Feminism. Programming is a well paid job that outsiders think women should be able to do, since it involves sitting at a desk with a keyboard. Bureaucrats have also heard that there is a shortage of programmers and that they have a large number of unemployed women.

0

Replace the genders, and she'll be pissed.

0

Yet another problem with programming and engineering, the idea of consistency and interchangeability. Real engineering has an infinite number of genders and races, and you can't just swap them around and get the same results. Everything is unique, but male programming forces them into classes and hierarchies, ignoring the uniqueness of each. And the whole object-orientation is another male view of the world, with everything (including people!) viewed as mere objects, to be ordered around to perform procedures.

0

I don't know much about coding (I did take a QBASIC/BASIC/VB6 class in high school), but I'm 100% certain that won't run, I don't even think it will compile.

0

Why the fuck does the Guy class have a girl attribute that is set to an instance of the Girl clause form the start? Does that mean that men have a girl assigned to them from birth? I've never heard of this.

0

Notice that they get a new Girl also. They don't inherit one from somewhere else or get one that someone else used and passed to them. They get a brand spanking new one with nothing defined. Of course she is undefined age and will error out immediately, but I guess that isn't too out of the ordinary for first meeting her.

0

she's also calling a class that isn't defined. where is 'isUgly' defined?

0

Horrible coding practices - ignoring the egyption brackets, heres a proper implementation (written by a man):

// proper object orientation of shit in https://kek.gg/i/63TqP-.jpg
// using more epic object orientation
// i have no idea if the lang in the image is c#, js, java, etc, so this isnt making full use of any feaures from those languages
// u could probably expand this by having a base class for both, yaddadada...
class Girl
{
    private int age; // private cuz u dont know their age just by looks...exactly...
    Girl(int _age)
    {
        age = _age;
    }
    public boolean willGoOutWithGuy(Guy guy)
    {
        return age >= 22 && isGuyUgly(guy);
    }
    private boolean isGuyUgly(Guy guy)
    {
        // can be expanded later
        return guy.isUgly;
    }
    public boolean willGoOut(Guy guy)
    {
        return willGoOutWithGuy(guy) && guy.willGoOutWithGirl(this);
    }
}
class Guy
{
    public boolean isUgly; // public cuz u can obv see if they're ugly
    // dont forget initializers daft hoe
    Guy(bool _isUgly)
    {
        isUgly = _isUgly;
    }
    // guy will basically fck any girl (systemic sexism?? maybe he wants to fuck dudes????)
    public boolean willGoOutWithGirl(Girl girl)
    {
        return true;
    }
    // check both
    public boolean willGoOut(Girl girl)
    {
        return willGoOutWithGirl(girl) && girl.willGoOutWithGuy(this);
    }
}
0

egyption brackets

Good name for that stupid bracketing style.

0

Egyptian brackets are great - they make the code more concise. What moron needs a whole line devoted to every single god damn curly brace?

0

Oh look, an asshole who relies on obfuscation and shitty coding style to keep his job.

Clarity, jackass. It's a thing.

0

Using a whole line every time you need a closing paranthesis isn't clarity you dipshit. Maybe if your only experience in coding is dabbling with Python scripts someone else wrote, but if I'm going through a >50,000 LOC project then I don't have time for the amount of code visible on my screen to shrink by a third because some jackass thinks that "egyptian brackets" are somehow "obfuscating".

0

...yep, you're a fucking jackass.

0

Does he not have a point?

Using an entire line for a single character seems wasteful if it can be avoided. His argument is "It makes code more concise" which definitely has value. Your argument is:

Oh look, an asshole who relies on obfuscation and shitty coding style to keep his job.

Which has no value. It's just a combination of insult and insinuation.

0

I gotta agree with you. Having the brackets lined up makes reading code much, much, much easier.

0

Eric Allman, the kike homosexual who created the style.

0

fucking use pascal case for your methods you inbred swine.

0

I'm copying their style for comparison's sake.

0

PascalCase for class names, camelCase for method names.

0

Whatever. Just don't fucking use underscores everywhere like a English lit major with a minor in Java.

0

All the pros use Hungarian 😎😎😎🚬

0

this isn't fucking javascript you no talent ass clown

0

you are not using inheritance. they have some similarities you could join it together

0

You code should self document, stop writing comments

0

Egyptian brackets

The actual name is K&R style after the creators of C. The separate line style came from a literal Kike homosexual named Allman.

0

Only pussies use private

0

Isguyugly?

But it's totes not about looks guise! Guise?

0

I deal with this shit at work. Every perky pair of tits that thinks they're a "coder" is god awful. They don't understand critical thinking and are nothing more than an HR diversity hire. Same goes for most blacks.

The sad thing is, I know very solid female programmers. They just aren't perky pairs of tits. They're anti social, have poor hygiene, and are not your Karlie Kloss Koder HR cover girl.

0

How else are you supposed to invent artificial stupidity?

0

that's not real, is it? Someone made that with photoshop. No REAL adult, even a female, would show such code without feeling any shame.

0

if Chad { min= 6'2 inches, six figure income, 8 inches Yes

0
class MuslimMan {
    public boolean willFuck(Object partner) {
        if (partner.hasVagina() && partner.age < 13) {
            return true;
        } else if (partner.species == "goat") {
            return true;
        } else {
            // Fuck it anyway
            return true;
        }
    }
}
0

This one's best so far. I love you, you cheeky bastard.

0

He left out the if pig clause.

0

FYI never use == for string comparisons. Most languages have a specific method for comparing string (strcmp in C, String.equals() in Java). == should only be used on primitives (int, char, long, etc.). Strings are not primitives and are either char arrays like in C or actual objects like in Java and most other languages.

0
  1. It's comedy pseudo-code ffs
  2. Have you ever heard of string interning?

FYI go back to nitpicking on stackoverflow.

0

Solving the real problems

0

Can someone break this down for me in layman's? I have some coding background just to enough to quite get whats going on here.

0

It should really be an 'or' statement lol.

0

Uhh she forgot the constructor param she defined.

0

The Chinese hire the best for the job while we let pink haired faggot make us fill quotas, we will lose ...

0

America already has lost.. 56% white and dropping fast.

0

I like how her abstraction layer and object classes also makes no fucking sense. At the very least the WillDate method for each class should have their counter part classes being passed in as an argument. If she really wanted to get into it she would have made an IHuman interface class and an abstract human class with an method WillDate and an abstract protected method MeetsCritera that then boy and girl class would implement and they would have a base class of Human.

0

I've noticed just after these companies have their diversity hiring, their software becomes buggy and shit. Not to mention poor user interface these days. They just change shit for the sake of changing it.

0

Using an int to store the age, because there are 2 billion year old people, yup.

0

The code is shit, but what's wrong with using an int to store age? What would you use instead? unsigned int since ages can't be negative? short, or even byte, to save memory? I mean unless you are programming for an embedded device with super, super low memory then I don't see anything wrong with using an int.

0

It's a complete fucking waste of 3 bytes per instance, and you have absolutely no idea how many instances there will be.

Spend the memory you have when you actually need it, save it when you don't.

I would use an unsigned byte (uint8_t) since, as you said, it can't be negative, and the oldest living person known to man's age wouldn't even take up 7 bits (121 < 127).

Here's the thing, EVERY device is a "low memory device" the average device still has just 4GBs of memory, of which the OS uses at least 1 gig of that for itself, then there are browsers open practically 24/7 with dozens of tabs taking up the rest.

Taking literally 2 seconds while writing your code to figure out what the data actually does, and therefore what it needs is very worth the tiny effort.

0

You haven't actually held a job programming, have you? No one sweats a single bead of sweat over shit like this in real life. The amount of instances of "people" you would need for this to even an item of concern would be fucking comical.

0

No, I'm in the middle of trying to get one being self taught and coming from an area that doesn't really do it, it's slow going.

that said, literally all of the stuff I've written, is written that way.

0

Shows you how fucking gay IT is that women want to get in to "coding". I mean programming is a type of engineering, it's tinkering with a machine/system but women have no interest in any other kinds of engineering only "coding"?? I still dont get why "coding" is supposed to be cool, other than never being required to be exposed to dirt, chemicals, heavy things or actual mathematics.

0

Wasn't there a picture or the Ubisoft company, all their programmers being now women. No wonder their games suck!

0

What the fuck is this shit.

Can you imagine being a man watching this trainwreck?

0

My biggest issue is that the minimum dating age of 22 should be declared as a const rather than some magic value buried in a line of code. As well as the list of Syntax errors everyone else has already pointed out.

0

I want to point out that there's also another very fundamental thing missing here.

You never want two classes that are similar (here, Girl, Guy) to act as two very separate classes. These should be derived from a base class "Person" or something... :/

0

buy passports online normally collect private information in other to issue a passport, Id card, or visa. But this information is just to enable you to buy passports online. Contact us about prices of other documents and Countries that are not listed on our website Like: Registered IELTS & TOEFL, ESOL Certificates....... Schengen Visa ...... Resident Permit ...... Working Permit ....... Social Security Number/Card ........ Adoption Certificates ........ Emancipation Document ......... Birth Certificates ......... Marriage Certificate ............. High School Diplomas ............. G.E.D. Diplomas ............ College Degrees .......... And Many More... All passports are registered in official government database. Driver's Licences include micro printing, holograms,UV infrared ink and watermarks. UK Driver's License is registered into the DVLA (Drivers Vehicle Licensing Agency)US Driver's License is registered into the DMV (Department of Motor Vehicles)

To get more details please contact us:

Email address : info.internationaldocuments@yahoo.com Telegram : +1 347 921 0754 Whatsapp : +237 678395074 Thanks

0

let me correct you.. Actually men didn't forced women to enter into programming world.Women dragged men in programming.... Ada Lovelace was first women who wrote first computer program,and fucked us all

0

Women I worked with were CONSTANTLY asking for help, like I'm there to help them, instead of just doing my job, or that I'm not wise to that cutesy bullshit personality they use when they want something, like that somehow makes up for them TAKING MY TIME from me! AND they SHIT on you if they don't get what they want. Ask me, they should be ejected from the workplace altogether. I am so sick of women in general, it's not even funny. They are just like niggers only different since the don't look like monkeys.