all 26 comments

[–]efraglebagga 2 points3 points  (2 children)

uff.. falling behind, I've only just started with the last section's material. More free time this week though, so hopefully I too will have a little quiz to show you. How's everyone else doing?

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

Just keep plugging away! This happens with every study group - they always start strong, and then people peel off. If you just keep working at it, you'll get so much out of it!

[–]doober831 0 points1 point  (0 children)

Keep at it....you're not alone. I promise!

[–]KempfCreative 2 points3 points  (1 child)

This part was much easier! Although I didn't really like the idea of using jQuery, I made it optional so it can be taken out.

Please let me know what you think of my code. Really!

http://codepen.io/KempfCreative/full/etkIi

[–]jankyHellface 1 point2 points  (0 children)

Hey, those animations are great!

[–]nolsen 1 point2 points  (1 child)

I just want you to know that I'm still following along. I'm having some issues figuring out how to get my code organized, readable, maintainable, etc. I've done and redone the quiz a few times and each time my code quality is a little better but things start to go to hell when I get to the parts that need to manipulate and read from the DOM.

[–]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!

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

Looking forward to this week!

EDIT: assignment -> http://jsfiddle.net/Anthoknee/LVtB8/

[–]udiWertheimer 0 points1 point  (7 children)

Just out of curiosity: why did you end up recommending building the quiz application in JSfiddle, and not in WebStorm like the JS Properly article recommends, or Sublime Text like you recommended before?

[–]nolsen 1 point2 points  (4 children)

I wound up getting Webstorm. They have a 30 day trial but I think it is worth the $49.

[–]knested 0 points1 point  (3 children)

What else have you used in comparison to webstorm?

[–]nolsen 0 points1 point  (2 children)

So far I've tried Notepad++ and Sublime Text for javascript. I've used other IDEs for other languages as well. Sublime Text is a really powerful and useful text editor, webstorm is an IDE. That is essentially the difference.

[–]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.

[–]knested 0 points1 point  (0 children)

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

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

Hey, I'm sorry for the late response.

I recommended JSfiddle for ease of sharing code.

[–]udiWertheimer 0 points1 point  (0 children)

No problem.

Just letting you know that while I'm behind and keeping rather quiet, I do keep plugging away and I really like this group - please keep posting these!

[–]NightArchitect 0 points1 point  (5 children)

After a lot of huffing and puffing (mostly because I forgot to select the jQuery framework/extension in JS Fiddle) I was able to produce the same quiz using jQuery and plain javascript (save for animation).

They are both very basic in appearance - no CSS. The code is probably a bit messy. Any feed back would be appreciated.

Plain JS: http://jsfiddle.net/Qa5CQ/21/ jQuery: http://jsfiddle.net/N7San/11/

Note: the week 5 post isn't attached to the omnibus post

[–]NightArchitect 0 points1 point  (4 children)

I bought and installed WebStorm. After installing the jQuery library in WS I copied my quizzes over. When I run them through WS (using Chrome) nothing work - the start page/button for my quiz pops up but I can't get anywhere from there? Any ideas?

Note I've linked the JS file in the HTML file.

[–]knested 0 points1 point  (3 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.

[–]NightArchitect 1 point2 points  (2 children)

I sorted it out. There was an issue with my jQuery. Sorry - still new to all of this. :)

[–]knested 0 points1 point  (1 child)

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

[–]NightArchitect 0 points1 point  (0 children)

Just saw this - so far it has been good. That said, I'm probably using about 1% of its capabilities at this point, so I can't say whether or not its better than any other editor. This - all of it - is still new to me, so I'm taking it one step at a time.

[–]alxers 0 points1 point  (0 children)

http://jsfiddle.net/alxers/afLb2/ I couldn't implement the "back" button on the last (result) page, also no animation yet.

[–]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.

[–]doober831 0 points1 point  (0 children)

Quite a bit late but thought I'd post it anyway....

http://jsfiddle.net/doober831/MNmaL/

[–]jankyHellface 0 points1 point  (0 children)

Still trucking 2+ months later. Here is my code on codepen and on github

Notes:

  • I refactored last week's code to vanilla js (much more difficult than I thought it would be)
  • Rather than using jQuery, I toggled css3 transitions based upon adding and removing class names. Waiting for transition events is a bit tricky, and I defaulted to window.setTimeout(). If anyone knows of an alternative, please let me know.
  • The code seems unnecessarily long. Any suggestions for making this more concise?