Warning: The magic method Slickr_Flickr_Plugin::__wakeup() must have public visibility in /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php on line 152

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/feed-rss2.php on line 8
‘Coding Conventions’ Articles at TC101 Fall 2015 https://kenscourses.com/tc101fall2015 Introduction to Programming Python and C++ Wed, 25 Nov 2015 02:44:01 +0000 en hourly 1 https://creativecommons.org/licenses/by/4.0/ Mastery 8 https://kenscourses.com/tc101fall2015/2015/mastery-8-4/ Wed, 25 Nov 2015 02:44:01 +0000 http://opezaimd.tumblr.com/post/133901908420 On this mastery I’ll talk about coding conventions on C++. 

Coding conventions are just a set of “guidelines” that talk about the style to format a code. For example, how to correctly use braces, commas, comments, capitalization, etc. You can read a lot more of these “rules” in these webpages:

https://en.wikibooks.org/wiki/C%2B%2B_Programming/Programming_Languages/C%2B%2B/Code/Style_Conventions

https://gcc.gnu.org/wiki/CppConventions

Since masteries 1 and 7 we’ve been using the correct style and format. If we weren’t, we could’ve just written all our codes in one line instead of multiple lines, for example, tell me how do you prefer to read a code, like this? ->

Or like this? ->

Which one is easier to read?

And know you now why there are coding conventions: to make everything look nice and easy to read.

]]>
On this mastery I’ll talk about coding conventions on C++. 

Coding conventions are just a set of “guidelines” that talk about the style to format a code. For example, how to correctly use braces, commas, comments, capitalization, etc. You can read a lot more of these “rules” in these webpages:

https://en.wikibooks.org/wiki/C%2B%2B_Programming/Programming_Languages/C%2B%2B/Code/Style_Conventions

https://gcc.gnu.org/wiki/CppConventions

Since masteries 1 and 7 we’ve been using the correct style and format. If we weren’t, we could’ve just written all our codes in one line instead of multiple lines, for example, tell me how do you prefer to read a code, like this? ->

Or like this? ->

Which one is easier to read?

And know you now why there are coding conventions: to make everything look nice and easy to read.

]]>
https://creativecommons.org/licenses/by/4.0/