r/learnprogramming • • Feb 13 '19

This is probably an obvious answer but I can't find it anywhere. WHERE do I code?

A novice can open up Photoshop and start playing around. Someone new to piano can sit down at a piano. What is that equivalent for coding? I see all of these beginner tutorials talk about languages and set me up with a nice little terminal to code and see progress. Where is the terminal in real life? How do I literally start a project? I'm seriously asking. Is there a website I create my project in? Is that what Cloud9 is? Let's say I know HTML5 and want to create a project with it. What is that next step to MAKING it? It's like everyone is so helpful figuring out what bike to choose and how to ride the bike, but for the life of me I can't find anything to teach me where to find a street to ride on.

Edit #1- Wow! I woke up to so many great responses! Everyone is really friendly, encouraging, and helpful. I'm going to spend the day answering everyone's comments. Thank you!!

1.6k Upvotes

311 comments sorted by

623

u/pacificmint Feb 13 '19

You write your code in an editor or an IDE (which is an editor with extra features).

You then either compile it, or run it with an interpreter. The compiler or interpreter will be specific to the language you are using.

So let’s say you want to write Python code, you would need to install an editor and the Python interpreter for your OS.

Edit: Since you used html5 as an example, for html you do not need an interpreter or compiler, since it’s not a programming language. You can just write html code in the editor, and then open the html file in your browser.

191

u/All_Joking_a_Salad_ Feb 13 '19

Thank you so much. This clears it up a bit more.

17

u/awkreddit Feb 13 '19 edited Feb 13 '19

If you're looking to get into JavaScript and html 5, there's a cool YouTube series that goes through all the steps to make a top down Miami vice like two stick shooter, and explains every step of the way for people with no knowledge. Pretty interesting:

https://www.youtube.com/playlist?list=PLh-MBXZEiyMhulEqYE3gn63idSAKG6Sx1

(The playlist doesn't contain the whole series, but you can find the rest on their channel)

→ More replies (1)

11

u/[deleted] Feb 13 '19

Just to be clear, if you are on Windows, the Python language comes with its own IDE with built it debugger. It's called IDLE, and its one of the reasons python is recommended so often. Because it has everything you really need from the start.

12

u/AlwaysHopelesslyLost Feb 13 '19

Visual Studio Code is my new favorite text editor if you want to give it a try.

You can also just use notepad if you want, anything you can type into and save is good enough to develop. Of course editors like VSCode and Visual Studio proper (for .NET languages) are going to hold your hand a bit more.

→ More replies (60)

20

u/Songbird420 Feb 13 '19

What is an editor? What does it do? Can you name a few? Why can't I just code in notepad?

46

u/_-01-_ Feb 13 '19 edited Feb 13 '19

An editor is just about anything that you can write and save text in. Some are (arguably) better because they include features like syntax highlighting and autocompletion (it recommends things as you type, like predictive text on your phone). Some editors that work well for coding are vim (console based text editor), atom, notepad++, sublime, and many others. Coding in notepad is possible, but makes things harder for coding related tasks. You can't have multiple files open, which is a bummer once you start working on larger projects. You also don't get auto-indentation, which saves you a lot of time from hitting space or tab repeatedly. You don't have syntax highlighting, or any of the other fancy code stuff. And of course, most importantly, there is no dark theme.

→ More replies (1)

9

u/frozenpandaman Feb 13 '19

Notepad is an editor. There are others that are a little more helpful by giving you line numbers, colors, autocomplete, etc. :)

6

u/itslef Feb 13 '19

You can just code in notepad. That's what I started learning with, way back in the early aughts.

→ More replies (1)
→ More replies (2)

52

u/matrizx Feb 13 '19

The browser is the interpreter

→ More replies (56)
→ More replies (4)

3

u/ag425 Feb 13 '19 edited Feb 13 '19

Typical coding thread - simple question met with answers that aren’t friendly to beginners - A ton of context with no actionable advice.

Download sublime or brackets.io. That’s the answer.

2

u/CaseyCrookston Feb 13 '19

I'm seeing a LOT of great advice in the comments. But what I'm not seeing are questions. Mind if I ask a few?

  • Can you give us an idea of the project, website, app, etc that you would like to create? In other words... what does your finish line look like? (at least for right now)

  • Is HTML5 the only thing you want to play with for now? Or do you have aspirations to learn a server-side language, such as C#, Java, Python, etc?

  • Are you on a Mac, PC, Chromebook, etc? (this matters less and less these days, but still.... good to know)

If you can fill in these blanks, I can help guide you to some really specific answers.

(As a side note... tutoring and mentoring up-and-coming developers is a passion of mine!)

1

u/All_Joking_a_Salad_ Feb 13 '19

I'll DM you. Thanks!

2

u/nacrnsm Feb 13 '19

Great question! I have noticed software developers tend to explain things to others from their own perspective, and usually fail to consider how much trivial knowledge is actually required for the task. My comment will be lost in the masses, I'm sure, but wanted to say good luck anyway and if you need any further help feel free to send me a message. I have lots of experience programming and building stuff with software.

2

u/All_Joking_a_Salad_ Feb 13 '19

It's not lost on me and you're exactly right!

2

u/Kssio_Aug Feb 13 '19

I'm extremely new to coding also, and I'm loving VS Code. Python and VS Code installation, as simple as it seems to be now that I did it, at first felt intimidating though, specially cause I was under the same pressure as OP and had no idea where to start at.

1

u/All_Joking_a_Salad_ Feb 14 '19

I'm glad to hear you're having success after recently being in the same spot as me.

2

u/LouieB62 Feb 14 '19

I gotta say...what an excellent thread. This community is awesome. Well done everyone.

2

u/All_Joking_a_Salad_ Feb 14 '19

Agreed. I've learned so much, including learning how much I actually didn't know. I've got to keep reading everyone's comments and try to find a general consensus.

159

u/ElSinestro Feb 13 '19

This one is super hard to answer! Actually, the answer to the direct question is easy, "Use a text editor or IDE to create your project and write your code." But the subtext here is deafening. The two part question underneath here is, "What physical artifact is produced by the act of 'programming'? And furthermore, how do I make a computer... do... my program?!?!"

You have to understand that underneath it all, a computer is a machine that takes a series of commands in the form of an 'executable' and... does those commands. Those commands, 99% of the time do something to 'data'. Yes, there's a lot more if you're being pedantic but to old farts like me, programming is creating executables. You write source code (more on where in a second), feed it into a piece of magic called a compiler and that spits out an executable. Executables are intuitive, apps on your phone are executables. Word is an executable, Photoshop is an executable, Acrobat is an executable. If you have an executable, you can basically tell a computer "run this" and it will just do it. (Aside, compilers are also executables but if that's true, someone must have written the source code to a compiler then fed it to a compiler that spit out a new compiler, BUT WHERE DID THE COMPILER COME FROM. It's turtles all the way down, save that question for another time.)

Most compilers expect source code to be stored in simple text files, like the kind you get out of Notepad. (It's important to note that text files are different from Word's .doc files, which contain text but they also contain a bunch of other other things like formatting information which compilers do not like. Do not write code in Word.) Sometimes you will write code spread across multiple files, in which case compilers usually expect these files to be arranged in folders in a certain way before they will produce an executable. Here is where an IDE comes in handy. An IDE will include a text editor and it will force you to save your text files in whatever folder structure your compiler likes.

