Skip to content

Instantly share code, notes, and snippets.

View hannahhch's full-sized avatar
🤿

Hannah Hudson hannahhch

🤿
  • The Office of Experience
  • Denver, CO
View GitHub Profile

Pseudocoding

Vocabulary

pseudocoding - Literally, fake code! Writing out steps to solve a problem or achieve functionality, without writing actual code terms of art - Technical vocabulary, the words and terms that accurately describe code

So what is pseudocoding?

One of the greatest tools in your developer toolbelt is pseudocoding.

Pseudocoding is the secretly-complex skill of writing down what you want your code to do, without writing any code.

Weather Warm Up

let today = 'wednesday';

let weather = {
   monday: 'sunny',
   tuesday: 'rainy',
 wednesday: 'sunny',

Trails

const fountainValleyLoopTrail = {
  name: 'Fountain Valley Loop',
  location: 'Littleton, CO',
  distance: 2.3,
  traffic: 'moderate',
  features: ['bird watching', 'hiking', 'cross country skiing', 'snowshoeing']

Exercise Exercises

Given the exercise data:

const exercises = {
  "Forward Lunge": {
    musclesTargeted: ["quadriceps", "gluteus", "adductor magnus"],
    difficultyLevel: 5
 },

Paired Practice Time!

The best way to get comfortable with these methods is to practice them, so we will!

You'll be with a partner in a breakout room to work through some practice problems. Assign one person to be the driver and the other to be the navigator. It might be helpfulful to switch these roles off and on so you have the opportunity to be both!

Instructions

  • Start with #1
  • Have the driver fork a copy of the REPL
  • Work through problems together (you'll have 15 minutes for each REPL)

Individual Object Literal Practice

  1. Fork the following REPL
  2. Work through the problems on your own (no rush here!)
  3. DM me your REPL when you've finished and take a 7 minute POM
  4. Wait for me to tell you next steps.

DON'T PANIC if you're stuck! We'll review as a whole class at the end!

Mutator & Accessor Methods

❄️ Snow Day Version ❄️

Learning Goals

  • Gain familiarity with other prototype methods (not necessarily JUST array prototypes, some string methods too!)
  • Understand why it’s important to note if a method is a mutator or accessor

Structure

On your own, research and take notes on the following methods:

  • sort

Trails

const fountainValleyLoopTrail = {
  name: 'Fountain Valley Loop',
  location: 'Littleton, CO',
  distance: 2.3,
  traffic: 'moderate',
 features: ['bird watching', 'hiking', 'cross country skiing']

Sketch London Instructions

  1. Visit sketch.london
  2. Look over the homepage with your partner, discuss the layout and design. Do you think its set up in a logical way? Why would someone use this website?
  3. Complete the follow tasks below. As you go the list, make sure to discuss the steps you took and if things were where you expected them to be on the site.
  • Find out when the East Bar holds events.
  • Find the list of awards that Sketch has recieved.
  • Who is the master chef?
  1. What is your overall opinion on this website - did you find that it was usable? If not, which things would you design differently?

Runnerspace Instructions

  1. Visit runnerspace.com
  2. Scroll through the homepage with your partner, discuss the layout and design. Do you think its set up in a logical way? Why would someone use this website?
  3. Complete the follow tasks below. As you go the list, make sure to discuss the steps you took and if things were where you expected them to be on the site.
  • As a guest user, add a comment to any article.
  • Find and watch a video associated with any team in Colorado on the runnerspace website.
  • Go to the "Maine vs New Hampshire Indoor Duel 2017." What was Lauren Quann's distance in shot put?
  1. What is your overall opinion on this website - did you find that it was usable? If not, which things would you design differently?