Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Need More practice with swift

Working through the IOS beginner development course currently and almost through collections and control flow. I am getting a good understanding of the individual terms, but the challenges are choking me up. What is the best way to practice the materials i'm learning (Like more challenges)? Thanks in advance everyone!

4 Answers

Jakob Hansen
Jakob Hansen
13,746 Points

I found myself having that problem when I first started as well, I may be miss understandinging your question, but it sounds like lack of "logical thinking", or problem solving. More challenges are definitely key to getting better at this, practice, practice, and practice. My recommendation is to get a paper and pen, and then break down the problem you need to solve in your code, write every little step, it helps to understand what is going on. If you need more challenges there's a website called Project Euler(dot)net which has a lot of programming problems, you can solve. I highly recommend those :) Best of luck!

That is exactly the issue i am having! I think i also am just very new to this and need to keep focusing on basic terms. Thanks for the suggestion, ill check it out tonight!

Just signed up and it is very helpful! The challenges are pretty complex for where im at though, maybe ill look into it down the road when i have a little bit of a better understanding

Addison Francisco
Addison Francisco
9,561 Points

Hi Victor,

I agree with what Jakob said. You really need to work on your logical thinking and problem-solving with regards to computer science. That starts with having a basic understanding of computer science, too. You'll learn a decent amount of these things in the Swift courses here, but you don't have that foundation going in, so it will feel a little more challenging.

Computer Science is a topic that needs to be understood in order for programming language semantics to make sense in your mind. For example, you might learn how to declare a variable in Swift, but do you understand what is happening at a lower level when you do? What I'm getting at is try not to move through videos/courses for the sake of completing them, but rather make sure you understand everything before you move forward. You will not retain anything or progress unless you holistically understand the sciences behind these topics.

As others have stated, practice is key. It may not seems exciting, but spend a good amount of time putting the new knowledge you learned to practice. I would suggest doing this in an Xcode playground. If you just learned how to create a for loop, see if you can come up with more ways to utilize them until it's 2nd nature to you. You will stumble across problems and roadblocks. When you do, figure out how to solve them. That's where you will learn a lot and feel much more accomplished and confident in your capabilities.

Remeber to take it slow. Everyone started right where you are.

Addison Francisco
Addison Francisco
9,561 Points

Hackerrank.com and leetcode.com are other great resources for code challenges that span from very easy to mind-numbingly difficult.

I was really just looking for sites that could help me practice writing what I am learning, you assumed a lot about my background in your post and I really wasn’t asking for that. Just wanted some resources...

Addison Francisco
Addison Francisco
9,561 Points

Victor,

I apologize for coming off that way. You are right to say I don't know your background, and I could have phrased my response better. My intent is not to talk down to you, but I can see how it would come off like that. I did provide a couple links above to resources that sound like what you're looking for. So, hopefully, that was some help at least

It did seem that way, but thanks for the response! I’ll check out those links tonight, and I really do appreciate the help!! ???