(Web) Programming and ChatGPT Discussion Questions
Does the existence of ChatGPT affect your outlook and/or motivation for studying web development? If so, how?
Does ChatGPT affect what and how you want to learn about web development?
What is a sensible course policy for the use of ChatGPT?
Does the existence of ChatGPT affect your outlook and/or motivation for studying web development? If so, how?
Does ChatGPT affect what and how you want to learn about web development?
What is a sensible course policy for the use of ChatGPT?
Trope. Most of a SWE’s work is done by searching StackOverflow.
ChatGPT already “knows” the accumulated knowledge of StackOverflow.
Prediction. Any work that can be accomplished solely by searching StackOverflow will have essentially no market value in the near-term future.
Advice
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Hello, World!</title>
</head>
<body>
<h1>Hello, World!</h1>
<p>This is a(n almost) minimal HTML file.</p>
</body>
</html>
html element as root<p>some text in a paragraph.</p>
<html lang="en">...</html>
Drawing Boxes with divs!

Mondrian Composition II in Red, Blue, and Yellow source: Wikipedia
HTML specifies many tags with specific semantics
h1, h2,… for headingsp for paragraphsol for ordered listsThe tag div is a generic content division element
div to BoxesBy default, div elements resize to fit their content
We can modify div display style with style attribute:
background-colorwidthheightExample:
<div style="background-color: black; width: 300px;
height: 300px;"></div>
div PositioningBy default, the positioning of (div) elements is static:
div occupies its own horizontal blockWe can set a location with top and left style attributes
top, left with the position style attribute
position: static; default position (top and left don’t affect position)position: relative; moves div relative to its default (static) positionposition: absolute; places div relative to its parent’s position
background-colorwidthheightposition:
position: absolute;position: relative;topleftHTML/CSS have some predefined colors, but how can we represent more colors?
Color, Three Ways:
Content Warning: Massive oversimplifications coming up!!!
Physics $\implies$ Perception
“Natural” light comprised of different wavelengths in different proportions
Perception of color determined by the amount each color receptor is stimulated
Question. How do color monitors/projectors create so many colors?
![]()
So far:
A color that can be represented on a computer screen is represented by three values:
Color is a three-dimensional object!
In HTML: rgb(red, green, blue)
red, green, blue are integers from 0 to 255.Manipulation of r, g, b color values is not intuitive
red, green, blue have natural physical interpretationsred, green, blue do not have natural perceptual interpretations (at least to me)Question. What are the RGB values of the color above?