View on GitHub

reading-notes

jQuery, Events, and The DOM:

jQuery is a JavaScript Library.

jQuery is a lightweight, “write less, do more”, JavaScript library. The purpose of jQuery is to make it much easier to use JavaScript on your website. jQuery takes a lot of common tasks that require many lines of JavaScript code to accomplish, and wraps them into methods that you can call with a single line of code. jQuery also simplifies a lot of the complicated things from JavaScript, like AJAX calls and DOM manipulation.

using jQuery:

you can use jQuery in you code by:


### jQuery Selectors:

* The element Selector

$(element)


* The #id Selector

$(#id)


* The .class Selector

$(.class)


### jQuery Event Methods:
An event represents the precise moment when something happens.

| Mouse Events | Keyboard Events |Form Events | Document/Window Events |
| ------------ | --------------- | ---------- | ---------------------- |
| click | keypress | submit | load |
| dblclick | keydown | change | resize |
| mouseenter | keyup | focus | scroll |
| mouseleave |  | blur | unload | 

### Syntax For Event Methods:

$(‘selector’).click();

$(“selector”).click(function(){ // action goes here!! }); ```

6 Reasons for Pair Programming

Two heads are better than one than stop reading over my shoulder, pair programming is the practice of two developers sharing a single workstation to interactively tackle a coding task together.

Why pair program?

  1. Greater efficiency:

When coming up with ideas and discussing solutions out loud, two programmers may come to a solution faster than one programmer on their own.

  1. Engaged collaboration:

Aspect of learning to program is knowing when to ask for help.

  1. Learning from fellow students:

Working with a teammate can expose developers to techniques they otherwise would not have thought of.

  1. Social skills:

When working with someone who has a different coding style, communication is key.

  1. Job interview readiness:

Companies can get a better feel for how an applicant will fit into the team and their collaboration style.

  1. Work environment readiness:

Code Fellows graduates who are already familiar with how pairing works can hit the ground running at a new job, with one less hurdle to overcome.