Critique my Swift on Exercism

I am currently in the middle of a Swift and iOS course with the excellent Big Nerd Ranch. Taking a week to dedicate to learning a new language and framework means I can block out all other distractions and really focus. And as this goes on, I’d like yo…


This content originally appeared on Phil Nash and was authored by Phil Nash

I am currently in the middle of a Swift and iOS course with the excellent Big Nerd Ranch. Taking a week to dedicate to learning a new language and framework means I can block out all other distractions and really focus. And as this goes on, I'd like your help.

Specifically, I'd like you to log on to Exercism and critique my code.

Practice makes…?

Exercism is a collaborative tool for learning, practicing and reviewing code created by the fantastic Katrina Owen. It's great for beginners, to a new language or to coding in general, to try out new skills and get reviews and tips from peers. It's also great for experienced programmers to keep sharp by writing and reading code. And it's all open source and has a great page on how to contribute, which is awesome.

I'm currently trying to use it to kickstart my Swift career. That's where you come in.

Over the coming days and weeks I will be completing the Swift problems set out by Exercism and I'd really like a second (or third, or fourth) opinion. If you know Swift ,or if you don't, all opinions are welcome, I would love it if you would check out my attempts and leave some pointers on how I might improve.

Hello, World!

Just to kick it off, here's my "Hello, World!" from the first Exercism challenge in Swift.

class HelloWorld {
    static func hello(name: String = "World") -> String {
        return "Hello, \(name)!"
    }
}

It may only be five lines of code, but it's a start!

Improving together

This works better if we learn and feedback to each other, so I'd love to help you too! If you're using Exercism to practice or learn something new, I am available to send feedback. If you want me to take a look at your code just give me a nudge on Twitter.

Exercism is a great tool and an opportunity for us all to improve together. So what are you waiting for?


This content originally appeared on Phil Nash and was authored by Phil Nash


Print Share Comment Cite Upload Translate Updates
APA

Phil Nash | Sciencx (2016-06-20T00:00:00+00:00) Critique my Swift on Exercism. Retrieved from https://www.scien.cx/2016/06/20/critique-my-swift-on-exercism/

MLA
" » Critique my Swift on Exercism." Phil Nash | Sciencx - Monday June 20, 2016, https://www.scien.cx/2016/06/20/critique-my-swift-on-exercism/
HARVARD
Phil Nash | Sciencx Monday June 20, 2016 » Critique my Swift on Exercism., viewed ,<https://www.scien.cx/2016/06/20/critique-my-swift-on-exercism/>
VANCOUVER
Phil Nash | Sciencx - » Critique my Swift on Exercism. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2016/06/20/critique-my-swift-on-exercism/
CHICAGO
" » Critique my Swift on Exercism." Phil Nash | Sciencx - Accessed . https://www.scien.cx/2016/06/20/critique-my-swift-on-exercism/
IEEE
" » Critique my Swift on Exercism." Phil Nash | Sciencx [Online]. Available: https://www.scien.cx/2016/06/20/critique-my-swift-on-exercism/. [Accessed: ]
rf:citation
» Critique my Swift on Exercism | Phil Nash | Sciencx | https://www.scien.cx/2016/06/20/critique-my-swift-on-exercism/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.