Video: Programming styleWhen we talk about style with programming languages, we're moving away from the rules, the syntax of how you must and must not write your code, into more of how you should and shouldn't write it. Now, we've talked about this a little already. It's things like what should you call your variables, what's the best place to put your curly braces, what should you call your functions, and where should they go in your code. Now all programming languages develop accepted style guidelines. There's often a lot of debate over what should be the right way to do things but even with a disagreement, they're still really useful.
- Where to go from here
Viewers: in countries Watching now:
Finally, the course compares how code is written in several different languages, the libraries and frameworks that have grown around them, and the reasons to choose each one.
- Writing source code
- Understanding compiled and interpreted languages
- Requesting input
- Working with numbers, characters, strings, and operators
- Writing conditional code
- Making the code modular
- Writing loops
- Finding patterns in strings
- Working with arrays and collections
- Adopting a programming style
- Reading and writing to various locations
- Managing memory usage
- Learning about other languages
When we talk about style with programming languages, we're moving away from the rules, the syntax of how you must and must not write your code, into more of how you should and shouldn't write it. Now, we've talked about this a little already. It's things like what should you call your variables, what's the best place to put your curly braces, what should you call your functions, and where should they go in your code. Now all programming languages develop accepted style guidelines. There's often a lot of debate over what should be the right way to do things but even with a disagreement, they're still really useful.
But the real point with any style is simply to be consistent about the way you write your code.
Find answers to the most frequently asked questions about Foundations of Programming: Fundamentals .
Here are the FAQs that matched your search "" :
- Q: Using TextEdit with Mac OS 10.9 Mavericks?
Sorry, there are no matches for your search "" —to search again, type in another word or phrase and click search.