The whole point is that you are taught the coding practice of using... using statements whenever using an object which implements IDisposible.Isn't that kinda what I'm saying? You wouldn't have to know about 'using' as a best practice if garbage collection's scope cleaned up this particular problem for you.
I guess I'm just confused as to why you wouldn't want to know the scope level of the language you're using. I went into this job assuming Python's scope level was the same as Java's. It isn't. After that was clarified, it certainly made understanding existing code much easier.
No, it was more likeDo you really fight with memory that much that it matters?
Aka a logical delete. Which is pretty standard practice in many systems since its quicker to just tombstone something then delete it for real later.Deleting does not deletes the data, is simply removes the record from the fat table, the data is still there.
If you have multiple levels of using you are probably writing your methods incorrectly and in an untestable manner.I'll let you know if it's some idisposable that wants to be in using blocks. I hate when I run into C# code that has code embedded in multiple levels of using.
Not sure if you're recommending the top recommendation there:If you have multiple levels of using you are probably writing your methods incorrectly and in an untestable manner.
BTW:.net - Nested using statements in C# - Stack Overflow
How is that memory leak treating you?I like managing my own memory like an old man yells at clouds.
Not bothering me in the least! At this point I think you've spent more time on it than I have! It's most likely some dumb shit I'm doing.What about,
How is that memory leak treating you?
Yep, has to be the same type. I'm not sure about the one I linked. I don't like how it looks and it likely works the same way as this.Not bothering me in the least! At this point I think you've spent more time on it than I have! It's most likely some dumb shit I'm doing.
I think that type of using only works if all the elements are the same.
It's not my fault you have no memory for it.At this point I think you've spent more time on it than I have!