Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

General Discussion

Dillon Carter
Dillon Carter
6,364 Points

Excited For Swift?!

So I was only able to see a bit about the new programming language swift but I am incredibly excited for it. I started iOS Dev here and quickly switched over to the Ruby Track. With Swift, I may convert back over to mobile as it seems more Dev. friendly and easier to get started with.

What's everyones thoughts about the new language being pushed out?

@Treehouse - Are you guys going to update the site? ;)

4 Answers

Stone Preston
Stone Preston
42,016 Points

I just started working through the iBook and the syntax is pretty simple, but it gets pretty weird sometimes when you have functions inside of functions and functions as parameters and stuff

func hasAnyMatches(list: Int[], condition: Int -> Bool) -> Bool {
    for item in list {
        if condition(item) {
            return true
        }
    }
    return false
}

Excerpt From: Apple Inc. “The Swift Programming Language.” iBooks. https://itun.es/us/jEUH0.l

the language reminds me a lot of ruby/python/javascript. its fun, but it can get confusing it seems

Dillon Carter
Dillon Carter
6,364 Points

Thanks for linking to the iBook. I will have to go through it and see if I can make sense of it haha.

Patrick Donahue
Patrick Donahue
9,523 Points

Here is a tutorial I found for it. HERE

I think once people get familiar with it - it should be alright. I have been reading through the iBook when I can and it is a bit confusing. Just need to keep reading and coding until I get the "click" moment where it all makes sense.

It does seem to be more developer friendly. The syntax reminds me of a hybrid of Ruby and JS. Looking forward to seeing Treehouse's course for Swift :-)

Dillon Carter
Dillon Carter
6,364 Points

Yea, once Treehouse comes out with a course on it, I will gladly become an iOS Dev :)