I have been on and off again dabbing in programming since taking a app development course a couple of years ago. Since then i am just now starting to scratch the surface in understanding coding albeit tied to objective c and now swift. I watch and read as much as i can but nothing beats actually trying and failing. Basically my inquiry is how much and what you guys say is a choice of style and where would it be best to pick up on the standard practices, when it comes to writting code. For example im trying to get used to writting and reading curly braces being on the same line vs being on the next line. And another small example when to use switches versus a couple of if, else statements. From my reading i see as with any endeavor there are certain bad habits that form early on and without proper guidance become a hinderance as the more difficult to understand way of doing certain things doesn't register for beginners. Thanks
As an fyi i just now got the grasp of MVC and wrote a class and had it working in my view controller properly where as before i put all my code in the viewcontroller file, and wondered why i couldn't access the instance of an object, because the instance was local to the viewdidload method, and i couldn't figure out why what i had in mind wasn't working. That may provide some insight as to where im at, and what would possibly help. Thanks again in advance.
As an fyi i just now got the grasp of MVC and wrote a class and had it working in my view controller properly where as before i put all my code in the viewcontroller file, and wondered why i couldn't access the instance of an object, because the instance was local to the viewdidload method, and i couldn't figure out why what i had in mind wasn't working. That may provide some insight as to where im at, and what would possibly help. Thanks again in advance.