Now, you mentioned web apps and here's where it gets tricky. You still need an executable, something that will operate on data. But you will also need web pages. Written in HTML, web pages are the mechanism by which your executable shows its output in a browser. Annoyingly, writing HTML is also called coding, but it's very different from writing source code. It's more akin to taking a term paper and marking it up with a bunch of colored highlighters.

Writing web apps is a significantly harder activity than writing an executable. You need to produce multiple artifacts, you will likely use more than one IDE and you need to understand two different languages (at least), as well as understand the difference between two different types of language (programming vs markup). You also need to have a solid grasp of networking to share your work with the world.

So going back to the question, it feels like what you're really asking is what should I do if I want to learn programming. Unambiguously, in order of decreasing importance, do these things:

  1. Read (and do) this book, Automate The Boring Stuff With Python. It will recommend an IDE and teach the basics.

  2. After that, when you're want to try to tackle web stuff, do the Django Tutorial.

  3. When you've made a basic web app and are ready to make it flashier, go through The Modern Javascript Tutorial.

  4. When you decide that you want to do something about how ugly your app is, go through The CSS Tutorial.

An aside for you grognards, yes I know python doesn't produce proper executables but let's not let a newbie get bogged down in that, yeah?

26

u/[deleted] Feb 13 '19

This is the short answer

3

u/MasterZii Feb 13 '19

Thank you for the links!! This is very helpful

→ More replies (11)

6

u/[deleted] Feb 13 '19 edited Feb 13 '19

So essentially you're asking about workflow? Bad news there is virtually no consistency for this because it depends entirely on what you're trying to do and (to an extent) even personal preference, which is why most people skirt around it.

Where is the terminal in real life?

First mistake, you're confusing terminal, shell, REPL.

Every OS currently has a CUI shell, windows it's cmd prompt/powershell, mac and linux it's bash.

Terminal you can think of it as an app for rendering the shell, there are many different types, some with different levels of graphical capabilities.

REPL - Read Eval Print Loop, essentially the bare minimum runtime environment for executing code, but doesn't necessarily give you access to a languages standard libraries. Two of the most popular at the moment being python and nodeJS.

Is there a website I create my project in?

Depends what you mean. But for now i'm gonna say no.

Is that what Cloud9 is?

To save time, avoid cloud9. The only real benefit of it is if you're using different machines all the time.

Let's say I know HTML5 and want to create a project with it. What is that next step to MAKING it?

... ?

  1. Create a text file

  2. change the file extension to .html

  3. open it in a browser

1

u/All_Joking_a_Salad_ Feb 13 '19

Thank you for your answer! I’ll look into some of these terms. This will help me find that missing piece of the foundation.

75

u/matrizx Feb 13 '19

Step 1. Download a text editor you like (VSCode is my personal favorite). Step 2. Download a language (if it is HTML, CSS, or JS, your browser is the interpreter. I’ll define this in a second). Step 3. Make a file for whatever language it is (eg. if it’s python, make playground.py). Step 4. The editor is your pianos keys and the languages interpreter /compiler is what makes your piano make sound.

Interpreter (explained in a simple way): take python. Python is an interpreted language. The python interpreter reads the .py and executes your code in there from the file.

Compiler (explained in a simple way): gets your source code (eg. something.cpp) and turns it into a binary file. If you’re on windows, this is an EXE most commonly.

32

u/[deleted] Feb 13 '19

I highly recommend Visual Studio Code; it is great for writing HTML and there is an Extension that can be downloaded that feeds your web browser the HTML as it is updated--in other words, as you write, edit or delete any HTML code, the web browser is fed this immediately. The Extension is called Live Server.

5

u/wwinga Feb 13 '19

thanks I couldn't remember the name of the Extension, was driving me crazy lol

10

u/Houghelpuff Feb 13 '19

VSCode is the direction to go! I love it! Switched from Atom a while ago and didn't look back... I second VSCode

→ More replies (1)

3

u/Son_of_Hideo Feb 13 '19

Nice analogy!

48

u/kbextn Feb 13 '19

if you’re in need of a place to practice coding, repl.it is really great!!

17

u/Funduval Feb 13 '19

Yes! repl.it is simple, clean, few distractions, no bells and whistles. It’s what I started on and I still go there to solve JavaScript problems.

Also a phone app called Mimo is a great starting point.

→ More replies (1)

2

u/dirkpeetersbilzen Feb 13 '19

Can affirm ...

12

u/komoro Feb 13 '19

If you want to try HTML5, go to codepen and start here: https://codepen.io/pen/tour/welcome/start

This is basically a window split into a HTML5 editor, a CSS editor and a Javascript editor. Everything you write will be shown in the main window. So here, you can just type away and see the result.

For other languages, there is the fantastic https://repl.it/ which also allows you to write in many other languges, without installing anything on your computer.

And as soon as you have the basics down, head over to youtube, look for "HTML5 beginners tutorials" and follow along. Or check out Udemy for beginners courses. These often include instructions to setup code on your machine.

PM me if you'd like more support.

10

u/indicainkwell Feb 13 '19

Wow, I remember this exact feeling. It's been so long. There's some good answers here, but if you need some extra help feel free to pm me.

9

u/FreeER Feb 13 '19 edited Feb 13 '19

Generally, any tutorial series should tell you what to install and what to do to get started. If it doesn't, find one that does.

But yeah, this is one of the things that I've heard older programmers complain about. When they were younger BASIC used to be on every computer and you could just open it and start trying stuff out.

Now days pretty much everything requires additional software to be installed separately, though most of them can work with just a basic text editor like notepad, I used notepad++ and then vim, they have syntax highlighting and a few other features that help when coding. Woe be upon those which attempt the trials with a word processor for hidden beasts lurk within to sabotage any who tread where they do not belong, or more sensibly they add extra stuff for formatting that screws up the code processors. And almost nobody uses the command line anymore so they don't even know how to open a terminal on their OS (win+r / search "cmd" or "powershell" on windows, ps is newer).

HTML, CSS, JS, and whatever your computers scripting language is (well mobile may not have one...) are the easiest because you already have the programs necessary to "run" them (a web browser and your OS) and just need to know what extension they're associated with and a tutorial, documentation, or a few of examples to get started.

But then modern web sites are often much more than just what the client web browser sees, you also have a "backend" that only the server sees using some language like PHP or Ruby or JS, and a database that you interact with using SQL but that may require a separate library to connect to it and send the SQL queries, and you may have additional build tools like gradle to update everything and minimize/compress the code for faster loading times... it gets fairly complicated (and I don't even know all the details because I haven't really gotten into that kind of programming).

6

u/Sigmund- Feb 13 '19

This is such a great question. It points out a very big problem with how people perceive coding.

You can't just sit down and play around with it. The examples you gave were skills. But programming is actually a language. You are talking to a computer. You are translating human to computer. In other words, if you don't know how to speak French for example, can you just walk up to a French person and try to "play around" with the language?

Learning programming is just like learning a new human language. You need to first learn the words (syntax). Than you need to learn grammar, so that you know in what order do you need to put the words that you now know. And at last you need a lot, and I do mean a lot of practice and reading. First graders can read and write, but they are not Shakespeare. That takes a lot of time and practice.

There are a lot of great online courses and books that can teach you. But just like a human language, first you need to pick a programming language to learn.

