What is the role of your advisor and other lab members in your research work?
I don't think there is a universal answer. Different advisers have different styles.  I look over the code that my students write and offer suggestions on how to improve it (and sometimes do it myself); my students like that. My adviser did not have any significant programming skills despite being in computational mathematics, and was mostly hands-off -- but I think he was an excellent adviser anyway.
In the end, different students need different advising styles, and one of the things I have learned advising 8 graduate students so far is this: what works with one student does not work for another one. I suspect one could also turn this around and say from the perspective of the student: The style of one professor may work for them, whereas the style of another may not.