I personally try to distance my self-image from my job, I see it as a way to pay my bills and save up some money, but I try so that it does not define me, and I definitely do not try to build up friendships there, I guess I have enough friends everywhere else to have the need to socialize with people I barely share things in common.
Moreover, there are so many people destroying themselves mentally and physically with over-work because they believe that they have to love work (as they would a hobby or something similar), but I think that does not have to be the case, I actually believe that there are a lot of activities that CANNOT be monetize which are also quite enjoyable, around which I can center my life, e. g. playing tennis, drawing, etc.
Don't get me wrong, I actually love to code. I love my side projects. I hate to be told what and how to code at "normal" work.