And so it begins...
-
-
Save lfinney/5e8796f03ce445402228659abd20b39a to your computer and use it in GitHub Desktop.
FE1706 Prework Day #4
DBW: CH. 5
- The alt attribute is important because it provides a text description of an image if one cannot see the image whether that is due to an image not loading or for an individual who is visually impaired.
- An image's placement as inline or block is determined by whether or not the
<img>
element is placed before or after a block element. Placing an<img>
element before a block element will cause the block element to kick down and start on the next line, while placing it within a block element will put it inline with text. - A
.jpg
file is best used when a picture has many colors and shades in it. A.gif
on the other hand, is best used when an image has few colors and/or large areas of the same color.
DBW: CH. 16
- Using CSS to size images overall yields a developer more efficient control of the images used on a given site. First, allows you to create static classes of photo sizes used across the entire website. This allows for easy, quick adjustments as one maintains the site. Second, the image can now be moved using some of the features distinct to CSS, such as the float property. Third, CSS allows for the streamlined ability to add background images and modify those images.
- A sprite is when one image is used for multiple parts of an interface. These are useful since they load fast given that it's only one image, typically a simple one at that.
FE1706 Prework Day #5
EJ: CH. 1 & 2
- In JavaScript, numbers are just that, numbers. Fractional numbers must be represented with decimal notation, but this means that some numbers will need to be rounded making them less precise (e.g. Pi is an irrational number that continues forever, so rounding it to 3.14 will make it less precise than using the whole irrational number. However, there are limits to the number of digits that JavaScript uses, so rounding is inevitable at some point). Numbers can be manipulated using arithmetic in JavaScript, and such functions follow PEMDAS, although using parenthesis is always a good option when multiple operators are involved. Infinity, -infinity, and NaN (Not a Number) are considered numbers, but don't behave like them. Infinity is a mathematically solid concept an can result in "NaN" returns. Next, strings are used to represent text in JavaScript. Parenthesis around almost anything will indicate a string. Both single- and double-quotes can be used. Using a backslash \ indicates to JavaScript that the character following it has special meaning. It is in this way that one can print a mark that JavaScript would usually interpret differently, like a ". Different from the mathematical operators one can use with numbers, strings have their own set of operators, although the
+
operator may be used to glue text together. One of these unique operators is thetypeof
operator, which will produce a string value that names the type of value you give it if you ask for a return using theconsole.log
action. Writingconsole.log(typeof 17)
it will return the wordnumber
as that is what 17 is. In addition to numbers and strings, JavaScript also has booleans, which is the type one should use to designate "true & false." To allow a programmer to make full use of true/false situations, booleans can be manipulated using mathematical expressions of "greater than" > and "less than" <, as well as other variations on these expressions. - JavaScript supports three logical operators, which allow more functionality to control booleans as they include
<i>and</i>, &&, <i>or</i> ||, <i>not</i> !
. Additionally, a ternary operator manipulates three values and returns one of two other values based upon a true/false outcome. It splits up the three values using a question mark and a colon. A ternary operation would be written as follows:console.log(false ? 1 : 2);
This would return a2
. - Variables,
var
, are JavaScript things that can hold a value. In order to assign something to a variable, one simple uses the wordvar
followed by a space and then the name expressing a new variable. For example:var ten = 10;
would define the word ten as the number 10. Variable names cannot be created from words that already have a special meaning in JavaScript, cannot have a number as the first digit ("22catch" = not okay; "catch22" = okay), and they cannot use punctuation except for the$
and_
symbols. - A statement in JavaScript is comprised of many expressions. Expressions are fragments of code that will produce a value and when multiple expressions are tied together they create a statement. Multiple statements combined together create a program. The values created by an expression are often meaningless in isolation, where as a statement's value can begin to have a larger impact.
- Some of JavaScripts reserved words are:
var
,new
, andtypeof
. These words have specific meanings that are necessary to build JavaScript programs. If one uses a reserved word as a variable, it will confuse the whole program. - Control flow is the order in which statements will be executed in a program. At it's most basic, control flow will execute from top to bottom. This flow can be adjusted using conditional and looping statements. It is important to understand this concept for one to be able to effectively build complex programs capable of responding to dynamic situations that are able to meet certain conditions, check for specific conditions, run and re-run functions for execution, etc.
UX/UI
Psychology
The Dodo supports the question: How much work does the user have to do to get what they want? People have to do almost zero work to get what they want, in this case what people want is happy videos about animals. The landing literally greets users with a happy video of an animal. Success.
The RTD Pass Store does not leave a good response to this question. This website looks almost nothing like the main RTD website. When I first clicked it my first thought was that it was an attempt at phishing. Overall, this website does not inspire confidence.
Usability
The True Size supports the question: Are you being clear and direct, or is this a little too clever? At this website, user need to provide minimal input to get what they're after. It's simple and straightforward.
Wonder challenges a positive response to that question. The website seeks to help people research, but when a user types in their research question, they must continue to provide inputs to how they want to research. This website seemingly is trying to help people research, but seems to make it more complicated than necessary for someone who might struggle with research to begin with, hence why they're at this site in the first place.
Design
ESPN supports a positive response to the question: Do users think it looks good? Do they trust it immediately? From top to bottom, the ESPN website varies its elements to help guide the user to the content they want. This inspires confidence from the user as they can easily get what they want, whether it's scores at the top, specific sports leagues, or general news.
Spicy Basil, the Thai restaurant near my house, challenges a positive response to the question in question. Spicy Basil's website is informative, as it clearly displays the menu, but the design of the website does not inspire confidence from the user. The color scheme and lack of meaningful organization leave much to be desired.
Copywriting
Google immediately came to mind in regards to supporting the question: Is it clear, direct, simple, and functional? The Google landing page is simple and direct. It provides a simply search bar that delivers exactly what a user wants. If a user has a Google account, there are other options a user may exercise on this page, but those options don't interfere with the main purpose of the page, to search out information for the user.
Reddit, on the other hand, would not support a positive response to the above question. The landing page is quite busy and is difficult for a new user to navigate and understand. Inspiring confusion in a user leads to a build up of anxiety. To effectively use this page requires some time learn how it's organized and at some level, it works better with a third-party brower extension that makes the UI better.
Analysis
Netflix supports a positive response to the question: Are you using data to prove that you are right, or to learn the truth? As a user spends time on the website interacting with its content, the site delivers the user content it believes that user desires based upon how that user interacts with it. As users either view or don't view this content, Netflix will continue to refine its knowledge base on that user's preferences getting closer to the "truth."
The Denver Post challenges a positive response to this question. Contrary to Netflix, this site is likely only gleaning data from page clicks, which isn't the beset indicator to return information on their user's preferences. In this regard they can only tell what stories were popular, but have no data to indicate why those particular stories garnered interest.
FE1706 Prework Day #3
DBW: CH. 7
<select>
element is used to create a dropdown list as it allows a given user to "select" and option from the list.type
attribute. It would appear as follows in a line of code:<input type="submit" value="upload" />
<fieldset>
to group a number of form items together that relate for a particular purpose (e.g. contact information).DBW: CH. 13 & 15
<b>
element. On the other hand, block-level elements will always create a new line. Inline elements can be coded to work like block-level elements and viceversa by using the display property. The following could be used to make a block-level element behave like an inline one:p{
display: inline;}