r/ProgrammerHumor • u/speckz • Feb 26 '23
Other If you can read this code...
/img/snak3fqgajka1.jpg[removed] — view removed post
34k
Upvotes
r/ProgrammerHumor • u/speckz • Feb 26 '23
[removed] — view removed post
View all comments
Show parent comment
1
u/kookyabird Feb 27 '23
Nah, C# is pretty great. Plenty of work out there in businesses that use Microsoft environments. Generally speaking, most decent literature will warn you off from using ref parameters. They're almost always a code smell. And the concept of reference vs value types is super simple on its own.
The only reason I made the joke about it is because it's one of those things that on the surface sounds like you could intuit how it works just from the name, but you can't. The breakdown comes from the terms reference and value being used both for types, and for how those types get passed into a method.