iOS – Memory Management

The Big Nerd Ranch Guide book takes all of chapter three to discuss memory management in iOS.

The chapter, while I read all of it, was over my head. I certainly understand the point of memory management — but not from reading this text. Memory management in an application has pretty simple ramifications: use more memory than the space allows for and you’re over capacity and you crash. Just like shoving a bunch of people into a small room.

Reading this text to bring me to a point of understanding about how one could make life easier on new programmers and designers-gone-rogue: explain what all the doo dads are first.

Think about it this way: if you wanted to learn English for the first time, wouldn’t it be handy to know that periods always go at the end of sentences? That commas are used to separate clauses and are generally placed where you’d take a breath if you were speaking what you were writing. Why doesn’t someone explain that to people from the get-go with programming languages. Everyone knows that the majority of mistakes are made with syntax, mostly because no one knows where the frack they go or what they do. What does a square bracket ([) do that a curly bracket ({)doesn’t? How does one know when to use a two brackets instead of just one set?

Knowing HTML, one could explain some things like this:

Use a “<” when you open a tag and “/>” when you close it. Everything is encapsulated in an opening and closing bracket.

Is that not helpful or is it just me?

Leave a Reply

Your email address will not be published.