Challenges in Client-Side Engineering
CSCI 344: Advanced Web Technologies
Fall 2026
Outline
Design
Norman’s Design Principles
Door Quiz
Say out loud what action you use to open the door
“Push” or “Pull”
Door Quiz
Door Quiz
Door Quiz
Door Quiz
Door Quiz
Door Quiz
Door Quiz
Door Quiz
Who cares about everyday things?
Norman’s Design Principles
The Three Principles That Matter Most for UI
Affordances of Computer Interfaces
“perceived and actual properties of the thing, primarily those fundamental properties that determine just how the thing could possibly be used”
Affords horizontal scrolling
Affords clicking
Affords closing,
minimizing, maximizing
Affords clicking
Affords dragging to resize window
Affords typing
Source: Nell O’Rourke
Affordances of Computer Interfaces
Affords selecting one or more options
Affords selecting exactly one option
Affords selecting exactly one from a long list of options
Source: Nell O’Rourke
Feedback in Computer Interfaces
“sending back to the user information about what action has actually been done, what result has been accomplished”
Source: Nell O’Rourke
Feedback in Computer Interfaces
“sending back to the user information about what action has actually been done, what result has been accomplished”
Source: Nell O’Rourke
Feedback in Computer Interfaces
“sending back to the user information about what action has actually been done, what result has been accomplished”
Source: Nell O’Rourke
Constraints in Everyday Things
“The world restricts the allowed behavior. The physical properties of objects constrain possible operations.”
Constraints limit insertion direction
Only the right size
pieces fit together
Holes afford inserting fingers
Size of holes gives constraint on possible fingers
Source: Nell O’Rourke
Constraints in Computer Interfaces
Shape of “blocks” enables users to understand how statements, expressions, and events fit together
“The world restricts the allowed behavior. The physical properties of objects constrain possible operations.”
Source: Nell O’Rourke
Constraints in Computer Interfaces
“The world restricts the allowed behavior. The physical properties of objects constrain possible operations.”
Constraint on date format; CVV size
Unavailable options grayed out
Source: Nell O’Rourke
Takeaways: Your Job as a Developer
As I build my interface…
Design Tools & Resources
Other Usability Guidelines and Design Patterns
Design has become a well-established field
Design principles are fairly well-established, and tech design is its own subfield / specialization within the tech world. Because of this:
28
Design Systems in Industry
Increasingly, design is becoming separated from implementation in larger tech shops:
29
What is a Design System?
30
Why use a Design System?
31
Core Elements of a Design System
32
Real World Design Systems
Examples of Famous Design Systems:
33
Front-End Software Engineering
Introduction to Client-Side Engineering
Client-side engineering comes with unique challenges! To introduce you to some of them, let’s take some inspiration from folks in the trenches of front-end engineering:
Discussion Questions
What is front-end engineering? What is UI engineering?
Front-end engineers make web apps work.
UI engineers make them feel right.
When did front-end become a distinct subdiscipline of computer programming?
Front-end became a distinct programming subdiscipline around 2005–2010, when the browser evolved from a document viewer into a full-fledged application platform.
What are some common technologies used in front-end engineering?
What's the best way to get a job in UI engineering?
Your answers here…
���Some useful resources that give you a map of “what you ought to know”:
Is UI engineering easier than other forms of programming?
Additional points to discuss (if not already covered)
Quick HTML, CSS, & �JavaScript Crash Course
Learning Some Client-Side Web Basics
Most web pages use three technologies
HTML
CSS (Cascading Style Sheets)
JavaScript
45
Document Object Model (DOM)
(n.) How your web browser represents a document (web page), in a way that can be understood by a human and by a computer. Typically, a DOM is created using HTML. Declarative languages like CSS are used to style it, and programming languages like Javascript allow us to change it.
Demo. Open your console and type:
> document
DOM Schema
HTML
<html lang="en">�<head>� <title>DOM Example</title>� <meta name="author" content="EECS 130">� <link rel="stylesheet" href="main.css">�</head>��<body>� <main>� <h1>Hello!</h1>� <p>Welcome to this webpage.</p>� </main>�</body>�</html>
<html>
<title>
<head>
<body>
<link>
<main>
<h1>
<p>
Hello!
Welcome to this webpage.
<meta>
Intro to HTML
Intro to HTML (Hypertext Markup Language)
HTML is a way of creating web documents using “markup tags”
How the Browser Interprets HTML
HTML File
<html lang="en">�<head>� <title>DOM Example</title>� <meta name="author" content="Sarah V.">� <link rel="stylesheet" href="main.css">�</head>��<body>� <main>� <h1>Hello!</h1>� <p>Welcome to this webpage.</p>� </main>�</body>�</html>
Invisible section
(for metadata)
<html>
<title>
<head>
<body>
<link>
<main>
<h1>
<p>
Hello!
Welcome to this webpage.
<meta>
Visible section
(99% of your stuff goes here)
Lots of elements can go inside of the body element
51
Body
<body>
</body>
Image�<img src="??" />
Embedded Video
<iframe src="??"></iframe>
Hyperlink
<a href=”??”>my link</a>
Containers
<div></div>
<span></span>
<nav></nav>
<article></article>
<header></header>
<section></section>
<footer></footer>
Table
<table>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
</tr>
<tr>
<td>Cell 3</td>
<td>Cell 4</td>
</tr>
</table>
To Learn More about HTML
Intro to CSS
CSS Files: Style & Layout
How to include a stylesheet in your HTML
External stylesheets are stored in a separate *.css
Anatomy of a Stylesheet
body {
color: black;
padding: 1em;
}
.title-bar {
padding: 5px;
font-weight: bold;
}
#profile {
background-color: #ddd;
}
Stylesheets are comprised �of rulesets
56
Anatomy of a Ruleset
body {
color: black;
padding: 1em;
}
57
selector
property
value
declaration
Selectors: Most Important Ones
In order to create a client-side app, you need to know how to target / select DOM elements. Three “primary” ways to target elements:
58
Selector | Example | Description |
element | p | Selects all <p> elements |
#id | #firstname | Selects the element with id=”firstname” |
.class | .intro | Selects all elements with class=”intro” |
...
1 <body>
2 <div class=”title-bar”>
3 <h1>Welcome, Malik</h1>
4 <img id=”profile” src=”images/pic.png” />
5 <hr>
6 </div>
7 <div>Right
8 <ul>
9 <li>list item 1</li>
10 <li>list item 2</li>
11 <li>list item 3</li>
12 </ul>
13 </div>
14 </body>
...
body {
color: grey;
}
h1, li {
text-transform: uppercase;
display: inline-block;
color: #999999;
}
.title-bar {
padding: 5px;
background-color: #EEEEEE;
}
#profile {
width: 100px;
float: left;
margin-right: 20px;
}
Intro to JavaScript
What is JavaScript?
61
Nice overview: https://javascript.info/intro
“Client-Side” JavaScript
What is JavaScript’s job within the browser?
62
Nice overview: https://javascript.info/intro
User Interfaces Make Heavy Use of Event-Driven Programming
What are examples of “events” from your Project 1 course lookup?
63
Selector Demo: Toggle the Lightbulb
Open this link: https://codepen.io/vanwars/pen/GobRrv?editors=0010
Goal: When the user clicks the lightbulb, toggle the image so that it looks like it’s turning on and off.
One Approach: