You can opt to first boil the whole potatoes with the skin then peel and cut them afterwards. The advantage is that the potatoes won't get soggy. However, I always cook the potatoes peeled and cut. I just make sure to not overcook them and to then drain the water properly and leave them to cool for enough time in a colander to get rid of excess moisture.