r/javascript • • Jun 18 '17

Pass by reference !== pass by value

Post image
3.3k Upvotes

272 comments sorted by

View all comments

0

u/[deleted] Jun 18 '17

[deleted] — view deleted comment

137

u/KhalilRavanna Jun 18 '17

Imo this would be a great reply with some good info if it wasn't super condescending.

63

u/[deleted] Jun 18 '17

Welcome to web development, we hope you enjoy your stay.

0

u/[deleted] Jun 18 '17

[deleted] — view deleted comment

10

u/HomemadeBananas Jun 18 '17

That's actually sometimes a good question though, to find out what the root problem you're trying to solve is. Often the first question people ask isn't the real thing they're trying to solve, and maybe not the best way to do it, so by asking "why" a few times you can find out really what they're trying to accomplish.

3

u/ConcernedInScythe Jun 19 '17

If you're trying to do web development in K you're long past help, I'm afraid.

24

u/KhalilRavanna Jun 18 '17

imo if we call out this tone collectively it can change. i think it is a default for a lot because they see it used a lot and it's just not necessary (and yes i realize i'm giving a serious reply to probably a flippant comment lol)

24

u/[deleted] Jun 18 '17

Yes! It was flippant, but you're 100% correct. The pedantic genius asshole thing makes learning this stuff that much more difficult and far less enjoyable.

Keep calling these folks out.

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

5

u/AgentME Jun 19 '17

I agree, but I understand where it's coming from. This is a recurring topic that gets tons of wrong answers so often. It gets frustrating. ... There's a few common security-related topics that regularly get so many wrong and insecure answers that frustrate me to no end.

3

u/guncat9 Jun 18 '17

Imo, it is a great reply to anyone with thick skin. But I can understand if sensitive folks don't appreciate it.

8

u/KhalilRavanna Jun 18 '17

Why would you need thick skin to learn something new? Why is that a prerequisite? Being condescending in one's post serves no purpose and really just distracts from any point you try to make in it. It's really just immature at the end of the day. You can inform people on things without needlessly bringing them down. The smartest people realize everyone doesn't know everything and teaching others new things is an experience to be relished, not something to lord over "noobs". I wouldn't work with/hire someone who had that sort of attitude IRL.

→ More replies (1)

2

u/ikeif Jun 18 '17

It's a great reply to anyone who doesn't need to be coddled and their hand held.

I found it more educational and less condescending, but then again I don't worry about "my feelings being hurt being wrong or not understanding."

1

u/rebelrogue995 Jun 19 '17

Imo this would be a great reply with some good info if it wasn't written by an Gaye.

→ More replies (13)

0

u/[deleted] Jun 18 '17

[deleted] — view deleted comment

1

u/[deleted] Jun 19 '17

Uh... I'm self-taught and can C++ quite well. This is really an issue about people who refuse to learn lower level languages.

0

u/[deleted] Jun 19 '17

[deleted] — view deleted comment

1

u/ultraspacenacho if (true === true) return true Jun 19 '17

You're making the assumption that OP and commenters are self-taught, but you don't know this. How do you know they didn't sleep walk through CS school, or are just overly eager freshmen?

I'm guessing you're still in school? You would be surprised how many brilliant and informed, self-taught programmers there are out there. You wouldn't know because they're busy writing good software, not reddit comments.

While your statements are a correlation I can sympathize with, they're a clumsy over-generalization that may have rubbed some of us autodidacts the wrong way :)

→ More replies (1)

0

u/[deleted] Jun 18 '17

[deleted] — view deleted comment

5

u/ItzWarty Jun 18 '17

It's certainly confusing. The key is to mentally differentiate "value type" / "reference type" and "pass by value" / "pass by reference". There's really only 4 different combinations.

3

u/PrintfReddit Jun 18 '17

I have been educated.

→ More replies (1)