I have an opening in my schedule and I kind of want to take year book but when I go to college I wanna major in chemical engineering would it be better to take coding?
Take the class that is interesting to you. You are likely to learn more and get better grades in that class. Yearbook will give you a lot of skills (especially all that teamwork, detail, and deadline stuff) that you will be able to apply to all sorts of future endeavors.