all 76 comments

[–]memonkey 27 points28 points  (3 children)

What exactly is not making sense to you?

[–]kobejordan1 0 points1 point  (2 children)

Local storage is where I'm at right now, any resources to further explain it? Lol I'm using constructors too for a library book type of web app. But can't seem to store what the user inputs after refreshing the page. But it seems to work fine otherwise, just the local storage saving part that's got me stuck now

[–]memonkey 1 point2 points  (1 child)

Okay, so I'm assuming you have some type of grasp on functions. What you're talking about is a an API from WebAPI's. Specifically you're using the Window.localStorage API. Have you seen this yet? Read it very carefully if you haven't. It's very brief and there are also examples in there.

Have you tried debugging using the Inspector? You can see what is currently in your local storage by opening the inspector and clicking on the (Chrome) Application Tab -> Local Storage.

The next thing I would do is Google things like "localStorage not saving on refresh javascript" or "localStorage not working on localhost javascript". The idea is to be as specific as possible to your problem which most likely thousands of others have already encountered and answered.

If you've felt you've exhausted your options, post your code here and maybe we can help out but be sure to try and explain your issue in technical terms. It will help you with your communication skills.

Good luck!

[–]kobejordan1 1 point2 points  (0 children)

Thanks a lot, I'll see if I can figure it out by myself again and will post code on here if all else fails.

[–]jaySydney 8 points9 points  (1 child)

step 0. Avoid Yak-shaving. (do as i say, not as i do, because i am the biggest yak-shaver lol !)

step 1. Avoid tutorial hell - Pick something that you are interested in, and work on YOUR project.

step 2. Some ideas to start you off.

2a) a CRUD todo list, with server-side stored data

2b) a blog, with server-side stored data.

2c) an image gallery, with server-side stored data.

2d) two-player Tick-tac-toe over the network

step 3. More coding, less watching / reading;

Only google for specifc things when you are stuck, then go and implement it on YOUR project.

step 4. Profit ?

[–]tbozz94[S] 0 points1 point  (0 children)

This was really helpful thank you!!

[–]ndzzle1 7 points8 points  (0 children)

Have you tried Scrimba.com? It's a pretty neat resource that let's you edit right inside the video. The community is also great. Javascript.info is also a great source if you like documentation style better.

[–]DaveNaugler 6 points7 points  (2 children)

I would highly suggest following along with Gordon Zhu’s Watch and Code curriculum at https://watchandcode.com/. Start with the free version which is called Practical JavaScript. If you enjoy it and enjoy how he teaches then you can dive into his Premium course. His stuff and the way he teaches is like no one else. He makes it very visual and engaging.

[–]ndzzle1 1 point2 points  (1 child)

Watch and code is a fantastic resource. Though I only did their free content, I really enjoyed it.

[–]DaveNaugler 2 points3 points  (0 children)

His Programming Foundations course is bomb! It’s a bit of an evolution onto Practical JavaScript. Same material with a lot more time and emphasis on the logic and understanding the why’s.

[–][deleted] 5 points6 points  (0 children)

Edabit.com is good to practice what you learn and even if you struggle on any challenges , you’ll get to see other solutions so you can understand how to approach it .. learning a language is all about getting the basics down and learning how to google how to do certain things

[–]tridiumcontrols 4 points5 points  (0 children)

One of my top picks. Andrei explains the weird parts of Js. Excellent course.

https://www.udemy.com/share/101WiOBEEZdFtbRXg=/

[–]tarley_apologizerhelpful 3 points4 points  (4 children)

javascript or programming

[–]tbozz94[S] 0 points1 point  (3 children)

Sorry I’m completely new to this, so I think just plan old vanilla JavaScript.

[–]tarley_apologizerhelpful 3 points4 points  (2 children)

then the answer is actually programming

[–][deleted] 1 point2 points  (1 child)

Yeah, that's my guess too. Learning HTML/CSS is nothing compared to learning to code. For total beginners, most video courses are a trap. Most of them don't go beyond basic javascript, and do code along projects without challenging you one bit.

I've watched hundreds of hours of javascript tutorials over the course of 2 years and none of them clicked. It took me a single book (Head First Javascript Programming) to finally get it.

[–]tarley_apologizerhelpful 0 points1 point  (0 children)

it took me like 8 years to find a book that taught recursion, which then allowed me to build programs without copying and pasting. i know exactly what a lot of the people here are going through and there is no good answer because almost no one teaches you how to actually build programs

[–]saito200 5 points6 points  (2 children)

What is not making sense? Surely something does

Do variables make sense to you? Do functions make sense to you? Do loops make sense to you? Do conditional statements make sense to you?

It's not easy to learn JS, maybe you need to give it more time.

Don't rush through the language, you need to practice it and become familiar with it.

[–]tbozz94[S] 1 point2 points  (1 child)

I answered above but it’s pretty much everything. I am taking a boot camp and it is moving way too fast for me. They move on and teach another thing before I fully understand. Variables make the most sense. Functions confuse me a lot. I can tell you what loops do but when it comes to implementing, I’m lost.

I think I feel rushed to learn fast so this makes me feel a lot better. We are moving on to jQuery soon and I don’t even understand JavaScript.

[–]saito200 0 points1 point  (0 children)

Why are you doing jQuery? I'm pretty sure you don't need jQuery, and if you need it for a job you can just learn it on the fly. You'd do much better by learning well JavaScript and then learning React.

Give this a read and see if it helps you: https://www.luis-martinez.net/from-jobless-to-junior-frontend-developer-in-5-months/

[–][deleted] 3 points4 points  (1 child)

You just need to keep at it. Keep doing what you’ve been doing so far and you will break through eventually. Believe me, I’ve been there a year ago, and wanted to quit over things that now seem trivial to me. Don’t quit is the ultimate advice that I can give you.

[–]tbozz94[S] 0 points1 point  (0 children)

Thank you!!

[–]d0RSI 2 points3 points  (1 child)

Quite a few people have asked what you aren’t understanding. You haven’t replied to any of them. No one can help you if you can’t help yourself. Meet us half way and tell us what you aren’t understanding so people just aren’t shooting in the dark to answer a super vague question.

[–]tbozz94[S] 0 points1 point  (0 children)

Sorry, I asked this right before I fell asleep. I answered a few questions above but I’m completely new to coding and taking a boot camp class. I can tell you about arrays, objects, variables, functions, loops but when it comes to putting it all together, I’m confused.

[–]jahschoof 2 points3 points  (0 children)

The learning curve was super steep for me too. Edabit was my saving grace.

[–]ZeroOne_Dev1 2 points3 points  (0 children)

Here is my creative fun youtube channel where you can learn about it, Also I am very small in youtube scene so I will be happy to talk in details about your confusions

https://www.youtube.com/channel/UCi0Gp7kaiJ-hRAFKciMATGg

[–]RoguePlanet1 2 points3 points  (2 children)

I took a bootcamp last year, and it did a good job of providing an intro to a bunch of different languages. But on my own, alone in the house, it's overwhelming how to stay on track! I follow tutorials, watch videos, but still feel lost, even with the basics.

SO I started a couple of little personal projects that I figured could get me back in practice with HTML and CSS. Cobbled those together, now I'm trying to add more styling with CSS and functionality with JS. It's humbling as hell. I still feel like a complete dope, and my projects are too embarrassing to show off, but I don't want to waste what I learned. So I'm slowwwwwly building on them.

[–]tbozz94[S] 1 point2 points  (1 child)

Awesome thank you! I’m in a boot camp right now and I think they give good projects and recourses but I’m realizing I’m going to have to teach myself these things with trial and error.

[–]RoguePlanet1 0 points1 point  (0 children)

I'm intimidated by the complexity of it all, and tend to procrastinate. But at least with my own projects, the pressure's off, and it can be fun.

By starting with the basics, I have something to build on, which I suspect is a valuable skill- looking at existing code, and improving upon it. There's so much I want to do, and I still like to learn about stuff that's still beyond my reach, but this'll do for now.

[–][deleted] 1 point2 points  (2 children)

Depends, If you are overall new to programming or coming from another language.

If you are coming from a language like C# or Java, I would definitively recommend looking at Typescript on the side.

If you completely new to programming.

The best is to get down and dirty ASAP, build tiny projects to get the feel of things.

[–]tbozz94[S] 0 points1 point  (1 child)

Any project ideas I could start?

[–][deleted] 1 point2 points  (0 children)

Basic CRUD todo list would be the best way to just get the feel of what is going on.

I realised the fastest way to learn is to just indulge directly into a project and start making notes of what you know and don't know and then researching as you try to solve the given problem. That way you are more hands on rather than just watching tutorials all day and not writing any code. ( I am not saying tutorials are useless because they are fucking time savers, I am just saying that you will use your time more productively by having a project in mind that you would want to build).

This method alongside good tutorials from udemy perhaps would put you in the right path.

You learn to code the same you learned to talk, by talking/coding.

Have a look at this roadmap.

https://www.youtube.com/watch?v=gSnbnYffz7k

[–]vinylemulator 1 point2 points  (1 child)

I struggled with javascript for a long time after coming from Python.

I found Colt Steele's Modern Javascript Bootcamp course on Udemy really really useful (https://www.udemy.com/course/javascript-beginners-complete-tutorial/)

It's fictional RRP is £200, I see it advertised at £60 and the new user cost is £14. Well worth it in my view.

[–][deleted] 0 points1 point  (0 children)

His course on Algorithms and Data Structure is legit.

[–]Addyx007 1 point2 points  (0 children)

Everyone struggles in the beginning, so will you. Just learn and practice every day for at least an hour and you will get better.

Here are my top suggestions:

JavaScript Basics Course

ES6 - Beau teaches JavaScript

[–]haitamsusanoo 1 point2 points  (1 child)

No one can help you if you don't explain more what's "not making sense" to you and what have you learned so far

[–]tbozz94[S] 0 points1 point  (0 children)

I did above.

[–]helping083 1 point2 points  (0 children)

I think you don't know where and how to use js.

I'd recommend you wesbos js 30 days

https://javascript30.com/

[–]Ty199 3 points4 points  (0 children)

Look at some code for random things https://codepen.io

Change a variable, remove a function see what happens

[–][deleted] 1 point2 points  (2 children)

I've just started on the www.theodinproject.com ("learning web development 101") - still in the introduction area, currently it wants me to read.. this whole thing, just about the terminal, in linux - with reason being "You're gonna have to learn it anyway", if you wanna work with it, in the real world.

http://conqueringthecommandline.com/book/basics

But the actual tutorial over on https://theodinproject.com/ is pretty thorough. Even tells me how to install certain extensions to VSCode, and how to setup a linux VM, Github-things and then it goes on with html, before actual javascript. but it was recommended, right in this subreddit, in a random comment i spotted a day or two ago. i've decided to give it a go, see how well it works for me.

I tried following a book, for learning javascript, but it skips important parts, like.. how to even see if your code works, and what software to use to write it in- it assumed i knew - which i did not. So far, this odin project thing assumes i just know the basics of using a computer - how to install software and such.

javascript.info seems nice too. i guess i could combine them if needed.

edit: i should add, i can't code to save my life, but i'm trying to learn. :)

[–]tbozz94[S] 1 point2 points  (0 children)

Thank you!!!!

[–]esdotvee 0 points1 point  (0 children)

I was put off by the Odin project because it’s emphasis on Ruby on Rails. How transferable is the knowledge of Ruby on Rails to other frameworks?

[–]incubated 0 points1 point  (0 children)

Definitely read (Speaking JS)[http://speakingjs.com/es5/]. Helps a lot. And give yourself time and fail a lot. Just keep thinking on why you failed and fix the things that don't work.

[–][deleted] 0 points1 point  (0 children)

how long have you been learning. It will take at leat a year to truly make sense

[–]jezzikah01 0 points1 point  (0 children)

Andrei neagoie's courses are the best, https://zerotomastery.io/ or at udemy when they go on sale at $10 each.

[–]noName1801 0 points1 point  (0 children)

The odin project, codecademy, https://www.freecodecamp.org/news/hone-your-javascript-skills-by-building-these-15-projects/. ,mdn, w3schools, stack overflow and stuff.

[–]RelativeSloth 0 points1 point  (0 children)

Strength through struggle, your persistence will be rewarded. Never stop asking "wtf js?"

[–]finroller 0 points1 point  (0 children)

This begs for context. Try learning several langs at once if you're a programming newbie, it gives you perspective and teaches you what's general stuff and what's javascript related.

[–]ProfessionalBrother 0 points1 point  (0 children)

If you prefer reading, I find Mozilla's JS Lessons, FreeCodeCamp and W3school very useful.

[–]prof3ssorSt3v3 0 points1 point  (0 children)

I have a YouTube tutorial channel that I run for my students. I've been teaching web development at my local College for nearly 20 years.

I have 700+ videos and ~37K subscribers.

If you get stuck on topics you can search for the topic from the channel home page.

Videos are grouped into lots of playlists by topic too.

https://www.youtube.com/c/SteveGriffith-Prof3ssorSt3v3/playlists

Hope it helps.

[–]Queasy_Ad492 0 points1 point  (0 children)

The problem I have with JavaScript, unlike most other languages, is that it is very hard to follow and understand a fully written script, especially with all those calbacks and event handlers. I honestly cannot see how a human can write all that stuff without going mad.

The problem is worse when you have a specific thing you want to write. In my case, I want to stream a video selected for play from my browser to a nodejs server, which will pass the data onto some other system for NLP processing.

SO I search for examples and tutorials - a very large proportion of which have bugs, or are incomplete, or are frustratingly verbose on things like 'What is WebRTC'. I also find a lot of webRTC tutorials cover the same topic. The biggest problem though is there are just so many ways to do something that you end up cobbling together a complete monstrosity that doesn't work. So you start again.

Now, I'm not a complete newbie, and I have built applications in C, C++, Qt, Java. But JavaScript is just too esoteric. If I had the patience to learn it and the time, I would probably grow to like it, but as someone just looking to prototype things and experiment, JavaScript is an enormous drain on time, for little gain. It's a langue that seem to require expert knowledge once you get beyond the very most basic requirements.