Yesterday was the second day of my
Learning to Program introductory course - for delegates who are learning to program - as well as learning a particular language, and (since the target language is C), I wrote a number of new C examples. And these examples were written in front of the delegates to show not only the final result but also
how the result is reached!
Here they are:
Arrays and their use
Opening and reading data from a file
Data validation and more maintainable code
To demonstrate that there are many similarities between languages - learn one and you know (at least) some of the principles for others, I also wrote
A short piece of PHP.
All twelve examples are indexed under our
Learning to program resource. And if you need to learn to program in Lua, or Ruby, or C, or Python ...
email me and I'll be happy to run two extra days in those language. If you're new to programming with Tcl, PHP or Perl being your target, again get in touch - we have different and well suited solutions there too.
(written 2009-01-19, updated 2009-01-21)
Associated topics are indexed under
Q100 - Object Orientation and General technical topics - Learning to Progam [4008] Reading and checking user inputs - first lessons - Ruby - (2013-02-17)
[3895] Flowchart to program - learning to program with Well House - (2012-10-14)
[3551] Some terms used in programming (Biased towards Python) - (2011-12-12)
[3120] Learning to write good programs in C and C++ - separating out repeated code - (2011-01-04)
[2973] Learning to program - where to start if you have never programmed before - (2010-09-28)
[2898] Programming Standards from the start! - (2010-08-02)
[2505] I almost put the bins out this morning - (2009-11-16)
[2504] Learning to program in ... - (2009-11-15)
[2326] Learn a new programming language this summer. - (2009-08-06)
[2294] Can you learn to program in 4 days? - (2009-07-16)
[2286] New to programming? It is natural (but needless) for you to be nervous - (2009-07-14)
[2092] Tracking difficult bugs, the programmer / customer relationship - (2009-03-20)
[2048] Learning to program in PHP, Python, Java or Lua ... - (2009-02-19)
[1985] Learning to program as a part of your job - (2009-01-10)
[1963] Best source to learn Java (or Perl or PHP or Python) - (2008-12-28)
[1605] Learning and understanding scripting programming techniques - (2008-04-08)
[116] The next generation of programmer - (2004-11-13)
Q102 - Choosing your language [3785] Programming languages - what are the differences between them? - (2012-06-27)
[3764] Shell, Awk, Perl of Python? - (2012-06-14)
[3619] Ruby v Perl - a comparison example - (2012-02-21)
[3558] Python or Lua - which should I use / learn? - (2011-12-21)
[3169] Rekeying a table - comparison in #Ruby #Perl and #Python - (2011-02-14)
[2866] Ruby - how does it compare and where is it the right language? - (2010-07-11)
[2700] The same very simple program in many different programming languages - (2010-03-31)
[2536] All the Cs ... and Java too - (2009-12-13)
[2535] When should I use Java, Perl, PHP, or Python? - (2009-12-13)
[2507] Admission - (2009-11-19)
[1990] Speaking all the languages - (2009-01-12)
[76] Learning to program in - (2004-10-07)
Q101 - Object Orientation and General technical topics - Programming Principles [4090] Test Driven Development in Python - Customer Comes First - (2013-05-16)
[4061] Seamless, integrated IT - we have a long way to go! - (2013-04-11)
[4003] Web and console - same principle, same code - Ruby example - (2013-02-14)
[3954] Lesson 1 in programing - write clean, reuseable and maintainable tidy code - (2012-12-16)
[3928] Storing your intermediate data - what format should you you choose? - (2012-11-20)
[3878] From Structured to Object Oriented Programming. - (2012-10-02)
[3673] Object oriented or structured - a comparison in Python. Also writing clean regular expressions - (2012-03-26)
[3548] Dark mornings, dog update, and Python and Lua courses before Christmas - (2011-12-10)
[3542] What order are operations performed in, in a Perl expression? - (2011-12-07)
[3456] Stepping stones - early coding, and writing re-usable code quickly - (2011-09-24)
[3026] Coding efficiency - do not repeat yourself! - (2010-11-02)
[2964] An introduction to file handling in programs - buffering, standard in and out, and file handles - (2010-09-21)
[2915] Looking up a value by key - associative arrays / Hashes / Dictionaries - (2010-08-11)
[2878] Program for reliability and efficiency - do not duplicate, but rather share and re-use - (2010-07-19)
[2769] Easy - but for whom? - (2010-05-18)
[2737] Improving your function calls (APIs) - General and PHP - (2010-04-24)
[2586] And and Or illustrated by locks - (2010-01-17)
[2550] Do not copy and paste code - there are much better ways - (2009-12-26)
[2510] The music of the stock market - (2009-11-22)
[2415] Variable names like i and j - why? - (2009-09-22)
[2327] Planning! - (2009-08-08)
[2310] Learning to write high quality code in Lua - (2009-07-30)
[2228] Where do I start when writing a program? - (2009-06-11)
[2022] Pre and post increment - the ++ operator - (2009-02-03)
5601
Some other Articles
Variables and pointers and references - C and C++Variable Scope in C++Discount Training Courses - PHP, Perl, PythonNew C Examples - pointers, realloc, structs and moreI have not programmed before, and need to learn2000th article - Remember the background and basicsHow low can you sink?Text on a background imageTravelling to a course - station pickupsAdvise before my Apache / Tomcat course