Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

audiotastic

macrumors newbie
Original poster
Nov 16, 2015
1
0
I don't have any formal training in programming, but was able to develop a few basic websites and accomplish what I needed by teaching myself html/java/php. What I found especially helpful was learning the basics, then utilizing sites like w3schools to essentially copy/past small amounts of code and customize them. I wasn't at a place of fully understanding html/java to simply write it out myself.

Are there any similar sites for Swift? Like small 'chunks' of demonstrated sample code that can be copy/pasted? I unfortunately don't have the time/money to become fully versed in the language, and I also learn better by assembling pieces and seeing what they do.

Thanks!
 
Actually there are tons of them. That's kind of the problem. You might find one that has out dated code that doesn't work anymore.

I'd look at http://www.raywenderlich.com/

The Xcode docs are pretty good as well. I don't know if they've fully updated everything, but very useful. Go into Xcode, look at the docs and you should find a "download" button that'll get you the source code.

Running it in the debugger, line by line, really helps to understand what's going on.

Also, when you search around, look at the dates of the posts. Some are really old.
 
When I'm learning a new language I make it a personal rule to never ever ever copy & paste code from tutorials for a good, long time. Even if it's a massive amount of code. I find that this helps me to learn the language faster. Even if it's some boring code that I already understand, I still find it helps to write it all out manually because it helps me to mentally remember syntax. It takes extra time, but in the long run, it will save you time.

Raywenderlich is an excellent, fantastic suggestion. What an amazing resource. Some of the articles on there are outdated (with supremely frustrating and unpredictable results in some cases!) but the Swift stuff should be pretty new. I can't even tell you how much I've learned from that one website.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.