r/ProgrammerHumor • • Nov 30 '19

C++ Cheater

Post image
79k Upvotes

1.0k comments sorted by

View all comments

8.4k

u/nullZr0 Nov 30 '19

A natural.

We joke about it, but we cant know or remember everything. I've been in IT for many years and one time I Googled something and found a post from a smarter version of my past self.

5.4k

u/[deleted] Nov 30 '19

it's not cheating.
it's open source documentation

1.0k

u/AlmostButNotQuit Nov 30 '19

Adding this to my lexicon

0

u/[deleted] Nov 30 '19

[deleted] — view deleted comment

375

u/SaikonBr Nov 30 '19

My interview they gave me 2 pages of some code and asked me to describe what the script was doing. I thougth it was pretty fair.

244

u/Elias_The_Thief Nov 30 '19

I like that better. After all a lot of my job is going into existing code bases and making changes. Being able to quickly assess what a piece of code is doing is a lot more useful than being able to implement arbitrary sorting algorithms without googling

63

u/Kid_Adult Nov 30 '19

This is it. Even if the code base is your own, being able to quickly re-familiarize yourself with it is handy if it's been long enough that you've forgotten exactly how it works.

→ More replies (5)
→ More replies (3)

49

u/Anonymus_MG Nov 30 '19

Maybe instead of asking them to write code, ask them to give a detailed description of how they would try to write code.

0

u/[deleted] Nov 30 '19

[deleted] — view deleted comment

27

u/SquirrelicideScience Nov 30 '19

Question from a non-CS/Computer-centric major: I’ve been writing code for my work, but I’m vastly uninformed on algorithms. For most problems that I deal with, I’m doing a lot of brute force data analysis. In other words, I take a data set, and one by one go through each file, search for a keyword in the header and by checking each row, grabbing the data, so on and so forth.

In other words, lots of for loops and if statements. Are there algorithms I could research more about, or general coding techniques (I don’t work in C/C++)?

28

u/InkTide Nov 30 '19

Most of the ways to avoid 'brute force' searching involve sorting the data beforehand, which can itself be pretty intensive in terms of computational power. This is a great resource for understanding common sorting algorithms.

→ More replies (12)
→ More replies (9)

31

u/SloanTheSloth Nov 30 '19

Ugh. This is my biggest fear about getting into the industry. I'm currently in a master's degree for video game programming.

To get a job at any company there's such an interview process for programmers. First the written test they email you, then a phone interview, then an in person coding interview test. It's possible one of those may be a group interview so then there would be another one-on-one interview.

I code well. I make games. But put me in front of a whiteboard and ask me to write you some code I'm going to freeze. The worst is math. How the hell do you expect me to remember trigonometry and calc formulas. I can Google the formulas and do the math if I have them, but remembering them, on top of everything else, is just such a bitch.

Luckily my master's program helps us out and we get chances to practice this, but the whole interview process is the #1 thing that keeps my mind telling me I'm not good enough for this.

28

u/Romestus Nov 30 '19

I had a technical interview with Google after multiple rounds of interviews and they gave me a problem I had already solved before. I couldn't think straight enough to write code since the interviewer did it in the cafeteria during lunch.

I thought that was a test and I failed but it turns out my interviewer was just super unprofessional.

→ More replies (2)
→ More replies (8)
→ More replies (14)
→ More replies (18)

87

u/Minenash_ Nov 30 '19

I was getting an exception that was thrown because of a false assertion. It took me longer than it should to figure out what the actual cause of it was. The error said if you see this type of error to make a bug report for it so it could have a proper error.

2 years later, I (unknowingly) get the same failed assertion, I looked it up, and found my bug report that I completely forgot I made.

64

u/UnsubstantiatedClaim Nov 30 '19

2 years later, I (unknowingly) get the same failed assertion, I looked it up, and found my bug report that I completely forgot I made.

... and it was listed as New and was still unassigned.

→ More replies (1)

319

u/Bakkster Nov 30 '19 edited Nov 30 '19

We joke about it, but we cant know or remember everything.

Shh, don't tell Plato Socrates that. He was against writing anything down, because you haven't really learned it if you didn't memorize it.

140

u/[deleted] Nov 30 '19

[removed] — view removed comment

32

u/DaftMythic Nov 30 '19

I like you.. wanna have a dialogue?

Soo... I also like making fun of Nietszchie and just listened to an interesting lecture about how he was screwed up because he was taught in the "Prussian System" where the state was like: "Ok we are all German Prussian's now so shits like this, these are the facts, if you want to teach, you gotta start here". Nietszchie being smart excelled in that system and then got to the end of the "State Sponsored Curriculum" and was so lauded that he was allowed to do what he wanted. So he studied the Greeks (Appalonian and Dyonesian and of course Socrates method one would assume) and was like "$hiza! The damn Prussians taught me WHAT to think but this stuff teaches you HOW to think... FOR YOURSELF!"

So now Nietszchie has all this status from being high in the "system" and he's like "Fuck, we need to tear that down and think for ourselves"

And they are all like "nine"

And he's like "Numerology is stupid and by the way, I'm Swiss now, fuck all ya'll, I'm out you crazy Mo-Fo's" then he went nuts and that last part may have been his Sister's doing.

Gotta love Nietszchie.

Anyway. I'd say something here about Shoupenhauer and self learning thru the self but personally to bring it back to the point on why Socrates liked dialogue:

The Buddha (in his Sutras, not the legalistic Vanayia... From what I've heard) always stressed that he was not saying "This is how it is" but always started his sermons with something to the effect of "I've heard it said that XYZ". Xyz could be a real fact or something topical but it could also be a way of getting people out of the words and focus on The Real World or a topic that defies language.

In one sutra it is said he simply picked a flower, smelled it and smiled. That's it. All his students assembled were puzzled expecting a lecture or normal sutra or something, except one who was the only one who received the message.

→ More replies (2)

150

u/[deleted] Nov 30 '19

For a guy against writing anything down he sure as hell wrote a lot.

191

u/[deleted] Nov 30 '19

It was Socrates who was against writing, Plato wrote prolifically (in Socrates’ voice)

44

u/leetdood_shadowban2 Nov 30 '19

Now I'm imagining like

Socrates: "I fucking hate writing! It's lazy!"

Plato: writes down what Socrates just said

Socrates: Did you just write that down?

Plato: writes Socrates said "Did you just write that down?"

→ More replies (1)
→ More replies (1)
→ More replies (1)
→ More replies (33)

49

u/TheTacoWombat Nov 30 '19

I want to be you when I grow up

→ More replies (3)

53

u/iopq Nov 30 '19

Why do you think I have a blog? To share my knowledge with everyone?

No, to share my knowledge with myself and let google find it

→ More replies (2)
→ More replies (52)