Wednesday, January 24, 2018

Lesson 12 Problems

There is at least one page in Lesson 12 that generates errors due to an internal bug.

Don't worry about it. Just skip that page and continue working on the next page.


Thursday, January 18, 2018

Idea Storm #1

This is from Lesson 4 ... Due Monday, Jan. 22 ... Do this at night or over the weekend.

Outside of class, take about 20 minutes to quickly write down as many app ideas as you can. You should come up with 20 to 30 ideas. Write them up in Google Docs and print them out. Can you print this many ideas on one page? (You could try two columns.)

Have you ever wished that there was an app for that? Now’s your chance to get all of those wishes down on paper.

Brainstorm as many ideas as you can for apps you want to make. It doesn’t have to be something new. You could have ideas about an app that already exists, but maybe you want to know how it works or how to make it better. Write down even the apps you think are impossible or just plain silly. The sky’s the limit.

This will be a list you’ll return to over and over again as you learn about developing apps. Keep it handy so you can add to it and refine it as you go.

Suggestions:

Just write down whatever comes to mind. You’ll get into what might be “doable” later.

Think about problems you have. ​
It doesn’t have to be anything big. Think about your daily routine or a social activity. What kind of app could make life easier for you or others?”

Think about different categories of apps. An app about animals or plants. A health-related app. A travel-related app. A social app that doesn't exist yet. An app related to your schoolwork or your parents’ work. A game.


Friday, January 12, 2018

Naming Playground

Things we talked about:
  • DRY = Don't Repeat Yourself
  • Identifier
    • Start with a lower case letter
    • Camel Case
  • Constant (keyword "let")
  • Variable (keyword "var")
  • Autocompletion - use the arrow, tab, and return keys
  • Assignment operator (=)
  • Making your code understandable

Pet Show code
let numberOfTickets = 150
let ticketPrice = 10
let roomRentalFee = 1000
let posterCost = 40

let revenue = numberOfTickets * ticketPrice
let expenses = roomRentalFee + posterCost
let income = revenue - expenses

iPhone Video code
let iPhoneCapacity = 64000
let iPhoneCapacityUsed = 10000
let iPhoneCapacityAvailable = iPhoneCapacity - iPhoneCapacityUsed

let mbPerMinuteOfVideo = 180
let minutesOfVideoAvailable = iPhoneCapacityAvailable / mbPerMinuteOfVideo

Watermelons and Oranges code

Understanding this code means understanding what each of the abbreviated variable names means. Understanding the variable names means you must understand what the problem is and how to solve it. This is a mathematical problem and you should be able to figure out what they are trying to do. Understanding what you are trying to accomplish, using math, is the first part of accomplishing any programming task.

co = orange pallet count
cw = watermelon pallet count
ow = orange pallet weight
ww = watermelon pallet weight
to = total weight of oranges
tw = total weight of watermelons
ttl = total weight
es = weight on each side of the truck
lhso = orange pallets on the left hand side of the truck
rhso = orange pallets on the right hand side of the truck