~ archived since 2018 ~
Popular
Other
FalloutFan2
[–]theWillpowerEngine 33 points34 points35 points 9 years ago (3 children) | Copy Link
If I recall correctly from the last time I saw this, her code doesn't even work correctly. I think it returns 5 when you pass two equal values to it or something.
[–]Werkzeug8112 points13 points14 points 9 years ago (0 children) | Copy Link
It also has logic to check the same thing in the second if. If a > b and b < a are the same fucking thing.
[–]80173512 points13 points14 points 9 years ago* (0 children) | Copy Link
Also returns C when she stops shit testing you. ]=)
[–]naruto_kurosaki 8 points9 points10 points 9 years ago (0 children) | Copy Link
> im so random yay xdddxxddddddd-))))
*plane crashes in the background
[–]Essara27 points28 points29 points 9 years ago (13 children) | Copy Link
Just by doing a quick look at her code....
There is no case for when (a==b), so when that happens, a "5" will get returned.
Also as a teacher, she would have been docked marks for the "else if (a>b && b<a)" as this is the same logic and a waste of code.
[–]dogwoodcat11 points12 points13 points 9 years ago (3 children) | Copy Link
She did not declare her variables.
Should use long, not int.
Her comment "an int is a number without a decimal" is unnecessary outside of Programming 101.
Returns 5 for "y'done fucked up", what if one of the inputs was five? Should have written the result to another variable and made that the output, leaving return to report success/failure as required.
No println; or window for inputs (one on left has the same error).
[–]TheRiseAndFall2 points3 points4 points 9 years ago (0 children) | Copy Link
It's a function. It accepts arguments. Why would you put a window for inputs in the function instead of in the main program?
[–]Essara0 points1 point2 points 9 years ago (0 children) | Copy Link
true that it should not return a 5 as the error and a long would be better than an int.
But in this case, the variables do not need to be declared as they are declared in the functions inputs IE "int a, int b"
[–]mtear0 points1 point2 points 9 years ago (0 children) | Copy Link
As a software engineer at a Fortune 500 company, please don't ever go to school for CS. You are absolutely wrong on many levels.
[–]JorixKienu5 points6 points7 points 9 years ago (4 children) | Copy Link
True, that line suck.
This error is so trivial that very probably the compiler can optimize it out and generate an executable code without that redundancy.
If you don't know what a compiler is, Google it. The code as written is always transformed in something that the computer can actually run ( executive) as almost any "computer language" is actually for the humans to write and read, not for the machine.
The real programmers are the guys who wrote that compiler, not an easy nor simple task.
They are all male, if you care to know.
[+][deleted] 9 years ago (1 child) | Copy Link
[deleted]
[–]JorixKienu1 point2 points3 points 9 years ago (0 children) | Copy Link
Kudos. I agree.
I forgot to consider side effects. Funny to see that wymin coding can ( and will) defeat logic defenses. As in RL.
[–]compilerhistorylesso0 points1 point2 points 9 years ago (1 child) | Copy Link
Yeah, I agree. Women are so useless and immature they could never write a compiler. Or even contribute towards building one. This is just something that requires a rational man's hand.
[–]JorixKienu0 points1 point2 points 9 years ago* (0 children) | Copy Link
Ok, I was inaccurate, they are almost all males.
The number of women who actually contributed concretely ( to the computer science) was so small that nearly every one of them was remember and "celebrated" as the wonderful exception that is. Personally I find nothing wrong in this celebrations , everyone have to be given the credit it deserves, but on average, there is no match.
I don't do the counting but what is the female to male ratio in the contributor list of gcc ? If you want to demonstrate something do the counting yourself, post it and all we'll see if I'm wrong or not.
I try to do a count myself, trying to count female names in that list. For your reference this is the Contributors to GCC list I use.
It is a very difficult task as there are many international names there, so some name I cant' attribute for sure. I'm also aware that even a conventional masculine name can be taken as a sure indication of sexual identity ( and the other way around, of course).
Excluding the people which is attributed on testing (ok, it's arbitrary excluding that but I simply take a corner to cut to simplify), I count 8 conventional female name on the list. (obviously I may be wrong). The list is 408 paragraphs long. I'll take that, on average, there is 1 name for every paragraph. So the number I got is a little less that 2 female in 100 people.
I repeat that is a very rough approximation. Taking this number only as an an order of magnitude, we can say that we have only one or two female every hundred of contributors on gcc.
Exceptions are not rules.
[–]xeeleesequence2 points3 points4 points 9 years ago (3 children) | Copy Link
Do you teach programming? I'd be very interested in picking your brain on coding logic.
[–]Essara1 point2 points3 points 9 years ago (0 children) | Copy Link
Was a TA and helped grade but that was over 5 years ago.
[–]mtear0 points1 point2 points 9 years ago (1 child) | Copy Link
I'm a six figure software engineer at a Fortune 500 company. What do you need kid?
[–]xeeleesequence0 points1 point2 points 9 years ago (0 children) | Copy Link
First, congrats on having the life I want. Second, I want to train for the life you have. I love being creative. The only language I actually KNOW so far is Swift. Which i know isn't ready for prime time yet. I'm really looking for a mentor to study under who's professional path I can follow. IOS development is what I ideally WANT to do, but i know dev is dev, and coding is essentially the same across the board once you know it fundamentally.
Im so much interested in your workflow. Your creative process and your problem solving techniques. Obviously what makes you YOU are trade secrets and I expect you to die with them, however, if you WERE to train a young pupil, what path would you set your young Padawan on?
Thank you for what i am sure is precious time and information.
[–]Swordeater24 points25 points26 points 9 years ago (8 children) | Copy Link
And the guy's code is a slightly modified version of the very brilliant solution to calculating inverse square root in far less time than other solutions of the time.
float Q_rsqrt( float number ) { long i; float x2, y; const float threehalfs = 1.5F; x2 = number * 0.5F; y = number; i = * ( long * ) &y; // evil floating point bit level hacking i = 0x5f3759df - ( i >> 1 ); // what the fuck? y = * ( float * ) &i; y = y * ( threehalfs - ( x2 * y * y ) ); // 1st iteration // y = y * ( threehalfs - ( x2 * y * y ) ); // 2nd iteration, this can be removed return y; }
Source
[–][deleted] 6 points7 points8 points 9 years ago (4 children) | Copy Link
This guy knows his shit :)
[–]Swordeater17 points18 points19 points 9 years ago (3 children) | Copy Link
Eh, I'm just your average mysoginistic programmer that makes things too complicated for women doing the same job as me because they have a vagina to understand.
[–][deleted] 1 point2 points3 points 9 years ago (2 children) | Copy Link
I'm glad to know there are a few programmers in MGTOW :)
[–]Swordeater8 points9 points10 points 9 years ago (1 child) | Copy Link
Fuck yeah! I'm actually running my own engineering business, with nothing to do with women at all. This is the best job I have ever had in my life, so much easier than even my shitty first job at McDicks, where most shifts I was the only guy in 3-5 females. Fuck women!
[–][deleted] 1 point2 points3 points 9 years ago (0 children) | Copy Link
I'm happy for you man! Godspeed :)
[–]Asbestasio5 points6 points7 points 9 years ago (0 children) | Copy Link
evil floating point bit level hacking
fuck this guy is an actual magician
[–]rp_whybother2 points3 points4 points 9 years ago (0 children) | Copy Link
I originally thought the twitter pic had been photoshopped to make her look dumb. But then I checked the account and she does a coding camp for girls. Boggles my mind how she can dis this code/algo that is actually really amazing and say her super basic and buggy code is better. I'm guessing she cant even begin to understand what this code does and why its significant.
[–]FreeManIsFrank1 point2 points3 points 9 years ago (0 children) | Copy Link
So what you're saying is the girl stole this code and did not give proper citation? How typical of a woman.
[–]feedmecarrots20 points21 points22 points 9 years ago (0 children) | Copy Link
What kills me is that all the girls are so supportive of the girl's code, without understanding it.
[–]derp_derpington17 points18 points19 points 9 years ago (3 children) | Copy Link
"This is why more women should get into coding"
[+][deleted] 9 years ago [recovered] (2 children) | Copy Link
They have, and look how much more unstable and bug infested software has gotten. They blame it on increased complexity and so forth, but we know the truth.
[–]8017359 points10 points11 points 9 years ago (1 child) | Copy Link
but we know the truth.
Yes, we do, it's because of the male connectors on the cables. ]=)
[–]frjoethesecond4 points5 points6 points 9 years ago (0 children) | Copy Link
It's 2017. Cables should connect by tribbing. Down with patriarchy.
[–]slappydapussy18 points19 points20 points 9 years ago (0 children) | Copy Link
I wonder what the responses would be if you were to switch the two titles so they thought the left was by a girl. I'm betting that their responses are conditioned by thinking women are goddesses so they would like whichever they thought was written by one. I guess they would just say it was concise, and brilliant. <- Just like a woman.
[–]TheExSexOffender 12 points13 points14 points 9 years ago (2 children) | Copy Link
I didn't see it in the comments here yet, but...
What the fuck is this 'chicks' bullshit. The guys code is clean and crisp and doesn't waste space. I'm not a CS major by any means, but the last time I checked, or at least took some programming, you DO NOT fill the lines of code with a fucking book. It's tedious. It wastes space/memory, etc. Optimization is key, and efficiency.
Dude's code get's the job done. The woman's code, even if it's correct, is WAY overboard with useless information.
[–]squeezeonein1 point2 points3 points 9 years ago (1 child) | Copy Link
Comments don't add anything to the program size as they are ignored by the compiler. It is considered good practice to use them.
[–]TheExSexOffender 0 points1 point2 points 9 years ago (0 children) | Copy Link
I know they are considered good practice to use them, but direct and only as it applies to code, or a specific function that may need to be defined. As reference for other engineers.
Not a book and 'introduction' by some overzealous woman-child.
[–]phantommaster199910 points11 points12 points 9 years ago (2 children) | Copy Link
"If(a>b && b<a)"???? That's the dumbest line of code I've seen in my life. Even the kids in kindergarten know that if a>b then b<a. Who the hell writes the same thing twice. Plus all the useless details like her name yada yada yada. The comments sections is stage 4 terminal cancer.
[–]CheesyFedora 2 points3 points4 points 9 years ago (0 children) | Copy Link
A woman does that. Lol
[–]erydan2 points3 points4 points 9 years ago (0 children) | Copy Link
Even the kids in kindergarten know that if a>b then b<a.
I was born with a gift for languages, currently speaking 4-ish. This gift came at a price. I have literally zero math abilities, as in, addition is easy. Substraction is a bit harder. Multiplication and division are too complicated. Algebra and trigonometry are space travel science-fiction.
Even a complete retard like me understood that if a>b then b<a.
[–]MoronicBobbin4 points5 points6 points 9 years ago (3 children) | Copy Link
Would of taken a make coder less than two minutes to write her code, but you can guarantee it took that cunt all day with lots of social media checking going on inbetween
[–]could-of-bot14 points15 points16 points 9 years ago (2 children) | Copy Link
It's either would HAVE or would'VE, but never would OF.
See Grammar Errors for more information.
[–]GuidoBandito1 point2 points3 points 9 years ago (1 child) | Copy Link
The bot that shares educational info and people ignore... we need one for their/they're/there and where/were, amongst other grammar things.
[–]eRoNNN0 points1 point2 points 9 years ago (0 children) | Copy Link
and 'couldn't care less'
[–][deleted] 3 points4 points5 points 9 years ago (5 children) | Copy Link
if ( a >= b)
return a;
else
return b;
This is how her function body should look. Those comments are pointless and make it harder to read.
[–]GhillieGoat 6 points7 points8 points 9 years ago (3 children) | Copy Link
Even better:
return (a >= b) ? a : b;
[–]GuidoBandito1 point2 points3 points 9 years ago (0 children) | Copy Link
One of my favorite types of code statements...
[–][deleted] 0 points1 point2 points 9 years ago (0 children) | Copy Link
Just have it for readability but you are right.
[–]the-capitan 0 points1 point2 points 9 years ago (0 children) | Copy Link
people who write comments like that don't know what comments are for.
[–]Ximkai3 points4 points5 points 9 years ago (0 children) | Copy Link
There's a whole lot of circle jerking in those comments.
[–]I5zq3iuyfI2 points3 points4 points 9 years ago* (0 children) | Copy Link
a > b && b < a tons of useless comments
a > b && b < a
tons of useless comments
I wish I will never have to work with person who that codes that way in my team. I will quit the job if I will have to, which my be soon cause my company has a special program for womenz cause they're soo underrepresented. Makes me sick when I think that someone gets favored because of their genitals.
[–]linkwaker102 points3 points4 points 9 years ago (2 children) | Copy Link
jfc the comments on the right are so redundant
[–]leithz6 1 point2 points3 points 9 years ago (0 children) | Copy Link
LOVE YOUUUUUUUU
HAHA SO TRUUUUUUUUUUUUU
stfu
If code ran off comments, she'd probably have working code. But I doubt it.
[–]randomroxks2 points3 points4 points 9 years ago (0 children) | Copy Link
I went through her twitter feed looking for this pic. Can't find it. and who the fuck writes (a>b && b<a) they are the same thing.
[–]DarkLord0chinChin2 points3 points4 points 9 years ago (0 children) | Copy Link
her code can be replaced by:
max(a,b)
[–]weaklion1 point2 points3 points 9 years ago (0 children) | Copy Link
Reading this, an imagination of the high-pitched, fake-personality-revealing tone of the females saying something like this in RL comes to mind immediately:
'OMG, yes, this is lilke totally more organised on the right side. Men are like, sooo stooopid!1!'
Ewww.
[–]Train_Guy91 1 point2 points3 points 9 years ago (2 children) | Copy Link
I recently started to learn to code as a way to try and make a career change. I know commenting can be useful but Holy shit, this chick really needs to specify what an int, is?
[–]poloppoyop0 points1 point2 points 9 years ago (0 children) | Copy Link
Learn to comment why you code something and not what your code does. If you don't, the day your assumptions become wrong no one knows they should change or remove your code.
[–]cdn_herbivore_man1 point2 points3 points 9 years ago* (0 children) | Copy Link
A good prank would be whatever she posts on Facebook, no matter what text or photos she enters, after hitting submit she just ends up posting "5" to her wall.
Then, when she complains to customer support they just respond with "sorry lol but we're just so random! XD <3"
[–]mgtow4lifefellas1 point2 points3 points 9 years ago (0 children) | Copy Link
Karlie Kloss - a fashion model. What'd you expect, seriously?
[–]SnapshillBot0 points1 point2 points 9 years ago (0 children) | Copy Link
Archived for your convenience
Snapshots:
I am a bot. (Info / Contact)
[–]Wraith29 0 points1 point2 points 9 years ago (5 children) | Copy Link
i'm...i'm just gonna say it. coding looks really stupid, no matter who does it. it's jibberish.
[–]PinHunter658 points9 points10 points 9 years ago (1 child) | Copy Link
Thats funny you should say that. Coding is the reason why you have the computer in front of you. Its the reason why all your software works. The entire world is run on code.
[–]machinerer0 points1 point2 points 9 years ago (0 children) | Copy Link
Not all of it, as that would be stretching things a bit. Not everything is computerized these days. Just a lot of it. There is quite a bit of old mechanical controls still out there in industrial applications. Woodward speed governors for steam turbines, for example.
[–]naruto_kurosaki 0 points1 point2 points 9 years ago (0 children) | Copy Link
Once you get into it and start understand the languages sintaksis, construction, operators and so on, it becomes something very beautiful and calming to look at. Its the language of logic, the very essence of predictability and stability, something a lot of men are missing in their lives. It makes you feel as if your in control and the whole world makes sense, even if its just a temporary delusion, Its magical. At least thats how i feel.
[–]raisins3142 0 points1 point2 points 9 years ago (0 children) | Copy Link
You have to be able to visualize what the statements are doing and trace it in your mind. Once you can see it in the abstract, it can be beautiful.
[–]ColdStoryBro0 points1 point2 points 9 years ago (0 children) | Copy Link
If you find a better way to manipulate computer logic and memory than they already have, you'll be a billionaire overnight.
[–]neutron_0 points1 point2 points 9 years ago (0 children) | Copy Link
0x5F3759DF is a genius.
0x5F3759DF
[–]AuthorizedAssistant0 points1 point2 points 9 years ago (0 children) | Copy Link
Come on, this is obviously a joke.
Right???
[–]Eyes_Of_The_Dragon0 points1 point2 points 9 years ago (0 children) | Copy Link
The guy on the left cared about the deadline, whereas the girl on the right cared about appearing smart and "random".
[–]desertfox160 points1 point2 points 9 years ago (0 children) | Copy Link
Fackin hell I only did gcse computing and know next to fuck all about most programming but what kind of cancer is that on the right, why does the second if statement have two things saying the same thing, also what if a and b are equal.
© TheRedArchive 2026. All rights reserved.created by /u/dream-hunter
[–]theWillpowerEngine 33 points34 points35 points (3 children) | Copy Link
[–]Werkzeug8112 points13 points14 points (0 children) | Copy Link
[–]80173512 points13 points14 points (0 children) | Copy Link
[–]naruto_kurosaki 8 points9 points10 points (0 children) | Copy Link
[–]Essara27 points28 points29 points (13 children) | Copy Link
[–]dogwoodcat11 points12 points13 points (3 children) | Copy Link
[–]TheRiseAndFall2 points3 points4 points (0 children) | Copy Link
[–]Essara0 points1 point2 points (0 children) | Copy Link
[–]mtear0 points1 point2 points (0 children) | Copy Link
[–]JorixKienu5 points6 points7 points (4 children) | Copy Link
[+][deleted] (1 child) | Copy Link
[deleted]
[–]JorixKienu1 point2 points3 points (0 children) | Copy Link
[–]compilerhistorylesso0 points1 point2 points (1 child) | Copy Link
[–]JorixKienu0 points1 point2 points (0 children) | Copy Link
[–]xeeleesequence2 points3 points4 points (3 children) | Copy Link
[–]Essara1 point2 points3 points (0 children) | Copy Link
[–]mtear0 points1 point2 points (1 child) | Copy Link
[–]xeeleesequence0 points1 point2 points (0 children) | Copy Link
[–]Swordeater24 points25 points26 points (8 children) | Copy Link
[–][deleted] 6 points7 points8 points (4 children) | Copy Link
[–]Swordeater17 points18 points19 points (3 children) | Copy Link
[–][deleted] 1 point2 points3 points (2 children) | Copy Link
[–]Swordeater8 points9 points10 points (1 child) | Copy Link
[–][deleted] 1 point2 points3 points (0 children) | Copy Link
[–]Asbestasio5 points6 points7 points (0 children) | Copy Link
[–]rp_whybother2 points3 points4 points (0 children) | Copy Link
[–]FreeManIsFrank1 point2 points3 points (0 children) | Copy Link
[–]feedmecarrots20 points21 points22 points (0 children) | Copy Link
[–]derp_derpington17 points18 points19 points (3 children) | Copy Link
[+][deleted] [recovered] (2 children) | Copy Link
They have, and look how much more unstable and bug infested software has gotten. They blame it on increased complexity and so forth, but we know the truth.
[–]8017359 points10 points11 points (1 child) | Copy Link
[–]frjoethesecond4 points5 points6 points (0 children) | Copy Link
[–]slappydapussy18 points19 points20 points (0 children) | Copy Link
[–]TheExSexOffender 12 points13 points14 points (2 children) | Copy Link
[–]squeezeonein1 point2 points3 points (1 child) | Copy Link
[–]TheExSexOffender 0 points1 point2 points (0 children) | Copy Link
[–]phantommaster199910 points11 points12 points (2 children) | Copy Link
[–]CheesyFedora 2 points3 points4 points (0 children) | Copy Link
[–]erydan2 points3 points4 points (0 children) | Copy Link
[–]MoronicBobbin4 points5 points6 points (3 children) | Copy Link
[–]could-of-bot14 points15 points16 points (2 children) | Copy Link
[–]GuidoBandito1 point2 points3 points (1 child) | Copy Link
[–]eRoNNN0 points1 point2 points (0 children) | Copy Link
[–][deleted] 3 points4 points5 points (5 children) | Copy Link
[–]GhillieGoat 6 points7 points8 points (3 children) | Copy Link
[–]GuidoBandito1 point2 points3 points (0 children) | Copy Link
[+][deleted] (1 child) | Copy Link
[deleted]
[–][deleted] 0 points1 point2 points (0 children) | Copy Link
[–]the-capitan 0 points1 point2 points (0 children) | Copy Link
[–]Ximkai3 points4 points5 points (0 children) | Copy Link
[–]I5zq3iuyfI2 points3 points4 points (0 children) | Copy Link
[–]linkwaker102 points3 points4 points (2 children) | Copy Link
[–]leithz6 1 point2 points3 points (0 children) | Copy Link
[–]GuidoBandito1 point2 points3 points (0 children) | Copy Link
[–]randomroxks2 points3 points4 points (0 children) | Copy Link
[–]DarkLord0chinChin2 points3 points4 points (0 children) | Copy Link
[–]weaklion1 point2 points3 points (0 children) | Copy Link
[–]Train_Guy91 1 point2 points3 points (2 children) | Copy Link
[–]poloppoyop0 points1 point2 points (0 children) | Copy Link
[–]cdn_herbivore_man1 point2 points3 points (0 children) | Copy Link
[–]mgtow4lifefellas1 point2 points3 points (0 children) | Copy Link
[–]SnapshillBot0 points1 point2 points (0 children) | Copy Link
[–]Wraith29 0 points1 point2 points (5 children) | Copy Link
[–]PinHunter658 points9 points10 points (1 child) | Copy Link
[–]machinerer0 points1 point2 points (0 children) | Copy Link
[–]naruto_kurosaki 0 points1 point2 points (0 children) | Copy Link
[–]raisins3142 0 points1 point2 points (0 children) | Copy Link
[–]ColdStoryBro0 points1 point2 points (0 children) | Copy Link
[–]neutron_0 points1 point2 points (0 children) | Copy Link
[–]AuthorizedAssistant0 points1 point2 points (0 children) | Copy Link
[–]Eyes_Of_The_Dragon0 points1 point2 points (0 children) | Copy Link
[–]desertfox160 points1 point2 points (0 children) | Copy Link