56 karma · joined Feb 20, 2019 (7y ago) · 41 submissions
comment 3y ago · link · parent
comment 4y ago · link · parent
a lot of time I feel like the diminishing return of a planning is pretty steep for many situations but it's hard to tell how much time we should spend for the planning beforehand. (this is a planning for planning and maybe this itself is over-planning lol).
comment 4y ago · link · parent
in addition, if your system requires precise control over when and when not to use CPU, like resource-intensive gaming, browsers, OS, then GC may not be a good choice.
lastly, if you are using GPU via graphics API, I do not know any API that can garbage collect GPU memory but RC can naturally extend memory cleanup code to cleanup GPU memory as well quite easily.
comment 5y ago · link · parent
comment 5y ago · link · parent
I guess what I wanted to say is that, in the long run, compile-time checks may become runtime checks, especially something like enum values where at the beginning, enums are fine choice but soon you will find yourself where you have to store that to a DB etc.
Problem is, moving from compile-time check to runtime check isn't that straightforward in a lot of cases.
comment 5y ago · link · parent
later in a project where you know for sure something can be known at compile time, of course I love to check them at compile time.
comment 5y ago · link · parent
I don't do that any more. simply because I'm very lazy and also in a lot of cases, those types that I wrote will be replaced by more dynamic representation (e.g. strings) at some point.
comment 5y ago · link · parent
comment 5y ago · link · parent
This folder can only contain JPEG and PNG files, this folder can contain only A or B ....etc.
useful in some cases but I don't think this is not what you want as a default.
comment 5y ago · link · parent