Lucky

joined 2 years ago
[–] Lucky@programming.dev 12 points 2 years ago

They didn't say anything about "forced simplicity". Not everything is a slippery slope

[–] Lucky@programming.dev 2 points 2 years ago (1 children)

In my opinion, pre-designing your code is generally a good thing. Hours of planning saves weeks of coding

[–] Lucky@programming.dev 12 points 2 years ago

Try deleting all obj and bin folders in the repo and restart VS. Sometimes it gets stuck on an old project reference and can't clear out the cached files

[–] Lucky@programming.dev 3 points 2 years ago (3 children)

To clarify for OP, the only time you need this at all is when the object has a reference to something that the garbage collector won't dispose of naturally. Things like an open file stream, db connection, etc.

You won't need to dispose of an object you created if it just has properties and methods

[–] Lucky@programming.dev 13 points 2 years ago

The second comment explains a lot. There is a build script that generated the binary, which they are using to reduce the overall build time. They mention this resulting from a limitation on cargo and this being a workaround

It seems like you could build it all from scratch if needed with a bit of effort

[–] Lucky@programming.dev 7 points 2 years ago

Why does the way you present the data change how the memory is managed? I think you are mixing data storage with display logic.

view more: ‹ prev next ›