Item creation through template code issue

as i am using more than 10 attribute in my item template so my item code generated is very long there is any way to make that code short or make that as not depend on the attribute. Please suggest me any validation.