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.
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
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.
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.
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.
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.
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.
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.
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 .
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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);
}
}
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".
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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... :/
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)
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
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.
170 comments
1 u/roznak 17 May 2018 21:24
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 u/Morbo 17 May 2018 21:29
Well the default int value of 0 applies pretty well here since she is being extremely infantile.
0 u/roznak 17 May 2018 21:31
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 u/Camamoow 17 May 2018 21:48
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 u/wild-tangent 17 May 2018 22:48
Or Csharp.
0 u/AmaleksHairyAss 17 May 2018 22:05
Isn't it undefined and importable?
0 u/Gumbatron 17 May 2018 22:21
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 u/Gumbatron 17 May 2018 22:35
the Guy will just end up doing....
0 u/i_scream_trucks 17 May 2018 23:12
Krieger was a fucking genius.
0 u/Rakosman 18 May 2018 20:59
Even if the rest made sense, isUgly is always true
0 u/roznak 18 May 2018 17:40
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 u/badbear 17 May 2018 21:12
I don't know the context, but that code won't work. Girl is constructed without that age argument.
0 u/Pawn 17 May 2018 21:14
something something default constructor might be in play.
0 u/Kromulent 17 May 2018 21:21
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 u/roznak 17 May 2018 21:28
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 u/ThisIsMyRealName 18 May 2018 01:18
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 u/badbear 17 May 2018 21:32
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 u/Pawn 17 May 2018 21:43
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 u/AndrewBlazeIt 17 May 2018 21:51
Nah Java always has a default constructor unless you override it.
0 u/maelask3 17 May 2018 21:53
C++ does generate a default constructor. Java doesn't.
0 u/AndrewBlazeIt 17 May 2018 22:23
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 u/Pawn 17 May 2018 21:13
this is some nightmare level code just to call something from within another thing.
0 u/aaronC 19 May 2018 14:50
Yeah, but it's like, total cute code lol!
0 u/Morbo 17 May 2018 21:14
She left out the case for age >= 30 && isFat && wallHit(true).
0 u/prairie 17 May 2018 22:05
Also some function in the guy that has a parameter named hasRoastie.
0 u/wild-tangent 17 May 2018 22:49
|| is fat
0 u/copper_spartan 18 May 2018 01:27
I think that's where you're supposed to throw an exception.
0 u/vastrightwing 18 May 2018 01:32
Bada boom!
0 u/MadBro 18 May 2018 01:56
I was gonna say, all you need is to make that an OR statement.
0 u/roznak 17 May 2018 21:18
Search and replace girl to boy and see if it still compiles.
0 u/The_Prophets_Profit 17 May 2018 21:28
It's gay now though.
0 u/Morbo 17 May 2018 21:32
It will still compile, but automatically the program is granted root privilege for some unknown reason.
0 u/ThisIsMyRealName 18 May 2018 01:13
The boy naming triggers a toggle of the suid bit.
0 u/voats4goats 17 May 2018 21:21
Fixed
0 u/fl3x 17 May 2018 21:36
or: isUgly with isRich
0 u/roznak 17 May 2018 21:22
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 u/Gumbatron 17 May 2018 22:44
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 u/prairie 17 May 2018 23:22
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 u/A_M_Swallow 18 May 2018 12:45
Teaching girls not to date until they have left university is one way of reducing the number of unmarried mothers. (May not work.)
0 u/AndrewBlazeIt 17 May 2018 21:44
The
Girlclass does not have a means to changeage, which is Private, so allGuyobjects will eternally be stuck at age 0.0 u/Camamoow 17 May 2018 21:51
There is no default constructor defined, it wont even compile. This is Java.
0 u/Gumbatron 17 May 2018 22:40
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 u/asdfe34 18 May 2018 02:08
boolean != C#
0 u/1HepCat 17 May 2018 21:44
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 u/speedisavirus 17 May 2018 22:33
Yes it is. It looks like Java and wouldn't compile unless there is a lombok @NoArgConstructor out of sight
0 u/1HepCat 17 May 2018 23:55
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 u/SChalice 17 May 2018 23:05
You don't need C++ to do these functions. Having a private function that simply sets the same variable is a waste.
0 u/ttu85t 17 May 2018 23:22
Where did he say that?
0 u/SChalice 29 May 2018 20:32
The chick did. Pushing and Popping the stack to set a variable is a great way to make slow programs.
0 u/SquarebobSpongebutt 18 May 2018 00:15
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 u/1HepCat 18 May 2018 01:32
Well that would only be if you wanted a reasonably accurate model of the real world.
0 u/MrBoneCrusher 24 May 2018 01:55
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 u/GoddammitMrNoodle 17 May 2018 21:45
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 u/SquarebobSpongebutt 18 May 2018 00:08
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 u/ThisIsMyRealName 18 May 2018 01:11
This might be one of the reasons we have interview practices like FizzBuzz.
0 u/Darl_Von_Kibble 17 May 2018 21:55
That girl needs a gui...from every guy on this comment thread amirite?
0 u/maelask3 17 May 2018 21:57
0 u/therealsharpie 17 May 2018 22:04
It's wishful thinking or her perception on reality.
I suppooose the code makes sense if you're a closed-minded idiot.
0 u/Plant_Boy 17 May 2018 23:03
Does that mean that girls are a property of guys?
0 u/SpecialtyPizza 17 May 2018 23:11
Anytime you create a guy then a new girl is created and assigned to him.
0 u/shmuklidooha 18 May 2018 08:35
The incel dream.
0 u/ThisIsMyRealName 18 May 2018 01:09
OOP problems
0 u/GumbyTM 17 May 2018 21:58
Reminder:
Here is the bar for men in STEM fields.
https://archive.is/e5x1V
0 u/FortniteBlitzkrieg 17 May 2018 22:00
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 u/InflationSlave 17 May 2018 22:28
Get a client project, give the actual work to someone else and take a cut, rinse and repeat.
0 u/speedisavirus 17 May 2018 22:49
Preferable someone that knows more
0 u/FortniteBlitzkrieg 17 May 2018 22:52
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 u/InflationSlave 18 May 2018 02:57
Make something cool, use it as your resume.
0 u/prairie 17 May 2018 22:04
So the guy has the girl as his private property? Is that speaker Muslim?
0 u/Gumbatron 17 May 2018 22:37
It's probably a Freudian slip. She secretly wants to be dominated
0 u/PsyOp 17 May 2018 22:17
Who's forcing women into programming?
0 u/prairie 17 May 2018 23:15
Their pride and ego. They want to feel accomplishment like men, but think it's unfair all the work behind it.
0 u/A_M_Swallow 18 May 2018 13:02
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 u/ThisIsntMe123 17 May 2018 22:19
Replace the genders, and she'll be pissed.
0 u/prairie 17 May 2018 23:14
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 u/slwsnowman40 17 May 2018 22:19
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 u/Hmmm 17 May 2018 22:25
Why the fuck does the Guy class have a
girlattribute 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 u/SquarebobSpongebutt 18 May 2018 00:12
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 u/carlip 17 May 2018 22:50
she's also calling a class that isn't defined. where is 'isUgly' defined?
0 u/diodine 17 May 2018 22:52
Horrible coding practices - ignoring the egyption brackets, heres a proper implementation (written by a man):
0 u/ThirteenthZodiac 17 May 2018 23:47
Good name for that stupid bracketing style.
0 u/MrBoneCrusher 24 May 2018 01:44
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 u/ThirteenthZodiac 26 May 2018 18:40
Oh look, an asshole who relies on obfuscation and shitty coding style to keep his job.
Clarity, jackass. It's a thing.
0 u/MrBoneCrusher 31 May 2018 05:50
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 u/ThirteenthZodiac 31 May 2018 06:28
...yep, you're a fucking jackass.
0 u/6cd6beb 04 Jun 2018 06:37
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:
Which has no value. It's just a combination of insult and insinuation.
0 u/whambamthankyouham 26 Jun 2018 03:51
I gotta agree with you. Having the brackets lined up makes reading code much, much, much easier.
0 u/ELS_BrigadeWarning 16 Jun 2018 19:33
Eric Allman, the kike homosexual who created the style.
0 u/manapot 18 May 2018 00:20
fucking use pascal case for your methods you inbred swine.
0 u/diodine 18 May 2018 02:43
I'm copying their style for comparison's sake.
0 u/RevanProdigalKnight 18 May 2018 03:39
PascalCase for class names, camelCase for method names.
0 u/BlockMe 18 May 2018 03:58
Whatever. Just don't fucking use underscores everywhere like a English lit major with a minor in Java.
0 u/Rakosman 18 May 2018 21:06
All the pros use Hungarian 😎😎😎🚬
0 u/manapot 18 May 2018 23:49
this isn't fucking javascript you no talent ass clown
0 u/dayofthehope 18 May 2018 09:13
you are not using inheritance. they have some similarities you could join it together
0 u/MrKequc 19 May 2018 23:15
You code should self document, stop writing comments
0 u/ELS_BrigadeWarning 16 Jun 2018 19:28
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 u/SChalice 17 May 2018 23:03
Only pussies use private
0 u/i_scream_trucks 17 May 2018 23:11
But it's totes not about looks guise! Guise?
0 u/BurnItAll 17 May 2018 23:28
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 u/Thyhorrorcosmic103 17 May 2018 23:29
How else are you supposed to invent artificial stupidity?
0 u/KnightFalcon 17 May 2018 23:36
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 u/geekpuk2 17 May 2018 23:51
if Chad { min= 6'2 inches, six figure income, 8 inches Yes
0 u/ArbeitMachtJudenfrei 18 May 2018 00:21
0 u/Troll [OP] 18 May 2018 00:36
This one's best so far. I love you, you cheeky bastard.
0 u/ThisIsMyRealName 18 May 2018 01:15
He left out the if pig clause.
0 u/MrBoneCrusher 24 May 2018 01:50
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 u/ArbeitMachtJudenfrei 24 May 2018 02:03
FYI go back to nitpicking on stackoverflow.
0 u/ThisIsMyRealName 18 May 2018 01:08
Solving the real problems
0 u/B166-ER 18 May 2018 01:50
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 u/MadBro 18 May 2018 01:55
It should really be an 'or' statement lol.
0 u/ShitboxMcGee 18 May 2018 02:37
Uhh she forgot the constructor param she defined.
0 u/zerozen77 18 May 2018 03:02
The Chinese hire the best for the job while we let pink haired faggot make us fill quotas, we will lose ...
0 u/Islamiscancer 18 May 2018 04:30
America already has lost.. 56% white and dropping fast.
0 u/AnthraxAlex 18 May 2018 03:09
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 u/Adam_Jensen_ 18 May 2018 04:17
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 u/anonagent 18 May 2018 04:26
Using an int to store the age, because there are 2 billion year old people, yup.
0 u/MrBoneCrusher 24 May 2018 01:59
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 u/anonagent 26 May 2018 14:58
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 u/MrBoneCrusher 31 May 2018 05:53
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 u/anonagent 15 Jun 2018 08:18
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 u/Dougal_McHaggis 18 May 2018 05:04
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 u/fistof_feilong 18 May 2018 05:45
Wasn't there a picture or the Ubisoft company, all their programmers being now women. No wonder their games suck!
0 u/recon_johnny 18 May 2018 09:16
What the fuck is this shit.
Can you imagine being a man watching this trainwreck?
0 u/MJStone 18 May 2018 10:11
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 u/skruf 18 May 2018 16:01
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 u/micheal_ducs 30 May 2018 16:19
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 u/workonorder 31 May 2018 17:57
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 u/thebearfromstartrack 01 Jun 2018 08:00
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.