Beams are usefull to support floors and roofs.
They have to be placed betweem two walls, platforms or grounds.
Beams are from 5 to 10 tiles long because in a building you can build two floors without any wall support..