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

Memorising Syntax swift

Hi Is it necessary to learn the syntax of my heart to be a good programmer? Being new to programming I always write down the syntax that I learn from the video e.g. string interpolation is --- "()" over time I've learnt that by heart but there's a lot that I don't know, like appending arrays and dictionaries or how to read items. Thus I have notes and refer to them when doing challenges. Is that ok? And is that normal or over time am I expected to know all the syntax off by heart?

1 Answer

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

It's perfectly ok! It's not just ok, it's recommended. There's a reason there's so much documentation out there. Noone knows it all (no matter what they may tell you)! But as you've pointed out yourself, after enough times of doing the same thing over and over, you will accidentally learn it by heart. You'll even get to a point where you've learned something without even realizing that you've learned it.

There was a very similar thread about this very topic not long ago. Now granted, it was for JavaScript, but the answers are still the same. Essentially, whatever allows you to get the job done and done well, is what you need to do. I highly suggest you take a look at this thread

Hope this helps! :sparkles:

Thank you :D