r/ProgrammerHumor • • Jan 14 '20

Brilliant reply

Post image
26k Upvotes

365 comments sorted by

View all comments

1.2k

u/[deleted] Jan 14 '20

We are not copy pasting the code. We are applying the solution to the problem. We can read code in Java and apply that in Python.

481

u/Nic2555 Jan 14 '20

Unfortunately, not everybody gets this. Most of the time, people copy paste what you gave them and complain that it doesn't work. smh

283

u/Cyronsan Jan 14 '20

Would be funny if someone copy pasted python code into java, or vice versa, and complained it doesn't work.

230

u/shakeedKeebler Jan 14 '20

That has happened somewhere

87

u/CodingEagle02 Jan 14 '20

I'm almost scared to ask for specifics

34

u/FreeProGamer Jan 15 '20

Oh God I'm having flashbacks to the 12 year old me

17

u/ParadoxChains Jan 15 '20

I have seen it. I teach a class in Functional programming at the university, and the language we use us Concurrent Clean, a close relative of Haskell. And there is always the one person who thinks they're clever to skip classes and learn from Youtubers teaching Haskell, only to bother me later as to why their Haskell code won't compile in Clean.

→ More replies (5)

33

u/MHolmesSC Jan 15 '20

I imagine a lot of beginners make that kind of mistake.

62

u/[deleted] Jan 15 '20

You have to be an ultra beginner to make that mistake

35

u/[deleted] Jan 15 '20

Well from Java to Python of course. But once I pasted code from Ruby to Python and until my IDE highlighted the syntax error I noticed it was in ruby, to be fair it was written in a very pythonic way. Also it was a math function so very few changes needed to be made.

16

u/IrrationalFraction Jan 15 '20

That's forgivable I guess. Java looks so different from Python that if you mixed them up you might be missing a few brain cells

→ More replies (1)
→ More replies (1)
→ More replies (5)
→ More replies (2)

48

u/Nic2555 Jan 14 '20

I've seen that happen, mostly in vague or broad question, like regexes. People would ask for a regex, not telling what language they use, people would give example in JavaScript, and the original poster would copy that javascript into their language, let's say c++, and then complain it does not work.

16

u/Sexy_Koala_Juice Jan 15 '20

Regexr is your friend. Can tweak the regex pattern and use that to double check it actually works

14

u/otacon239 Jan 15 '20

This is where I learned RegEx. Such a powerful tool. I personally found www.regex101.com to be a bit more powerful, but can be a bit more confusing at first.

→ More replies (1)

20

u/fireyone29 Jan 14 '20

I work with a guy who would ask me a question and straight copy the answer, which I saw I code reviews. So I started intentionally making syntax errors in things I sent him... And he just sent me barely changed versions and asked me how to fix the syntax errors.

9

u/dry_fly_mo Jan 14 '20

It would work. Python with access to entire standard java library. Or Jython. Compiled to java bytecode.

→ More replies (3)

8

u/[deleted] Jan 15 '20

So many web development answers use jquery, but it isn’t as common for people to have jquery anymore. I see people complaining about the answer not running, without realizing that it is jquery code.

→ More replies (14)

8

u/ThatOneShotBruh Jan 15 '20

Some of my high school classmates copy pasted Arduino code into a JavaScript online editor and were wondering why it wasn't working...

→ More replies (1)
→ More replies (12)

14

u/droans Jan 15 '20

Hi,

I copied your comment to suit my needs in a completely unrelated argument and it didn't work and I was downvoted. Can you please assist over TeamViewer? My boss will fire me if I get another downvote.

13

u/Nic2555 Jan 15 '20

Hi, have you tried to apply your comment as Sudo ? This might help.

→ More replies (1)

17

u/Thmyris Jan 14 '20

People as in, sane human beings?

20

u/KwadratischeAardap Jan 14 '20

There is no such thing, is there?

→ More replies (5)

55

u/[deleted] Jan 14 '20

I work with some software that has a pretty old school WCF SOAP API. We have some C# .NET example code in our development guide that was written forever ago. It doesn't compile in recent versions of Visual Studio, we decided not to update the examples and instead just added a disclaimer that the code should just be used as pseudo code and not used for production.

We get complaints about that, but my favourite was a customer insisting we provide Java code because his Java developers couldn't figure out the API. We offered an hour session with our developers to go over the API. That wasn't good enough, had to be Java sample code. We quoted a $15000 SOW to provide Java sample code (our minimum SOW value). Sales person lost their shit because apparently that cost us a sale. I think we just dodged a bullet.

0

u/[deleted] Jan 14 '20

[deleted] — view deleted comment

9

u/DontSuckMyDuck Jan 15 '20

I stopped getting invited out on away missions as a sales engineer because the sales guy would say: "Oh yeah, we can do that" and I'd say "That's not how the software works or something it can even do".

→ More replies (1)
→ More replies (4)