Learning more and more every day

Lane Garner
3 min readOct 27, 2020

--

Photo by Cookie the Pom on Unsplash

Describe one thing you’re learning in class today.

One of the things I learned today was the ability to use Unicode characters such as emoji. These are useful because they are built into every browser and while they may render differently in different environments, loading in libraries for graphics can be unnecessary. One of the other amazing things about them is that you can simply copy and paste the graphics into HTML, CSS, and JavaScript and treat them as text. I will certainly make more use of them in my coming projects.

What is the difference between == and === ?

Triple equals are also known as “strict equality” while double equals are also known as “abstract equality”. Strict equality is true when both items are exactly the same while abstract equality aims to make similar things equal. Double equals can perform type conversion while triple equals has no conversions.

What is the value of foo? var foo = 10 + '20';

1020

Describe what a terminal application is.

A terminal application is an app with no GUI that runs natively in the terminal.

What is the ternary operator?

The ternary operator is shorthand for an if/else statement. It is the only JS operator that takes in three operands: a condition followed by a question mark, an expression to execute if the condition is truthy followed by a colon, and finally the expression to execute if the condition is falsey.

condition ? exprIfTrue : exprIfFalse

What are some ways to ensure that your website design or web application is accessible and user-friendly?

It is important to choose a color scheme that has good contrast. This is important for color blind people as well as to minimize eye strain for all users. There are many sites that can help with this such as http://colorsafe.co/.

Another way to ensure that websites are accessible is to include information for screen readers. Some examples of this include image alt attributes and input labels.

What are your favorite features of HTML5, and how have you implemented them in your front-end development projects?

This question stumped me at first because most of my favorite exciting features of coding are from CSS and JavaScript. One answer might be the ability to manipulate the plain (somewhat boring) structure of an HTML page with other languages. The ability to combine scripts and stylesheets to your heart’s content makes exponentially more possibilities for your HTML page.

How do you structure your CSS and JavaScript to make it easier for other developers to work with?

It is important to name things in a semantic way so that other devs can come to your code later and make sense of it. It is also important to space and tab things in a clear way that will help make sense of your code. This is one reason that things like ternary operators can be confusing because it isn't super apparent what is going on at first glance.

What’s your process for addressing browser-specific rendering problems? Do you find that a certain browser is more challenging to work with than others?

I’ve been hosting each page with the GitHub pages feature and opening the site on Chrome, Brave, and Safari on my laptop and Safari on my phone. I could probably also stand to download some additional browsers for my phone and test on Windows with my wife’s work computer.

--

--

Lane Garner
Lane Garner

No responses yet