Hardy little yellow flowers

I am always amazed when I see flowers right on the coast like these at Schoenies.  I know they are hardy but how they survive growing in sand and bad soil and getting battered by the salty sea winds all the time and still flower like this is above me.