Best of luck!

P.S. It does get fun and playfully, just like when you know enough about a human language to make jokes with it, but it takes time. For me it was more than an year before I started having fun, for some it's much faster, but it does become fun and enjoyable.

0

u/[deleted] Feb 13 '19

[deleted]

3

u/All_Joking_a_Salad_ Feb 13 '19

Thank you! You understood my question perfectly. Yes, I've learned some syntax from several online courses, but you're right. They don't really say where to do your own work outside the tutorial's environment.

→ More replies (6)

6

u/SpaceGenesis Feb 13 '19 edited Feb 13 '19

The whole programming process could be simplified like this: input -> processing -> output.

1 Input. You write the code in a text file. You could use any text editor from simpler ones like Notepad to more advanced ones (IDEs) like Visual Studio. Depending on the programming language you're using, you may need some extra files in your project and IDEs are helpful for that. In general, IDEs generate templates with those files automatically and you need to configure them.

Your code must be written using instructions of your programming language of choice. These programming languages are very strict and there is no room for mistakes or ambiguous meanings.

This step is the equivalent of pressing a piano key.

2 Processing. This is where your code from the first step is transformed into something that a computer could execute.

A computer can't directly understand text and you need other programs called compliers and interpreters to turn your code to low level computer instructions. Without those things you will have to write millions of zeros and by hand and even the smallest mistake could break your code. Basically you're using other programs to make your program "relatable" to a computer and not just a bunch of text.

There are 2 kinds of programming languages: compiled languages and interpreted languages.

Compiled languages (e.g. C, C++, Java, C#, Go, Kotlin) need programs named compilers (each language has at least one) which will analyze your code and if it's OK it will spit out an executable file.

Interpreted languages (e.g. Python, JavaScript, Ruby, PHP, you could include HTML and CSS too) need programs named interpreters (each language has at least one) which will analyze your and execute your code on the fly. For HTML, CSS, JavaScript, the interpreter is included in your browser.

In general, complied languages are faster than the interpreted ones. If your code has errors there is an additional step called debugging where you will try to fix them. Mind you, even if your code is executing, you could still have logic errors and you will not get the expected results. Debugging includes fixing those logic errors too.

This step is equivalent of that piano key hitting a string and making a sound.

3 Output. This is where you get the results of your code. For instance, you could see on your browser an HTML page you wrote on the first step. Or your app you wrote on the first step running.

This step is equivalent of hearing the sound made by that string which was hit by the piano key.

I hope my explanation made sense to you.

6

u/billythekid825 Feb 13 '19

Sublime text 3

19

u/ZoroastrianChemist Feb 13 '19

I started learning HTML on notepad, and then on notepad++. But i would advise learning on a website like free code camp or team treehouse for a while until you’re ready for a full dev environment on your computer. Not that it’s complicated, but it’s just easier to let other people manage project files and use their terminal while you’re learning.

10

u/DooRagtime Feb 13 '19

Heres what I did, and I highly recommend this: look up the Odin Project. The first few steps in that free learning program involve setting up a proper IDE.

5

u/[deleted] Feb 13 '19

I’ll kind of agree that this is a weird question to answer, the strange part being that it’s totally not a beginner-friendly topic.

However, I think probably the easiest thing you can do is use an IDE (possibly IntelliJ for java, PyCharm for python, R or RStudio for r, etc.) which will let you create a project and/or file in which you can code. Probably the easier languages to get involved in would be Python and R, and then maybe Java or C#.

C# is pretty much the same as Java with some very minor differences here and there, but you usually use the Microsoft Visual Studio suite, which can be a bit overwhelming for a beginner.

A decent up-and-coming editor for multiple languages is Visual Studio Code, not to be confused with Visual Studio. You can run many different types of programs in different languages with plugins. Configuring some languages is easier for some than others, but it’s pretty simple if you use Python with it.

Good luck!!! :)

5

u/8483 Feb 13 '19

You code in regular text files.

  1. Open a new notepad file, "Untitled.txt".

  2. Paste the following HTML "code" there:

    `<!DOCTYPE html>

    <html> <head> </head> <body> Hello world! </body> </html>`

  3. Rename the file into "index.html".

That's it. You have a website. Open it by double clicking it. It will show a web page with some text.

To make it accessible to everyone, you'd put that file on a server somewhere with some IP address, and give that address a name like www.website.com

4

u/paper1n0 Feb 13 '19

An editor or IDE like others have pointed out. The best one depends on what language you're trying to use. Simple is better when you're starting out. For Java there's a simple IDE called BlueJ. Lot's of people like to use Eclipse for various languages but it's complex. For a simple program you could even use the built in text editor like Notepad in Windows or TextEdit for Mac. No bells and whistles with this approach. I often just write short pieces of code in those or even a command line based editor like Vim (a useful thing to know about). There are even websites that have IDEs available on them where you can try out code you write. Repl.it is a good site for this, as is TutorialsPoint.com

In the end the IDE or editor you use should be one that you find useful! I've used a Atom, Geany, Code::Blocks, Eclipse and a few other applications and I think they all have their pros and cons. It really depends a lot on your needs and what you're trying to create.

1

u/full_snack_developer Feb 14 '19

Hi, if you want one on one trainning, you can contact me. I'll help you build an project from scratch.

1

u/All_Joking_a_Salad_ Feb 14 '19

Yes, please! I'll PM you.

3

u/Lars_Sanchez Feb 13 '19

I feel like this should be the very, very, very first thing any code teaching course/guide/tutorial/random reddit stranger trying to set up guides on how to code/website trying to teach code should tell people. But they never do...

3

u/TheOtherDanielFromSL Feb 13 '19 edited Feb 13 '19

...and here I thought the Vim/Emacs debate had permeated every human soul.

I kid.

As someone else said, an editor is all you need to start programming.

"An editor?"

