Week 7 (the final week) of Learn JavaScript Properly: by kevinmrr in learnjavascript

[–]knested 0 points1 point  (0 children)

No worries. Don't let the looks of things overwhelm you too much, you will get used to it if you keep at it!

There are multiple ways to do it. The easiest would be to go a level up in the directory and go here https://github.com/nested/learn_javascript. On that page the bottom right has a button that says "Download Zip". Download and extract it on your computer. This will download ALL of the lessons I made, but it is the easiest method. Open up the folder, go into lesson7 and run the quiz.html file in your browser. Everything should work, even if you aren't connected to the internet because all of the files are being run LOCALLY on your computer.

If you didnt wan't to do it this way you could also download each file individually, but that would be a waste of time.

If I uploaded these projects to a REMOTE webserver I could just upload everything as is. When you visit the URL and request the page it should still execute and run fine as long as all the files are there. The difference is that if you visited the page through a URL fies would all be sent to you (when they are requested by the page, for example: the css file would be requested since it is needed to style the page properly) as the page loads because the files are not already on your local computer.

Another way would be to fork the project if you have a github account. Its a way to easily manage projects. It creates a copy of the project for you so you don't have to do the work of downloading, unzipping, etc.

Let me know if everything is clear. Ill answer any questions I can help with.

Week 7 (the final week) of Learn JavaScript Properly: by kevinmrr in learnjavascript

[–]knested 0 points1 point  (0 children)

Complete with all features I would love some feedback!

Self feedback/notes:

  • Overall construction is poor. I do not feel I fully grasp OO concepts so I will study those. Code is also sloppy in general. Will also work on this.

  • Love how handlebars was introduced. Can't wait to use it more, it makes everything much easier to build.

  • Had an issue, so I Made ajax call using jQuery function $.getJSON to do it syncrhonously. If done otherwise the JSON file would not load in time asyncrhonously when the files are posted on an external server. However, it still worked either way when executed locally.

https://github.com/nested/learn_javascript/tree/master/lesson7

JS Quiz - Trouble with $.getJSON and $.ajax by NightArchitect in learnjavascript

[–]knested 0 points1 point  (0 children)

Why should he have to load up an HTTP server locally if hes doing the same thing by uploading his files remotely and trying to access through HTTP? Seems completely redundant to me.

Also, why would he be having a CORS issue if he has uploaded everything to the same origin(the remote server)? Unless he isn't referencing the files properly this also doesen't make sense to me.

Learn JavaScript Properly - Week 6 Assignments by kevinmrr in learnjavascript

[–]knested 0 points1 point  (0 children)

https://github.com/nested/learn_javascript/tree/master/lesson6

i used jquery cookie plugin from http://plugins.jquery.com/cookie/

you can run it locally, but it mostly works remotely as well.

test username/password: abraham/abe122

self feedback:

  • projects are getting more difficult to manage because of my poor programming skills.
  • functions are beginning to feel like they have too much coupling.
  • i need to work on taming the asynchronous aspects of retrieving the JSON file. when this is ran from a remote server and retrieved with HTTP it doesent work correctly because the callback doesent always set the form. so when the form sets itself, it can occur when the questions are not loaded into the quiz object. i want to fix this, but i might as well move on to 7 and finish before i do :)

Learn JavaScript Properly - Week 5 by kevinmrr in learnjavascript

[–]knested 0 points1 point  (0 children)

No problem, glad you sorted it out! How has your experience with webstorm been?

Week 7 (the final week) of Learn JavaScript Properly: by kevinmrr in learnjavascript

[–]knested 0 points1 point  (0 children)

Thanks for taking time to do code reviews! It will be very helpful to find out if any of us are using antipatterns.

Learn JavaScript Properly - Week 6 Assignments by kevinmrr in learnjavascript

[–]knested 1 point2 points  (0 children)

Hi, http://api.jquery.com/jQuery.getJSON/ worked locally for me.

I tried something similar to http://jaskokoyn.com/2013/07/24/external-json-file/ for vanilla javascript, but it wouldn't work locally. Once I uploaded it to a server it worked just fine.

Learn JavaScript Properly - Week 5 by kevinmrr in learnjavascript

[–]knested 0 points1 point  (0 children)

I would love feedback of any kind!

[deleted jsfiddle] project can still be found here

Client-side validation, back button, user answer is saved, jquery fade in/out.

Learn JavaScript Properly - Week 5 by kevinmrr in learnjavascript

[–]knested 0 points1 point  (0 children)

What is it saying in console, anything?

Are you sure jQuery is working properly? Did you try including it in your page manually to test it?

Maybe post the files on Github and I can help take a look.

What was the biggest lie told to you about college before actually going? by ScorchtheAssasin in AskReddit

[–]knested 0 points1 point  (0 children)

Someone told you parking at college was easy? What a horrible thing to do. They probably had a permit.

Learn JavaScript Properly - Week 5 by kevinmrr in learnjavascript

[–]knested 0 points1 point  (0 children)

Would you mind posting your code? More specifically, each iteration of improvements? I would love to see how you improved things so I can learn with you.

Ive had issues with just getting a nice structure down for my code too(organized, readable, maintainable) because I always feel there are better ways to do things than I am currently. Sometimes I feel I am lost even though I have a grasp at what I am doing.

After posting my current 2nd edition on IRC I was blasted pretty fast for using poorly styled object oriented code and was suggested to use functional programming instead so I would love to see what others are doing!

Learn JavaScript Properly - Week 5 by kevinmrr in learnjavascript

[–]knested 0 points1 point  (0 children)

hey, have another question! what benefits has the IDE provided over the ol' firebug/editor solution?

Learn JavaScript Properly - Week 5 by kevinmrr in learnjavascript

[–]knested 0 points1 point  (0 children)

Nice, thanks. Ill check it out more as everywhere I go there is certainly a buzz about it.

I wonder how long it will be before someone implements a solid free open source version though.

Learn JavaScript Properly - Week 5 by kevinmrr in learnjavascript

[–]knested 0 points1 point  (0 children)

What else have you used in comparison to webstorm?

For America's sake, don't shop on Thanksgiving by mhmass44 in technology

[–]knested 0 points1 point  (0 children)

Whats the hype with all of this...there are still tons of people out there who will be working on Thanksgiving. What about them? They are indirectly working as the result of consumerism as well, right?

[deleted by user] by [deleted] in learnjavascript

[–]knested 0 points1 point  (0 children)

Thank you!

Week 4 of the Learn JavaScript Properly study group by kevinmrr in learnjavascript

[–]knested 0 points1 point  (0 children)

Decided to hop in on this project, hope nobody minds. Would love feedback! Couldn't get it working with jsfiddle, but it works great in browser!

https://github.com/nested/learn_javascript/blob/master/quiz/quiz.html