User Tools

Site Tools


basics

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
basics [2023/09/08 06:17] appledogbasics [2023/09/11 12:17] (current) appledog
Line 2: Line 2:
 TO a large extent this will depend on what language is introduced first. TO a large extent this will depend on what language is introduced first.
  
-At times I have used CBM BASIC, PHP, Python or other languages to teach. The language iself is not so important because all the basic concepts are going to be the same. Whichever language I useI will aim to also provide a python version as Python is the language I currently teach inThe reasons for that are diverse, as Python is not my first choiceBut it is great for beginners.+At times I have used CBM BASIC, PHP, Python or other languages to teach. The language itself is not so important because all the basic concepts are going to be the same. However, out of all the major languages, Python has the least amount of things you need to learn before you can look at a program. Python is not my first choiceBut it is great for a basic programming courseHowever, I don't think that it is valuable to use python beyond the second year of a computer science course. Once you understand all the basic concepts, relearn them in C, C++ or Java. We'll worry about that later. For now, what do you think the following program does?
  
 <Code:python|Example Python Code //ex1.py//> <Code:python|Example Python Code //ex1.py//>
Line 9: Line 9:
 c = a + b c = a + b
  
-if c >a:+if c > a:
     print("C is bigger than A.")     print("C is bigger than A.")
 else: else:
-    print("is bigger than C.")+    print("is not bigger than A!")
 </Code> </Code>
  
-== Reccomended Environment+That is pretty much the only reason why Python is useful. You can start learning without getting confused by boilerplate code like ''"#include <stdio.h>"''. Nobody knows what that means, but everyone knows what ''a + b'' means. 
 + 
 +== Recommended Environment 
 +=== Just Get PyCharm 
 +Just get [[PyCharm]]. PyCharm is good. 
 + 
 +=== The Command Line 
 +You won't loose much time with an editor like nano. You can use Linux, Mac, or WSL on Windows. Using the terminal can be almost as fast as using an IDE. I recommend an IDE because it is just faster. There is no need to use a general editor for a special document type. Still, I have taught kids using a text editor in a terminal and it does not impact their learning. 
 + 
 +=== Online IDE
 You can run python in the browser at websites such as: You can run python in the browser at websites such as:
 * [[online-python.com]] * [[online-python.com]]
 * [[https://www.programiz.com/python-programming/online-compiler/]] * [[https://www.programiz.com/python-programming/online-compiler/]]
  
-You can of course also use the shell and an editor like ''nano''.+I don't recommend an online environment, but you can do it if you just want "python here, now" or can't install anything.
  
-=== PyCharm is Good +All else consideredif you canjust use PyCharm.
-Howeversince PyCharm is free and runs on LinuxMac and Windows, you should use that. It's good.+
basics.1694153822.txt.gz · Last modified: 2023/09/08 06:17 by appledog

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki