I just finished a skill (Make a Website) and was wondering where do you write code but not in a course? I looked around codecademy but didn’t find any thing. Is there a program I need or something? Please help!
Some languages are compiled (by a compiler) to machine code that can be run directly by the computer.
Others are run by having an already existing program (an interpreter) interpret the code and do the actions that the code specifies.
Some languages even do both.
So you’d write your code in a text editor, and then feed into a compiler and/or an interpreter, which those are depends on the language.
As an incredibly brief demo, here’s how one might create and run a hello world program in Python in GNU/Linux … mac would be about the same.
$ echo "print('hello world')" > hello.py $ python hello.py hello world $
The first line creates the code file. There’s some magic going on there, but it just creates a file called
with the contents:
normally that would be done in a proper text editor
Then, on the next line, I run the Python interpreter, telling it about my file.
Python will then read my code and do what it says in the code. As a result, “hello world” is printed, and then I’m back at my command-line prompt, ready for new adventures.
Google hello world for your language, there are sure to be plenty of articles explaining how to run a program using that language.
You could download editors like notepad++, sublime text, or atom… I personally prefer Atom. Then you could just execute your html file by windows explorer and it should work!