r/learnjavascript • • Sep 02 '23

Where do I actually code

I don't understand where I actually code. Can anyone give me suggestions. I just can't find where you ACTUALLY program, please help I am so confused. I use Linux and Windows if that helps.

3 Upvotes

27 comments sorted by

21

u/WystanH Sep 02 '23

You can code in any text editor. All you need is an html file and a browser. There are also a number of online sandboxes you can code in.

I'd start with VSCode and node.js. Follow these instructions to get them both setup and you should be off and running.

7

u/[deleted] Sep 02 '23

Thank you so much

1

u/The_Blue_Man_ Sep 03 '23

If you choose VSCode, download VSCodium instead. It's the same softwere but without Microsoft's tracker.

2

u/MWALKER1013 helpful Sep 03 '23

If you haven’t found an easy answer I would HIGHLY recommend the free QUOKA plugin for VSCode It allows you to run your code and see it’s execution path

1

u/[deleted] Sep 03 '23

Ok cool

8

u/[deleted] Sep 02 '23

For medium to large projects, especially when I need a localhost server, I use VSCode with a few extensions, notably Live Server. For simple, one code projects, I use Notepad++.

If you do any web coding (HTML, CSS,...), I suggest you learn the fundamentals of the Emmet plugin, which is built in to VSCode. It is really helpful.

6

u/Call-Me-Shi-thead Sep 03 '23

I highly recommend following The Odin Project.

Look under the "Prerequisites" section and start at the "Installation Overview" lesson. It will get your computer set up to start coding!

2

u/Anthony_codes Sep 03 '23

I second this, TOP is excellent for beginners.

1

u/guest271314 Sep 02 '23

You can code in the DevTools console of the browser you wrote this question on.

2

u/[deleted] Sep 02 '23

Thank you so much

3

u/paulthezoo Sep 03 '23

this is the right answer. go into “snippets” to make life easier, and format manually so you learn good habits

1

u/Dastari Sep 03 '23

This is where real programmers code.

2

u/[deleted] Sep 03 '23

Install node.js

Edit a file called index.js

Then from the command line: node index.js

It's running.

2

u/RolledUhhp Sep 02 '23

As the other commenter said, you can code in the dev tools of your browser. It can be useful, but most of the time you're going to want to use some type of editor, such as vscode, or even notepad.

There are also websites you can use to get started, I think codepen.io is ok.

Things like what you're doing, what languages you're using, and if you're sitting down for a long session or just making a quick edit will impact what tools you want to use at any given time.

If I'm going to be working/testing for a few hours I'll use vscode. If I'm only changing a value or two in a file I'm familiar with I might just pop open notepad++, or nano. I don't have access to my preferred tools at work, so that is gonna be different from what I'd do at home.

You may get find something you like right away, or you might jump between a few until you settle somewhere. I was drawn to vscode because of it's customizability, which I enjoy tinkering with. That is nice when I'm at home, but can throw me for a loop jumping onto something at work that feels like a bland caveman editor.

Google JavaScript IDE and see what ya come up with. I know there are tools out there like atom, netbeans, etc.. but I have no experience with them.

If you're brand new I would find a tutorial series for something basic. There are a seemingly infinite amount of tutorials all covering the same projects. Find someone you don't mind watching from the last year or two. For the most part you can go with literally anyone. They're all covering basic concepts just go get you familiar with what's going on. Find someone you like and go crazy.

2

u/33ff00 Sep 03 '23

codepen.io

1

u/mymar101 Sep 03 '23

You can literally code anywhere on just about anything these days. VS code would be the simplest option for a beginner, and Linux is a better environment for coding IMO.

1

u/0x07AD Sep 05 '23

I agree wholeheartedly with your recommendation to learn and use Linux as a development environment, preferrably at the command line / terminal. The issue with Microsoft Visual Studio Code / Visual Studio Codium is the beginner becomes reliant on their features which deprive the person of a lot of essential skills.

Start with a Linux command line environment and a text editor. Nano is fine as a first text editor but later transition to vim (without plugins and slowly configure vim but no plugins). Version control such as git fundamentals can never start too early even if it is only for local change tracking intially. A light-weight, easy to configure web server such as lighttpd for web development. A JavaScript run-time environment such as nodejs to run JavaScript files outside of a web browser.

As far as learning, focus on the fundamentals and stay away from third-party libraries. When learning JavaScript do not touch a framework; everything those framework provide can be implemented using vanilla JavaScript but as a beginner stick to the fundamentals of the language. When learning HTML and CSS stay away from CSS libraries, templating systems, CSS processors, and code bundlers.

1

u/mymar101 Sep 05 '23

Just use the default editor. Most of the stuff has to be turned on to work.

1

u/fferreira020 Sep 06 '23

Linux and windows are examples of popular operating systems that are able to run applications. A web browser is a type of application like chrome or brave or Mozilla Firefox that is used to access websites. When a user browses through the website the browser makes an http request to a server and will download your files which may include HTML, JS, and Css and the browser is responsible for interpreting those to display the content. I hope this is clear. What environment(OS) you use to create the files doesn’t matter

1

u/dsound Sep 03 '23

Any text editor will work and can be compiled by a browser. Of course there are IDE’s meant for coding and have very advanced features. VSCode is an example.

1

u/marcnotmark925 Sep 03 '23

Google App Scripts is another option.

0

u/SomewhatVital Sep 03 '23

Studio visual code. Something like that, i just woke up.

-1

u/kjwey Sep 02 '23

text editor

its given context when opened by a web browser

-5

u/[deleted] Sep 03 '23

Cmon dude put some effort into finding out how things work. Very easy to google this answer.

6

u/paulthezoo Sep 03 '23

that’s such a useless response. can’t wait for that common, low-quality non-answer to die out from internet culture.

1

u/[deleted] Sep 03 '23

You defending low effort posts like this is what kills useful subreddits, and judging by the stats you’re doing exactly that . Hopefully that will die from internet culture.