Note that there are some explanatory texts on larger screens.

plurals
  1. USPatrick Karcher
    primarykey
    data
    text
    plurals
    1. COYes, that is the advantage that constraints give you. (1) As with any good practice, evaluate how important it is in the particular situation. (2) Balance the ROI of doing this good practice compared to the others, with limited time. (3) Consider whether the good practice in question, despite any advantages it brings, can be a **crutch** that allows the developers to think they can **avoid** other good practices, which might actually be more important. In multiple instances I've seen good DB design/nomenclature take 2nd place to constraints. Disaster. The reverse, usually not as bad.
      singulars
    2. CO@Henk: Dispose() is not called by GC, right? Now, making the GC deal with a finalizer method has overhead (and can make object stay around longer), but might it not be worth it to make sure an important Dispose method gets called? To me it seems like a judgement call. Let's say an object BigShot is long-lived anyway, and has referenced to many LittleShot (implementing IDisposable) objects whose unmanaged resources are known to really need clean-up. Shouldn't we weigh creating a BigShot finalizer against making sure all those resources are cleaned up? It seems like a judgement call to me.
      singulars
    3. COI think sargable is the next step. We don't know enough about the conditions to suggest an optimal strategy, or even if the scale warrants any such effort.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload