Canned spaghetti...Good Lord! Ugh. I know, no water or cooking required but still, it isn't so hard to make the real thing and you've got so much more variety in what you can do with it.
Beware that cans can quickly rust on a boat, and labels fall off and clog the bilge pump. Using a magic marker to label the cans on the end is a good idea (if you can't recognize them other ways) and if you are planning to store cans long term, remember to rotate them and check for rust, or else dip them in wax to protect them. (Plain white canning wax.)
Check out the articles here and on other sailing web sites, you'll find plenty of advice on specifics.