Bring your karma
Join the waitlist today
HUMBLECAT.ORG

Blind and Visually Impaired Community

Full History - 2022 - 06 - 08 - ID#v7vex8
13
Learning Swift (self.Blind)
submitted by ZBMakesSongs
Hey guys,
Hopefully this is the right place to post this. Thought about going on some programming related subs, but I figured maybe this is a better place to start since there are more blind people here. I've been wanting to begin learning to code for a while now, a few years at this point, but I've never really been able to get into it, what with going to Berklee (the music school) full-time.
I'm currently on summer break and want to at least start learning Swift. I know some Python already, but I'm trying to find some good courses that are designed for beginners so as not to get too overwhelmed. Tried Hacking with Swift last year, and after around day 5 or 6 I just gave up because it became too much for me at the time. Is Swift Playgrounds a good place to start? I know it's accessible, and I've managed to use it before, but the grid is confusing to me.
My main reason for choosing Swift is simply that I am an Apple user exclusively, and I figure it's probably the best programming language if I ever want to publish to the App Store. Any thoughts on this would be greatly appreciated.
Thank you so much.
[deleted] 7 points 1y ago
Yes I went through 3 swift playground things. It’s accessible. Good luck I hope you’re good at puzzles. There’s a blind programing discord server my mentor gave me, and a sub on here of blind developers too.
Rethunker 4 points 1y ago
I'd suggest finding an in-person Swift training course, if you can. Based on my experience interviewing programmers over the years, it's usually obvious which job applicants have relied too much on learning from a hodge-podge of websites, StackOverflow posts, and so on. Online resources are great, but I would strongly recommend building on a foundation that a mentor helps you build.

I like Swift, but I still find Xcode a bit clunky at times. I have many more years of experience with Microsoft's Visual Studio, which is clunky in different ways.

One thing about Swift is that, the last I checked, there still weren't that many good books on the subject. There are many books, some of which are popular. In one of the most highly praised books the author more or less states concept will be introduced step by step, and then within a few pages that notion goes right out the window.

iOS Programming: The Big Nerd Ranch Guide is a good starting book. It includes exercises. Sometimes it's a bit tedious to copy out code without understanding what the code does, but there's just a certain amount of copying necessary.

You can write Swift using Visual Studio Code, which is a simpler development environment that a lot of people like for tinkering and learning new languages. I haven't tried the Swift plugin for VS Code myself, but it's an alternative to creating a playground. You can also google for "best Swift IDE" or "best Swift development environment" and find a few alternatives.

That said, if you want to publish an app to the App Store, Xcode is the way to go. Even with Xcode the publishing process is not as straightforward as one would like.

You can learn the basics of Swift in a playground or in some other app, but once you start building an interface it'd be a good idea to start working your way through Xcode.

The Lighthouse published an article three years ago that may be of interest:
$1


And hey, you go to Berklee? We may know some folks in common. I've known some folks who have studied and/or worked there.
ZBMakesSongs [OP] 3 points 1y ago
Thanks so much for these suggestions, all really good thoughts. Yeah Berklee is definitely not a bad place to be if you like music, but I found over my three years of being there that computer science is more my thing, and I've kind of become disillusioned with the whole music industry lol. Definitely a lot of blind students there, and I know pretty much all of them at this point. Unfortunately just due to my schedule I don't really have the time to pursue an in person programming course, but that's something I would love to look into. I liked Hacking With Swift because it began with very simple examples, but I felt that Paul sort of assumed that people knew at least the basics of programming first. For me that's not much of a problem, since I have a little experience creating some very basic Python applications, and no concepts like what a variable is and if statements and so on, but I still found it very overwhelming, especially when you get into things like a raise. Now that I'm in a slightly better headspace mentally, I may try it again, as I really do like the concept, but I just wish he would go a bit slower. Would Apple's documentation on this bee a better place to start?
[deleted] 3 points 1y ago
Good question definitely interested to know if apple’s own stuff is any good.
Rethunker 2 points 1y ago
Apple’s documentation is general could use some improvements.

For starting off in Swift the documentation is good, from what I remember. They offer a free eBook that’s worth downloading.

Once you get to the point that you’re digging into low-level functions and trying to figure why the feature you thought would do X does Z instead, Apple documentation will tend to leave you wanting. For function-by-function documentation, Microsoft does a better job. And I only feel lukewarm about their documentation.

I’d suggest picking a particular programming problem you want to solve in the long term. Keep that problem in mind as you learn the basics. Then little by little see what practice code you can write related to that problem.

There are two local programmers who give regular talks about Swift on Meetup. I’ve forgotten what the group is called, but it could be worth listening in just to hear what they’re talking about.
[deleted] 2 points 1y ago
That sounds interesting. Thanks.

Are you on discord by the way there’s a blind programmer group on there.
Rethunker 1 points 1y ago
Learn Swift Boston is the name of the Meetup.
[deleted] 2 points 1y ago
Oh nice thanks. I appreciate it.
r_1235 3 points 1y ago
I don't know about swift yet, might try it soon. But what helps me is actually reading the official documentation from the libraries I am using, for python. It's very slow, but ultimetly you arrive at your goal. Questions at stackoverflow are good for investigating errors, but, reading official documentation gives you the tools and knowhow to creat what you want.
ZBMakesSongs [OP] 2 points 1y ago
That's a good idea as well. When I looked at the documentation some years ago I found it very overwhelming, but I may try again as I'm sure it's improved since then.
n8dx 3 points 1y ago
Hey! I’m currently a sighted Swift/SwiftUI developer. I can’t answer much in terms of accessibility, but I can recommend some things to help while learning Swift. Learning to develop is hard and can be overwhelming if you try and understand everything before trying to make anything. I would suggest you find an idea for a simple app you would like to make (an app that rolls dice, a todo list, a flashlight app) and then you figure out how to make it. Google will be your best friend whenever you have a problem, because he will likely take you to the appropriate Hacking With Swift, Stack Overflow or even Apple Documentation page. That is basically how I learned all I need to know about Swift.

However, what might be important moving forward if you don’t yet have them are some general Computer Science notions, which aren’t specific to a given language, and it might be worth taking an online course for that :)
[deleted] 5 points 1y ago
Interesting suggestions.
Rethunker 1 points 1y ago
Also: later this summer I may have some Swift code I could simply share piece by piece. Sometimes I blog about Swift, but on a very specific subject.
This nonprofit website is run by volunteers.
Please contribute if you can. Thank you!
Our mission is to provide everyone with access to large-
scale community websites for the good of humanity.
Without ads, without tracking, without greed.
©2023 HumbleCat Inc   •   HumbleCat is a 501(c)3 nonprofit based in Michigan, USA.