Depending on the position, a prospective employer may not care if you have either. Someone with a 2-year degree or diploma in related skills can do plenty of the programming tasks out there, especially if all we're talking about is gluing together frameworks and the like.