I found that we can lock the transformation by pressing N and select the lock icon to lock the transformation and I think ...

I found that we can lock the transformation by pressing N and select the lock icon to lock the transformation and I think that it is easier than using the constraint except for limiting the transformation. Is it better to use the constrain over than transformation lock (press N > transformation)?