I cant speak for NASA, but in general if you are writing extremely safety critical code you simply don't use dynamically sized things. In addition to safety, the dynamically sized objects cause issues for the real-time constraints on these system as well.
Then again the character was intended to be in high school. I think the sloppy writing was very intentional. You can see her style shifts a few times throughout the story.