Question:
How do programming languages work, as in WHERE do you write the code? Which "program"?
Olaf
2015-07-08 19:31:01 UTC
How do programming languages work, as in WHERE do you write the code? Which "program"?
Six answers:
husoski
2015-07-08 19:54:00 UTC
Where is at the keyboard. Which program depends on the language.



For nearly all projects with multiple source files, I use an IDE (Interactive Development Environment) which has a programmer-friendly text editor built-in. I use NetBeans or Eclipse for Java, Code::Blocks for C and C++, Visual Studio for C++ and C# (and VB.NET, if I have to), and Idle for Python.



I also use either TextPad or Notepad on Windows for scripts and some single-source file Java and Python code. For Linux/FreeBSD, I'll typically use gedit or joe...never could get friendly with either vi or emacs but tons of Unix/Linux developers swear by one or both of those.



How you get from a typed-in source program in a text editor to a program that will run depends on the language. Most programs need to be "compiled" into machine executable instructions, then linked with precompiled library code to make a complete, ready-to-run program. Interpreted languages like Python or Ruby will be executed directly from the source code by a program called an "interpreter."
Nathan
2015-07-08 19:49:07 UTC
Computers need binary instructions (0, 1). Many programming languages use a compiler - a compiler essentially translates human readable code into machine readable code. You write the code in a "human-readable format". This could include python files, .py or c files .c or java files, .java. The complied versions or these files are .pyc for python, .o for c and .class for java.



Code source files are physical files containing human readable code. You type these in a text editor or integrated development environment. Check our notepad++ if you're familiar with notepad - this is a code text editor. If you want to compile the code and you're a beginner it's probably best to use an IDE. Eclipse is an example.
?
2015-07-08 21:26:15 UTC
when you program you need a way to compile code into actual running code. in the case of Java, you install a bunch of features directly onto your system that allow this to happen. typically, these features can be accessed though the command line (Command prompt) where you can have a text file with the file extension .java and you compile it through command prompt commands.

since this is time consuming and complex for large projects, you can use a program like NetBeans or Eclipse to organize your projects for you.



in these programs called IDEs, you are given a text editor with features specifically for coding built in. these will highlight key words, and help you with fixing code. then when you are ready to compile the code to run it, you just have to hit a button and the IDE will do the work for you.



so while you could write programs with something as simple as notepad, the smart and efficient way to go about things is to use an IDE.
2015-07-08 19:46:20 UTC
Well, some coders use a plain, vanilla text editor -- such as Notepad, to write their code. Some prefer a slightly fancier text editor like Notepad++. While others prefer to use an editing environment that has the language compiler built in -- such as Microsoft's Visual Studio or Code::Blocks.
TrustMe
2015-07-08 19:41:46 UTC
You write code in the Notebook application on your computer.
Steven
2015-07-08 21:30:28 UTC
In the old days, you wrote code in text files, fed them to compilers, linker, loader etc.



https://en.wikipedia.org/wiki/Integrated_development_environment


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...