Yep. A text editor - even Notepad on windows will work for something as simple as HTML (which isn't a programming language - but can get you seeing results quickly and is fun to start learning).

Open Notepad, write <h1>Hello World</h1> in it and save the file as "helloworld.html" (be careful: it may want to save as helloworld.txt - which is not what you want) on your desktop. Open it (should open with a browser) and you can see your work. You've done it. You have written code.

"But I want to write Python!" you might say. That's fine - now that you understand you open files with an editor (I prefer Visual Studio Code - but there are tons more) - you can pick an editor that suites your style - and follow the tutorials from here on out. If you're on Windows you can use the command prompt for things that require a 'terminal'. You find that by hitting the start button and typing 'cmd'

Editors? Yes, text editors. Of which, there are tons. Visual Studio Code (popular), Sublime Text 3 (older), Atom (popular), Notepad++ (older), Notepad (very, very few people actually just use notepad), Vim (difficult to learn), Emacs (also difficult to learn), and a multitude of others. People say once you learn Vim or Emacs - you'll never use another. I don't use either, so I have no dog in that fight (and it is a fight between those two camps).

"Someone said IDE" - sure. It's basically an editor on steroids. It tries to help you out intelligently by putting tools dev's use together into one nice program for you. For example with Python, people like Pycharm because the terminal is right there, it has wonderful built into git functionality and a multitude of other reasons. All that stuff is built in out of the box. Different languages have IDE's that work 'better' with them. For example - Pycharm is great for (you guessed it) Python. That same company makes an IDE called PHPStorm - guess what language that is good with? If you said PHP, you're right. Eclipse is the go-to (or used to be) for Java. The list goes on. But overall? Anything you can do with an IDE, any code you can write - you can also write with a plain ole text editor. The IDE lets you know when you make mistakes particular to that language. If you forget a period or semicolon it tells you, it tries to suggest function names (autocomplete), it tries to help you. I think they are more confusing to beginners however - because you tend to trust the editor more than yourself.

Just use a regular text editor (IMO) to get started in whatever language.

Good luck, enjoy the journey. Try to remember not to get discouraged and realize that the 'desert of despair' is a real thing that programmers come up against.

3

u/Yo_Gotti Feb 13 '19

Just search for brackets.io you’ll be able to code on there. Alternatively even things like notepad or note++ are sufficient. Brackets is mostly importantly free, it’s also very handy and superior to plain notepads though.

3

u/kraemahz Feb 13 '19 edited Feb 13 '19

It's much easier to understand this if you just see someone do it from scratch, but it does depend on the environment you're in. Windows would be the hardest place to get started, so I'll start there.

How to start programming on Windows (in python):

  1. Install python from here https://www.python.org/downloads/

  2. When using the installer make sure you add python to the PATH variable (it will ask you, just click the check box). The PATH variable is where an operating system will look for an executable when you type, e.g. "python" into a terminal. If python is not in the PATH it won't know how to run it.

  3. Now open the "cmd" terminal. Fastest way? Press Windows Key + R and then type "cmd". You'll see something like this:

    Microsoft Windows [Version 10.0.17134.523] (c) 2018 Microsoft Corporation. All rights reserved.

    C:\Users\Me>

  4. Type "python" into the terminal. You'll see something like this:

    Python 3.7.0 (default, Jun 28 2018, 08:04:48) [MSC v.1912 64 bit (AMD64)]

    Type "help", "copyright", "credits" or "license" for more information.

    >>>

  5. What is this? It's a REPL running inside the Windows terminal. REPL = Read, Eval, Print, Loop. Meaning it will read your input, evaluate it as Python, print the result, and start the loop over. It's the fastest way to just write some Python!

  6. >>> print("hello world")

    hello world

    >>>

  7. You're on your way! That was your first program! And you can do a lot more inside a REPL, it's just Python! Open files, write "hi mom" into them, and so forth.

    >>> with open("my_first_file.txt", 'w') as f:

    ... f.write('hi mom\n')

    ...

What does that all mean? Well that's up to you to learn python now to find out...

3

u/cyrusol Feb 13 '19

You need a text editor to write code in and a compiler for the specific programming language you are using to turn it into an executable. That's the reductionist view at least, you cannot take any of these two things away although there are dozens of other things that I just left out for simplicity.

HTML5 is not a programming language. Therefore there aren't any compilers. It is a markup language. That means certain pieces of text get more semantic meaning (and some default styling) through tags. There is a program that interprets HTML files, builds a tree data structure called the DOM and then renders it visually. That's your browser.

3

u/Pavelosky Feb 13 '19

Hey there, I see that many people have already answered your question and you're surprised by a friendly response. I do some coding in my free time (nothing serious, just for fun) and all I can say is get used to people being super helpful and friendly, there is no hate, no stupid questions, no laughing off, people just want to share their knowledge. Good luck ;)

3

u/thiagola92 Feb 14 '19 edited Feb 14 '19

Tool

You need a tool to write code, this tool is called text editor
Example: Notepad, TextEdit, Gedit, Notepad++, Sublime, Atom, Visual Studio Code...

Don't confuse with tools that are word processors
Example: Microsoft Word, Google Docs...

Word processors are tools to let the document elegant, they let you put image on your document, make your text bold/italic/...

Text editors are tools that help you write plain text (no image/video/table/bold/...).

IDE (Integrated Development Environment) is a tool that tries to put everything that you need to write code in one tool.
Which IDE should you pick? Depends from the language and others things.
Example: Eclipse, Visual Studio, NetBeans, PyCharm...

Compile/Interpreter

There is many languages and you will choose one, now let's say that you wrote
print("Hi, this is a message from reddit")
You need to transform this language to machine language, for this you will use one compiler/interpreter.

Each language have your Compile or Interpreter, so you have to find one for your language and install.

Terminal

Windows have prompt or powershell
Mac/Ubuntu have terminal

Just search they on your machine and you will find them.
You can use them to navigate through your computer and open/delete/run files.

Example

  • I installed Python on my machine

  • Opened Notepad/TextEdit

  • Wrote print("Hi, this is a message from reddit")

  • Saved as myCode.py

  • Opened Terminal

  • Navigate to the directory/folder with mycode.py

    • write "cd + PATH TO DIRECTORY"

    • example: cd C:\Users\ThiagoLA92\

  • Run your code writing py mycode.py on terminal and pressing enter

    • On the terminal will appears Hi, this is a message from reddit

How can you see this can be a little annoying, sometimes you don't open terminal, navigate to folder and run by writing. IDE normally have implemented buttons that do almost all this parts.
Some text editor can be enchanted to be as good as IDEs

Language

How do I literally start a project?

Depends, what you want to do? Each language can help you better with something.
For example, is good to know javascript for websites
SQL is good for databases
Android uses Java or Kotlin
Get it?

If you don't have a project in your mind, just learn one simple language to have an idea about how they work. They are not too much different, is not like Japanese and English.
Just go have fun with whatever you choose.

10

u/Hugsy13 Feb 13 '19

Best start with a computer

2

u/[deleted] Feb 13 '19

Granted, I did happen to learn this "from" a computer as well, I actually spent quite a bit of time with a piece of paper and a pencil hand-writing out how binary languages work/ are written. I thought it was fascinating. Helped me really grasp the fact that, at its base computers - though they may at times seem like 'magic', are merely a stone-cold (or usually hot, rather) machine.

1

u/angyts Feb 13 '19

I think most importantly you need a *MENTOR” or a Friend who can at least show u where to get started. And start with the end in mind. Tell us what exactly you want to build and what problem you want to solve. It’s easy to drown in the world of programming. Most of us work in teams nowadays. Start joining one.

1

u/All_Joking_a_Salad_ Feb 13 '19

I'll DM the details. Thanks!

4

u/[deleted] Feb 13 '19

Use Visual Studio Code, it's free and has extensions for a plethora of languages and additional features. Definitely the best IDE on the market

→ More replies (1)

2

u/darkbluedeath Feb 13 '19

What your looking for is an IDE (Integrated Development Environment) or a text editor (there's more than you might originally think there is).

Most languages have a preferred IDE (think Eclipse for Java, Android studio for Android developer, etc) but you can probably start with Visual studio code, which is Microsoft's opensource IDE and is pretty good as an IDE.

Once you have an IDE/text editor you can find/use a compiler to make your code into the website/app that you're coding. Most modern IDE have compilers built in.

I found this guide that walks you through making a simple website using VS Code and this guide for a more thorough walk through of VS Code.

2

u/dhavaltawar Feb 13 '19

For programming projects, there are boilerplates available for all types of frameworks and technology, which can be your basic structure. Then as others are saying you must have IDE. There are IDEs available online too, if you just trying small project or snippets. Like for javascript/html/css, you have https://stackblitz.com/. There are more just for javascript. You can even select boilerplates in these and quickly get started. Even you can run/preview/share your app/code easily.

For local setup, for IDEs you should search best ones for specific technology. Tutorials on how to set up your technology environment , run your app and deploy them are also easily available on internet.

Let me know if you still have any confusion, I will be happy to help.

2

u/[deleted] Feb 13 '19

Visual Studio Express is perfect for that. You can just press F5 and have your first hello world applicaton running in seconds after a simple clilck-click installaton. Also, no need to install and configure web servers if you gonna do web apps. Just hit F5 and your page will open for you in the browser. The grass really is greener with Visual Studio.

2

u/greebo42 Feb 13 '19

The "piano" that you'd sit down to play would be the IDE.

The IDE hides a lot of the business of translating the text from whatever language you're working in to something the computer can use.

HTML may not be the best example, because it's mainly a way of formatting display, not designed for general purpose software development. But whatever language you choose, the idea is that you have some piece of software that manages what you type in and handles that conversion to what the computer can run.

There was a time when we didn't have IDEs. You'd have one piece of software (a text editor), you'd edit the source code in one or more files. Then you'd have to run a separate piece of software (the compiler) to convert the source code to object code. And you'd have to run another program (the linker) to put it all together. [This describes only one of several ways to develop a program]. IDEs "integrate" this into one place - the integrated development environment.

So, if you are setting out to learn a general-purpose programming language (for example, Python), find an IDE, download it, and start playing with it.

2

u/iownacat Feb 13 '19

Jetbrains

2

u/Lineage_Human Feb 13 '19

Sheesshhh took forever to find you. If he’s aiming for python, PYCHARM PYCHARM PYCHARM

2

u/THAREALPATB Feb 13 '19

Its cool seeing this because i used to wonder the same thing for the longest and it bothered me. I was actually scared to ask so i just kept searching the web and looking at youtube. Anyway to answer the question what i found is good to use is any text editor as mentioned above and my favorite to use is notepad++ and it is free. I only do web development though so there may be other things that have to be used for some hardcore programming

1

u/THAREALPATB Feb 13 '19

Oh also i forgot to mention, once are done with you coding in the text editor if you want to see if your code worked or is right then there is more to it then just having a text editor or notepad++ . For HTML you will save the text document as.html and then when you open the document you need to right click and open with whatever web browser you use. Sometimes if the document is saved as .html your computer will already know what to open it in a web browser, it will open the document in the web browser with the path to the file as the url. Now for any other type of programing you will need to run it in a software environment known as integrated development environment (IDE) set up for the type of coding you are doing, this can be done by installing certain software on a server if you have or on sites that host for coding. Microsoft, google and apple have some free software course to get people to make apps for them. I know Microsoft and google are free, I’m not sure about the rest.

2

u/AmIThereYet2 Feb 13 '19 edited Feb 13 '19

I'm glad you're feeling comfortable with your development enviornment! I just wanted to make a few comments.

Notepad++ is nice but there are other lightweight text editors with WAY more power. I absolutely love Visual Studio Code, but Sublime Text was my go to for a while. I highly recommend exploring one of these more powerful editors.

The other thing is that you don't actually need an IDE to run your code. When you click "run" in an IDE it Compiles your code into an executable (turns your English-looking words into 1s and 0s that the computer can read) and then runs it. The compiler itself is most likely not even a part of the IDE, but a totally different program that gets installed at the same time. Pretty much any compiler can be invoked through the command line without ever opening an IDE.

Edit: it also sounds like you're a little confused about what servers are for. Servers are just computers specifically designed to run programs that can be communicated with over the web. It's possible to run a server on your personal computer or buy a computer and set it up at your house to run the program, but the easiest thing to do is just give your program to a company that will host it (Like Amazon Web Services (AWS) so you don't have to worry about it.

When people are developing programs for servers, they are almost certainly doing it in a regular old IDE on their computer. It isn't until they're ready to publish a production version of their backend application that they'll actually host it on a server.

For example, the reddit android app is probably developed using the Android Studio IDE. When they are ready to publish it, they compile the app executable and publish it to the app store. Anybody can then install the application on their phone and run it without any servers (except the google play store servers where you can download the app from). However, all of the data (posts, users, comments, etc.) is all hosted in a totally different application that is running on servers. So the reddit app installed on your phone geta all of its data from another program which is running on Reddit's servers.

Websites are a little different in that they are not compiled, but are interpreted. So when you have a production ready website, you host the html & css on a server somewhere. Then you use an internet browser program to reach out to the server that is hosting the website, download the code, and interpret it into what you see.

So the reddit mobile app and the reddit website are both client apps. Neither one actually stores any data. The mobile app is a compiled executable that runs on the phone and the website is code that gets retreived from a server and interpreted by an internet browser. All of the data is hosted on a totally different server which both the app and the website can communicate with.

TLDR: There is a difference between interpreted and compiled programs. Compiled programs like mobile applications get turned into an executable containing 1s and 0s that the CPU in the computer can read. Interpreted programs like websites get rendered in real time by interpreters like the one in your web browser. Servers are just computers that are really good at talking over the internet. Intepreted programs like websites can be hosted on servers, and compiled applications like databases can be hosted on servers. The websites get retrieved from the server with the IP address and rendered while the databases are standalone applications that can be communicated with by any other program on the internet that knows the IP address.

→ More replies (5)

2

u/realvmouse Feb 13 '19

Personally I never figured it out, so I do javascript stuff in Google Docs Spreadsheet :P

2

u/Catatonick Feb 13 '19

For PC I usually use Visual Studio 2017, Visual Studio Code, Sublime Text, Notepad++, Atom, Eclipse, or one of the Jetbrains products.

For Mac it’s typically Xcode, Textmate, Sublime, Visual Studio Code, Visual Studio, Coderunner, eclipse, or one of the jetbrains products.

You can write your code nearly anywhere which is why a lot of people don’t actually tell you where to do it and a lot of books will tell you command line methods of running it. Really it just boils down to finding something you like and know the shortcuts on. Your code doesn’t care.

2

u/the-ryanuk86 Feb 13 '19

Atom, it's free. Lots of pluggins for html work. Fly my pretty, fly! ✈ ✈

2

u/[deleted] Feb 13 '19

A simple text editor like Notepad or Notepad++ is good if you’re starting off. Then once you advance, move onto something like Visual Studio, Atom or Brackets. They are IDEs and will give you more tools over Text editors.

2

u/[deleted] Feb 13 '19

I use atom! I'm a beginner programmer, and find it to be very intuitive. I believe there is a terminal you can download as well that runs within Atom, but i just use my computer terminal to compile and run. It also doesn't have as many built in features as, say, Codeblox or whatever it's called, so you actually have to learn how to debug. I am sure you can download wonderful debugger addons and what not, but even as a beginner the standard Atom software works wonders for me

2

u/buffjeremy Feb 13 '19

I like atom as well. It starts barebones but has all sorts of things you can add.

2

u/Waifu_422 Feb 13 '19

Definitely DM the people here who offered to walk you through it. When I started I was completely lost and would never have figured it out without the people who walked me through it. There are just SO many resources to sift through, don't try and do it alone.

2

u/whiskito Feb 13 '19

You can start with Scratch if you want something easy and fast, just as introduction about programming.

https://scratch.mit.edu/

2

u/skrish1 Feb 13 '19

A code playground will be a good start. There are my out there. Google it.

2

u/Double_A_92 Feb 13 '19

To mess around with little temporary projects I use repl.it . There are lots of languages to pick from and it just works instantly.

2

u/themaka Feb 13 '19

Try Repl.it - an online IDE that also runs your code.

2

u/Xaxxus Feb 13 '19

Visual Studio Code is the answer to your question. It’s a jack of all trades editor for many different programming languages.

If you want something more powerful, you need to start looking at IDEs. There are many free and paid IDEs. Jetbrains is generally a good company if you want to find an IDE for anything. They have some free community editions of their IDEs, but not all of them.

If you want to do development for Microsoft platforms and languages, visual studio (not to be confused with visual studio code) is the place to go.

Android you have android studio or IntelliJ. Or if coding cross platform with xamarin you can use visual studio.

iOS you have Xcode and AppCode. If you are using a cross platform framework like xamarin, you would use visual studio.

Java you have eclipse, netbeans, or IntelliJ (my favourite)

There are dozens and dozens of IDEs the list goes on forever.

But if you are a beginner, visual studio code is a good place to begin.

2

u/[deleted] Feb 13 '19

Choose a language. Do you want an easy place to code in a beginner language? Pycharm's the place. Do you want to get into web development? Notepad++ supports HTML, CSS and JavaScript as well as MANY other languages. Choose a level and a goal and ask again.

2

u/codeobserver Feb 13 '19

This is a very good question. In the '80s all home computers had BASIC language built in. Even to load a game required to type at least one BASIC command.

Nowadays, the programming environments are hidden from general public. A good option if you are a beginner is to use a site such as codeguppy.com which offers JavaScript tutorials as well as a built in code editor and storage space for personal programs.

2

u/remludar Feb 13 '19

Probably an unpopular answer, but when I taught myself to code Java (around 2011), I just bought a Java certification book and learned in notepad.

It's not as fancy and useful or as easy as using an IDE, but it really helped me become more familiar with how coding actually works.

Either way, good luck to you. You can do it. Just try hard and don't give up. Nothing worth learning is THAT easy after all. :)

2

u/[deleted] Feb 13 '19

There are so many great answers here but some have failed mention that after you set up your IDE, you need to set it to the dark theme.

Most IDE’s have a default light theme with a white background and dark text. This is unacceptable. People will doubt your competency as a programmer. Change the IDE to dark. And no one can help you with this. You must discover it on your own. A fact we all learn on our own. It fills us with a sense of pride knowing that we are different from the inexperienced coders who have IDEs. Be different, just like everyone else!

2

u/OldWolf2 Feb 13 '19

You can code online, e.g. here. There are dozens of such sites.

2

u/Skysorania Feb 13 '19

This is a following question on the OPs topic, because I've always wondered about it.

How can I make my code executable for others? (Java)
I mean, I use the IDE to play around with the code and then click the "Run" Button and I see the result. Only I see it, no one else. Not like the other people open the IDE, import my code and the run it.

How can I transfer my code to other people, so they can install it and run the example ".exe" file. Programs like photoshop, calculators etc.
I mean, android code has apps that I can install on my phone. But how do I built the finished "app" with the Editor?

2

u/displaza Feb 13 '19

Personally I use Sublime Code 3 as my go-to. Has very nice syntax highlighting and extra packages you can download.

If you're going to start out with Python you need to have the file saved as "insertnamehere.py" with the ".py" being essential else it won't run, trust me I found this out the hard way. Then as long as you just build and set the syntax highlighting to Python you should be good to go.

2

u/[deleted] Feb 13 '19

Messing around space for the front end is in inspecting elements. (It's what properties are to computer files).

Jamming on the web console is a piano lesson in itself.

Switching code files to actionable (.js) names is beginner's scripting. (Single sheet sharing - Mary, had a little lamb).

Learning to use a terminal/command interface is learning written music.

Using a programming language for use in script, console, or compilation is written music.

Piping and processing through other apps is amplifiers 101.

Compiling with a compiler is setting up the sound engineering. (Basic usage is more like busking).

*Sorry if connotations appeared.

2

u/LeStankeboog Feb 14 '19

NOTEPAD.EXE - to get started, all you really need is a little hunger for knowledge and a word processor. As you progress, you will be compelled to move to an IDE or something like Notepad++ that has built in support for formatting your code automatically or maybe even a built in compiler. But that's what is so cool about programming. You can sit down in front of any computer and do it, some languages dont even have to be compiled (Python). You can magically make something out of nothing.

2

u/[deleted] Feb 14 '19

Check out coding train beginner tutorials he is really awesome at explaining and you see him set up for his project each time, he walks you through everything and you see him in the moment debug and make major changes. Watch his how to videos, they really helped me in my programming chops. https://www.youtube.com/user/shiffman

2

u/SquareL1 Feb 26 '19

i was having the same issue; thanks for asking for me.

3

u/[deleted] Feb 13 '19

If you want to really just play around with “coding” like the examples with the piano you said and If you have zero experience, I would recommend a slightly slower approach and that is to start with Scratch, which is visual programming where you connect boxes and they do something. It is easy to understand and will teach you basics of programming logic. But if that is not what you are looking for then other comments already gave you some good answers.

2

u/jasonleehodges Feb 13 '19

I think the big thing you’re trying to figure out is how to see something that you’ve created. But that all depends on what you are trying to do. If you want to build a website, you have to host that somewhere on a server. Look into the client -> server model of http protocol.

If you are trying to create a game, there are a bunch of frameworks out there that can help you see something to run on the computer itself.

You might be best off making a little sample app that you can simply interact with from the terminal. But to best answer your question, it would be ideal to know what you’d like to do.

1

u/dkayzee Feb 13 '19

if you're not ready for any of these commitments, check out repl.it or codepen.io

1

u/Schamallam Feb 13 '19

One of the best ways to get the most basic feel for the tools of a language is a "hello world" tutorial. It's basically just an example of how a programmer would get a given language to display "hello world" to the screen, but along the way you'll download all the essentials of the language. From there you can experiment and get into the real meat of the language.

1

u/mritraloi6789 Feb 13 '19

TensorFlow For Machine Intelligence A Hands-On Introduction To Learning Algorithms

--

Book Description

--

This book is a hands-on introduction to learning algorithms. It is for people who may know a little machine learning(or not) and who may have heard about TensorFlow, but found the documentation too daunting to approach. The learning curve is gentle and you always have some code to illustrate the math step-by-step.

TensorFlow, a popular library for machine learning, embraces the innovation and community-engagement of open source, but has the support, guidance, and stability of a large corporation. Because of its multitude of strengths, TensorFlow is appropriate for individuals and businesses ranging from startups to companies as large as, well, Google. TensorFlow is currently being used for natural language processing, artificial intelligence, computer vision, and predictive analytics.

--

Visit website to read more,

--

https://icntt.us/downloads/tensorflow-for-machine-intelligence-a-hands-on-introduction-to-learning-algorithms/

--

1

u/PC__LOAD__LETTER Feb 13 '19

If you have a mac, pop open a terminal. If you have Windows, I'd recommend grabbing a free-tier AWS instance and connecting to it over SSH via PuTTY.

Basically what you want is some sort of Unix terminal.

Of course, there's tons of IDEs and such that you can download and and build/run code directly from. That's another route.

1

u/Rogermcfarley Feb 13 '19

If you have a Mac or Linux. Type IRB which gives you a Ruby interpreter. Type Python and you have a Python interpreter. Type 1+1 in to each you'll get 2. That's your first simple play around.

Next open up Google Chrome, right click on a website click Inspect and then go to Console. Clear the contents using the no entry symbol or press CTRL L and type console.log('hello world') and it'll print hello world. Congratulations you just started using JavaScript. The point with these examples is that often you don't even need to install anything to start messing about.

1

u/[deleted] Feb 13 '19

In windows, the 'terminal' is a program called the command prompt (type cmd in the windows search bar, cmd.exe is the executable name in windows. Each linux distribution has their own terminal, eg Ubuntu 18 has gnome-terminal).

The command prompt runs programs windows (or linux) can find in the folders listed in the system variable called 'PATH'.

Directories on the path are search when you type a command in the command prompt. For instance if you install Python on windows, this is how you tell the command prompt to recognize its there: https://superuser.com/questions/143119/how-do-i-add-python-to-the-windows-path (You can also check the check-box on installation to have the Python installer add it for you)

You can open a terminal and run 'dir' (windows) or 'ls' (linux) to see what files are in the current directory. You can also open the terminal and run 'python MyScript.py' to run Python.exe (Windows) or python (linux) with an argument file path of MyScript.py (Assuming you put Python on your PATH).

1

u/[deleted] Feb 13 '19

Using an IDE could be helpful but when you are starting out, you should really stick to using a text editor such as sublime text or atom and use the terminal to compile, run and debug the program. This way you get to learn from the basics and get to know the so called "boilerplate stuff" which an IDE would have automatically generated for you. However, since you mentioned HTML5, you won't need an IDE/terminal for it as it is not a programming language. You can simply write your code in a text editor and open it in any web browser. Chrome and Firefox have developer friendly features such as inspect tool which you can use to tinker and preview HTML5 changes in your code on the go.

1

u/vfxdev Feb 13 '19

Not in the bath tub.

1

u/xdchan Feb 13 '19

Find some info about "sublime text 3", and plugins for it, really good and easy for start

1

u/kamomil Feb 13 '19

You can type HTML into Notepad, save it on your hard drive, open the same file in a browser, so you can see your webpage. Images can go in a folder, include the path name in your HTML tags.

Then use an FTP program to upload it to your webpage server... done!

1

u/[deleted] Feb 13 '19

Theodinproject.com

Will walk you through this and a lot more.

1

u/neck_crow Feb 13 '19

The difference between making somethibg artistically and doing something like programming is that you must be correct for the latter. With art, you try again and again until it looks/sounds good.

You can't do that with a program. It must be correct (at least to a basic level) or else it cannot run. I wouldn't compare the two. I'd say its more similar to trying to do calculus without knowing any of the terminology/symbols.

1

u/[deleted] Feb 13 '19

YOU SHOULD NOT WRITE CODE ON A BOAT. YOU SHOULD NOT WRITE CODE WITH A GOAT. YOU SHOULD NOT DO IT IN THE RAIN. NOT IN THE DARK! NOT IN A TREE! NOT IN A CAR! HECK NO I SAY! YOU SHOULD NOT WRITE CODE IN A BOX. YOU SHOULD NOT, COULD NOT, WITH A FOX. YOU WILL NOT DO IT IN A HOUSE. I SHOULD NOT DO IT WITH A MOUSE. YOU SHOULD NOT DO IT HERE OR THERE. YOU DO NOT WRITE CODE ANYWHERE!

2

u/[deleted] Feb 13 '19

Dr Z++

1

u/Calvinbolic Feb 13 '19

A text editor such as sublime text, atom, visual studio etc. Save your file as the file type you're programming in before you get to coding so it highlights the specific syntax for that language.. Ex: save python files as .py, JavaScript files as .Js, HTML files as .HTML, java files as .java and so on.

1

u/FlashyQpt Feb 13 '19

I started with processing. http://hello.processing.org/

It's very straightforward without everything being abstracted away

1

u/[deleted] Feb 13 '19

People have mentioned a lot of IDE's here I just wanted to throw my favorite out there to give you another option:

IntelliJ IDEa

1

u/Deathspark21 Feb 13 '19

I use neo cities. Can make a little slice of website whatever you want

1

u/fick_Dich Feb 13 '19

Hey guys, let's start an emacs vs. vi debate(for OP: these are two text editors commonly used, that have the tendency to polarize).

1

u/CodeTinkerer Feb 13 '19

There are typically three choices

  • Download the language and install it, then install an IDE.

  • Find a website that offers a REPL (e.g., repl.it). The downside is that you may not be able to save files, etc.

  • Find a cloud IDE (I9) which has the language you want set up (essentially, you're coding in a remote location in the cloud, rather than locally on your own computer).

The last 2 depend on Internet access while installing it locally means you can code even if you aren't on the Internet.

1

u/[deleted] Feb 13 '19

If you are looking at a place to get started learning code, I started through codeacademy.com and udacity. However, if you're looking at a IDE then there is microsoft visual studio, notepad++, Clion, and eclipse. Depends on your preferences for which one.

1

u/34ch Feb 13 '19

You need a text editor. Whatever is installed on your system will do. When I started learning HTML, CSS, and PHP years ago, I was doing it all in Notepad in Windows.

1

u/One-Reborn Feb 13 '19

When I was learning Javascript, I mainly learned by messing around on an EXPO snack. I really recommend checking it out if you ever wanna try programming javascript.

1

u/[deleted] Feb 13 '19

You will want to install a "compiler" which is a software where you write in the code, and it "translates" it for you, to "run" it.

Pretty much your code is written in english language, and the compiler translates it into binary for the computer. There are many compilers out there. If you are trying to learn how to code python, there is one for python. CodeBlocks is a famous compiler (not one of my favorites) and it works. For Java there is NetBeans. I use Xcode on my mac to code in C++

1

u/bluefootedpig Feb 13 '19

https://visualstudio.microsoft.com/vs/getting-started/

Visual studio is a world class application with a "community" free edition. It is heavily used in the industry, and can do anything, plus there is no shortage of tutorials.

1

u/McBashed Feb 13 '19

I found the program brackets to be user friendly

1

u/boxdustin1 Feb 13 '19

Eclipse for Java is good.

1

u/JMB1007 Feb 13 '19

https://www.jdoodle.com/

It's an online editor and compiler that supports a bunch of different languages.

1

u/reality-effect Feb 13 '19

Jetbrains has really good IDE's: https://www.jetbrains.com/

1

u/stratcat22 Feb 13 '19

Short and sweet, download Sublime Text Editor. VS Code is my personal favorite, but for a beginner Sublime is the best choice imo.

1

u/remedypc Feb 13 '19

Notepad.exe

1

u/KwyjiboTheGringo Feb 13 '19

Quickest way to play around is with codepen.io. But as others have said, VSCode is the way to go if you seriously want to make something.

1

u/MaximumSeaworthiness Feb 13 '19

Processing :) download it, it's got a great reference library and tutorials, it's baby java :D

1

u/[deleted] Feb 13 '19

One thing to keep in mind is that source code files are literally just text files. You can open up notepad on Windows and write code, that is like your bare-bones starting point. You don't even need a special editor or IDE.

The tricky bit is how you use that text file, it varies from language to language and often you need to add a different extension to it, not just '.txt'. You then need to feed that file to a compiler or interpreter. But don't worry about what those are too much right now, just keep in mind they are other software programs that use the code you write to make something happen (whether it be a C compiler or a web browser) and you need to look up how to use them. This will apply to any language you choose to use.

1

u/MrAbnormality Feb 13 '19

Download Sublime.

1

u/Humbersome_44 Feb 13 '19

Repl.it is pretty good if you want to code on most browsers

1

u/SuperTuxCZ Feb 13 '19

I recommend visual studio code

1

u/[deleted] Feb 13 '19

VsCode Eclipse Visual Studio Netbeans

1

u/[deleted] Feb 13 '19

You want a text editor (Atom is recommended if you're new to this) and you want an IDE (which is a matter of taste and preference for a language you're doing in).

1

u/whitelife123 Feb 13 '19

My favorite text editor: notepad

1

u/pagwin Feb 13 '19

given that everyone else is already talking about ide's and stuff I think I'll help out with a different part

Where is the terminal in real life?

there are 2 answers too that question

  1. Command prompt/cmd(for windows at least, though I don't recommend using it unless you have too)

  2. probably what you mean it's an interpreter for an interpreted language(python, javascript, ruby, ect.) there are online versions of some of these

python

javascript(not gonna link an online interpreter you can just hit ctrl+shift+i to pull up dev tools and just click on console)

ruby

1

u/AsylumForTheFeelings Feb 13 '19

VS Code for best all in one solution

1

u/ruat_caelum Feb 13 '19
  • Here is the cool thing! Coding is INDEPENDENT of everything.

Ada lovelace made the first "programming language" in 1840, as a woman!

http://mentalfloss.com/article/53131/ada-lovelace-first-computer-programmer

Computer code is formal logic

  • All a computer does is follow logical statements. Very simple and VERY PRECISE instructions.

Semanictics aside: Where to code.

  • You can write code in a .txt file in notepad on any computer. Then use a compiler (just another tool) to make that human readable code into machine readable code.

  • You can write code in an IDE ( A big tool that does a lot of checking and short cuts for you.)

  • There are programs for children that let them "Write code" in shapes and colors like a paint program.

Basics

  • All you need to write code is some method for a machine or program to interpret what you wrote. So it might suck if you have to punch paper cards to get looms to weave cool patterns because all they know is paper cards. But it might be easy if what you have is a Tool-chain So you use your paint program to make the pattern you want. Then that tool outputs its data to a program (another tool) that accepts that data and converts it into an excel file of comma separated values. Then the excel file is passed to another tool (this one a physical machine) that outputs the data from the comma separated values list, onto physical paper cards, so they can be loaded into a loom that reads them and produce the pattern you wanted.

Text files -> make -> compiler -> linker -> program is all one big tool-chain that most people never see. Most people open up an IDE (a super tool) that does all that other stuff for them.

Most important thing!

  • Code is independent of everything because all code is: is formal logic. You can express that formal logic in hundreds of ways. And depending on what tools you use those ways have different rules.

1

u/[deleted] Feb 14 '19

For python, you can use IDLE or PyCharm

1

u/froggifyre Feb 14 '19

notepad of course

1

u/Krishna4352 Feb 14 '19

Hey

You can code on Jupiter notebook

1

u/[deleted] Feb 14 '19

Hello there op,

Start with Codecademy and/or free code camp

Their amazing free places to learn code without having to download anything to your computer.

1

u/[deleted] Feb 14 '19

Open Excel, press alt-f11, add a module and a form and you're in business

1

u/jolt2bolt Feb 14 '19

You can even use a plain text editor if you want but the best is an IDE!:P (even the browser have a IDE inside to code web pages or there are online text editor like jsbin or codepen)

There are Lightweight choices like gvim, notepad++, notepadqq (linux), notepad (windows text editor), sublime text, geany (IDE), bluefish, etc...

complete option but with a huge hardware demand are VScode, emacs, brackets, visual studio (IDE), atom, etc...

1

u/ActualGodYeebus Feb 14 '19

repl.it is a pretty nifty website. It supports quite a few different languages, and it's just a free-space to code whatever. I believe it supports multiplayer too!

1

u/bb-bgls Feb 14 '19

My favorite IDE is Netbeans, it can handle everything and free to install and use. The great tutorials for Netbeans is a good reason to use it. The install might be a little difficult for you but it would probably worth it.

1

u/lllluke Feb 14 '19

Idk what kind of hack tutorials you've read or watched but learning what a text editor is is pretty much step number one in 100% of programming courses.

1

u/[deleted] Feb 13 '19

vim

1

u/name-generator-2000 Feb 13 '19

Notepad if you are up for a challenge. ;)

4

u/d4harp Feb 13 '19 edited Feb 13 '19

You joke, but using notepad in the early stages of learning code is extremely useful. It really drills in the importance of things like indentation and bracket matching

1

u/gibbypoo Feb 13 '19

Notepad or any text editor

1

u/1v1ltnonoobs Feb 13 '19

i sincerely don't mean to come off rude, but when I google "where do i code" i get a ton of answers that are similar to the comments posted here.. did you not just google it?

0

u/Shwayne Feb 14 '19

I mean I don't want to sound rude, but if you "can't find it anywhere" (while most tutorials, say official Python, start out with setting it up) you need to learn how to search for information before starting to learn how to code. Without being able to look for information you will not be able to learn how to code.

1

u/All_Joking_a_Salad_ Feb 14 '19

Well I went on Reddit and got many great recommendations and met some lovely people in the comments, so I guess I'm pretty good at searching for information.

0

u/rrespino Feb 13 '19

notepad++

0

u/duysharp1998 Feb 13 '19

You can use any text editor to build a website. Look the docs and practice. Don't use any snippet or autocomplete syntax. Writing code without them would help you to remember syntax much longer.

3

u/Catatonick Feb 13 '19

I disagree. If you can use autocomplete you really want to use it. You won’t really hurt yourself because you still need to know what you’re doing in order to easily find it. There’s no real point in wasting a ton of time typing it out.

0

u/Dipeshw Feb 13 '19

From what I have understood you want to get a touch and feel of programming.. You want to grasp the abstract programming ideas in a visual,user friendly manner. If so use scratch.. You can drag and drop and learn the nuts and bolts of programming by "playing around" just like one would on a piano. Scratch was made so that at the entry level a student understands what computational thinking is. And it is the very essence of computer science.

-2

u/catdogh Feb 13 '19

I suggest looking into thenewboston on YouTube. His tutorials are helpful for beginners.

Other sites for beginners that I recommend : SoloLearn.com Cplusplus.com

3

u/AutoModerator Feb 13 '19

Please, don't recommend thenewboston -- see the wiki for more info about why we consider them a discouraged resource.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

0

u/[deleted] Feb 13 '19

[deleted]

2

u/Smashball96 Feb 13 '19

Just started to learn JavaScript after python and have one question.

<!DOCTYPE html>

What is the purpose of adding this before starting to write?

6

u/Ariakkas10 Feb 13 '19

It tells the browser what it can expect to see. That declaration defaults to html5 but you could specify an older version of the standard.

The browser will still do what it does, but it might help if you're using deprecated tags and stuff.

-2

u/[deleted] Feb 13 '19

[removed] — view removed comment

1

u/desrtfx Feb 13 '19

You're asking for a ban and you got it.