Longitudinally-oriented cooperating ribs and grooves on mating lateral surfaces of a mainly longitudinal connection