so far the easiest explanation of stack and heap ive seen
@yasu3d11 ай бұрын
I've been programming with c# for 2-ish years. I had a solid understanding of certain types being passed by reference instead of value, but never learned what the Heap or Stack *actually* were. This video finally made it click in my head. I'm glad I wasn't missing out on much and just learned some new names for stuff I already kinda knew :]
@jams_lab2 ай бұрын
dude, mind blowing explanation, the examples just smoked the whole scene...awesome, thank you for such easy explantion.
@Sashkobg975 ай бұрын
Finally an explanations for a dummies like me! Thanks you for this, huge upvote!
@kipchickensout3 жыл бұрын
For anyone watching: You can pass value types by reference, by simply prefixing the type in the parameters with a "ref" keyword. Also look up the "out" keyword
@unrealdevop4 жыл бұрын
This is amazing, great job man. This taught me something very valuable that I was completely unaware of before. Not sure why this wasn't properly explained in the books I read.
@gregorio87 Жыл бұрын
The best explanation I've seen... I remember being a bit confused about this behavior when first learning JavaScript and this nails it in a very clear way. Great job
@MsYogeshPandey2 ай бұрын
Simplest yet best explanation, Thanks :)
@DylanWRose4 жыл бұрын
Preparing for the MTA Software Development Fundamentals exam to meet entry requirements for the WGU Data Analytics degree program. This is something that pops up on the test and has always confused me. The way you've explained it is extremely clear. Thank you.
@TG47GRG3 жыл бұрын
this is awesome. You made the concept sound very simple and easy to understand. Thank You!
@prasadmadushan3 жыл бұрын
Clear explanation with visual Diagram. love it.
@dineshkarn32753 жыл бұрын
Very best explanation with practical example. Thanks a lot . Waiting for your next video
@persiansayed Жыл бұрын
Great demonstration and explanation. Thanks 👍
@rahasyagatha0072 жыл бұрын
Clear explanation. Thank you for the video!!
@burreifort3 жыл бұрын
4:10 No, you didn't change the value of score2
@macoson Жыл бұрын
Yes, this got me to laugh as well :D
@Tanveer0482 жыл бұрын
Thanks for the Sharing of your knowledge
@yess.6558 Жыл бұрын
Great video! Thank you!
@shamikaredkar8374 жыл бұрын
why did i understand this better than what my uni prof taught me? and why am I paying thousands of dollars to the uni only to learn stuff off youtube?
@vanyang53813 жыл бұрын
dud I feel exactly the same lol
@omarmaciasmeza45783 ай бұрын
amazing. Thank you.
@PatilSandip321 Жыл бұрын
Nice one
@developersfield90186 жыл бұрын
nice and easy to understand explanation...
@moherna33233 жыл бұрын
You're such a great educator
@AnasJayyusi2 жыл бұрын
thank you that was amazing explain
@spark-games-uk2 жыл бұрын
Super! Subscribed! ps. would you kindly group your videos by programming language into seperate PlayLists for convinence? Thanks a million for the great contents!
@gregorynovikov14503 жыл бұрын
This was interesting, Thank-You
@محمدحماده-ج8ت6ه Жыл бұрын
excellent
@mohamedshaban51702 жыл бұрын
Thank you!!
@wwg6814 жыл бұрын
Can we use struct all the time?
@TextBasedRPG4 жыл бұрын
Hey have you found the answer to your question?
@wwg6814 жыл бұрын
@@TextBasedRPG Nope :(
@alissonreinaldosilva11194 жыл бұрын
@@wwg681 it's not like Struct is an alternative or replacement for Classes, they have different purposes. Depending on how simple your program is, then yeah you can use only struct, nothing will enforce you to use classes (apart from Program class e.g in a console), but depending on your needs it will just make your task harder for no good reason.
@BlackSaintNiks2 жыл бұрын
Great Learning Video!
@gabrielyea5 жыл бұрын
In c# by default everything passes by value, classes pass their reference as a value. That is my understanding, or I am wrong?
@Atezian3 жыл бұрын
Is this useful to someones that doesnt know what the stack and the heap are?
@edward4813 жыл бұрын
Yes.
@mohokhachai Жыл бұрын
Finally some one
@lylewarren43916 ай бұрын
king shit, you are a legend.
@at3o2 жыл бұрын
💯
@blackbarry455 жыл бұрын
thanks you so much
@aliabusaleh40393 жыл бұрын
thanks man great job
@ozanbarsakdogdu83604 жыл бұрын
in the end of the video you say "int s". Was it "int score"
@RageGames_ Жыл бұрын
Nice
@hhcdghjjgsdrt2352 жыл бұрын
best example
@cicher4 жыл бұрын
Good explanation, but it is not really about "Heap and Stack", the title should be *"Value and Reference types"*
@Tanveer0482 жыл бұрын
This super 👌
@metteby6 жыл бұрын
Good explanation. Please lower keyboard noise
@mohokhachai Жыл бұрын
This is it
@mujmoh7471 Жыл бұрын
أسطورة
@BerikAssylbekov3 жыл бұрын
It's wrong. Reference type parameters are passed by value. You can test yourself by setting r = null; The pointer on "r" is removed, but "report" is still has pointer.
@WiseWeeabo4 жыл бұрын
would be useful if you could actually see the text you're writing, how did you mess it up so badly?