Maila sida

Blogg för freba

Legacy code part 2, Making it thread safe

I’d like to start easy and say that threading is really hard. It adds a dimension to a program that is just hard to keep in mind all the time. For that is exactly what you have to do, keep it in the back of your head, no mater how small the code change is. Threads are like people travelling on subways. The subways are the shared memory that we all want to use. During rush hours thousands of deadlocks occur from people blocking each other when trying to get on and off.

Legacy code part 1, where I begin

A few times during my time as a consultant I’ve been asked to help clean up code or re-architect code that have become hard to maintain. This has given me some insight of how to deal with legacy code and where to begin the untangling of complex code. I’ll give, what I think are good practices as well as some good tips for not creating complex code in the first place.

AAA IT&Telekom-företagen

Ett digitalt brev

Ring eller Faxa

Tel: 013-13 34 50
Fax: 013-13 34 51
info@attentec.se

Följ oss på

LinkedIn
Facebook
Twitter

Här finns vi

Linköping: Teknikringen 4C, 583 30 Linköping  [karta]
Stockholm: Vasagatan 36, 5 tr, 111 20 Stockholm  [karta]