These are my reading notes for Code Fellows
Link to outside pages using <a href>
tag
<a href = "index.html">
instead of typing the whole address.
mailto:
sends the user to their email with the “to” field completed with your choice of email
target="_blank"
opens a link in a new window
<a href="[whatever the id tag is]">
Inline elements are things like images and font styles (bold/italics)
Liquid layouts look absolutely awesome, so do fixed-width layouts. Okay, so do grid layouts. They seem the most modern.
These allow us to organize our code
Functions combine statements together so you don’t have to keep reusing individual functions
Helps with code organization
Calling a function means you’re telling a function to do its own task.
…statements are not run until the function is called
- Jon Duckett, JavaScript & Jquery
This will be super useful if you want to refer back to, or reuse, a bit of code.
Functions need info to perform their tasks. These are called parameters
Return values are when a function gives you an answer when you ask for it
Declaring Function Example:
function userName() {
document.write('this is your username');
}
userName();
function
userName
is function nameusername();
at the end is how you call the functionYou can use parameters to have code do a task without knowing all the information up front. For example, you can have a function multiply height by width, then decide what numeric values height and width have later on
2 devs working on the same computer, working on code together
Much encouraged by Code Fellows!
Great way to talk out, almost wireframe, what your code should be doing
Takes a bit more time, but produces higher quality code
More engaging for both parties, less likely to be distracted
Introduces you to other techniques you might not have considered
Improves communication! Employers love this