Designing Solutions Through Programming

Monday 27 September 2021 - Block 2
← previous note | most current note | next note →
 

Daily Note

Our plan for the day: 
 

  1. Please make sure you are on the ASW network and working from your programming folder. 
     
  2. I have carefully considered the feedback you gave me during our last class, and I have some ideas about a class discussion board. Can you please spend 2 or 3 minutes looking at this site and tell me what you think?
     
  3. We are going to continue working on store webpage. 
    1. I hope most of you had fun designing your store. Go ahead and change the color of your navbar. Make sure you carefully look at the third example!!!
       
  4. We are going to make a login page. 
    1. Please create a new file in vscode named store_login.php (no CaPiTaL letters, please) and save it.
    2. Please click here to see the file you need.
    3. Please copy all the code on this page and paste it into vscode. You can do this a few ways:
      1. click the raw button and then copy from there
      2. click the two little pieces of paper icon (if you hover your mouse over the icon it says "copy raw contents"
    4. Please link the login link on store_navbar.php to store_login.php. I think you can sort that out.
    5. Please change the title on the store_login.php page so it says something like "login" or maybe "store login"
    6. Please now take about 5 minutes to read the file store_login.php. Some of it will seem quite odd, but I'd like you to answer and predict what certain lines of code do
       
  5. If we have a page for users to login, we should also have a page for users to register. 
    1. Please create a new link on store_navbar.php, next to the login link, which says "Register" the link should href to store_register.php
    2. Please create a new file in vscode named store_register.php (no CaPiTaL letters, please) and save it.
    3. Please click here to see the file you need
    4. Please copy all the code on this page and paste it into vscode. You can do this a few ways:
      1. click the raw button and then copy from there
      2. click the two little pieces of paper icon (if you hover your mouse over the icon it says "copy raw contents"
    5. Please change the title on the store_register.php page so it says something like "Register" or maybe "store register" or maybe "sign up"

       
  6. If you get all through all of this and still have time, I'd like you to continue working on your store. I'll check your work, as I feel quite proud of the work you've done so far. If you get confused or lost, please don't worry and ask a classmate for a bit of help. 

     
  7. There is a chance we will start discussing databases
    1. A database holds structured data​​​​​​​
      1. We will talk about about tables, rows columns and records.
      2. We will briefly discuss primary keys
  8. You should watch and carefully remember these two short videos:
    1. This video will help you understand phpMyAdmin
    2. This video will help you understand databases and PHP

 

 

 

A little less comfortable

Content

Programs must solve the problem they were create to solve. We can worry about how effieciently or elegantly they solve the problem later on; not right now. The content of a program entails input, processing and output. All three of these elements must be clearly observable. A key question you will be asked (and you should ask yourself) is: to what extent does your code implement the features required by the specification?  

Process

Within the process, we are looking at six guiding questions: 

  • To what extent is your code written well (i.e. clearly, efficiently, elegantly, and/or logically)?
  • To what extent is your code eliminating repetition?
  • To what extent is your code using functions appropriately?
  • To what extent is your code readable?
  • To what extent is your code commented?
  • To what extent are your variables well named?

Product

As opposed to content, this section we focus on how well you solved the problem. A key question here is to what extent is your code free of bugs?

 

A little more comfortable

Content

Programs must solve the problem they were create to solve. You should ask yourself "Am I solving this elegantly?". The content of a program entails input, processing and output. All three of these elements must be clearly observable, and we must see evidence of sanitizing input and raising exceptions.  A key question you will be asked (and you should ask yourself) is: to what extent does your code implement the features required by the specification?  

Process

Within the process, we are looking at six guiding questions: 

  • To what extent is your code written well (i.e. clearly, efficiently, elegantly, and/or logically)?
  • To what extent is your code eliminating repetition?
  • To what extent is your code using functions appropriately?
  • To what extent is your code readable?
  • To what extent is your code commented?
  • To what extent are your variables well named?

For those more comfortable programming, we expect succinct, secure and effecient problem solving. 

Product

As opposed to content, this section we focus on how well you solved the problem. A key question here is to what extent is your code free of bugs? The real difference here is the complexity of the problem you have chosen to solve and how well you solved it. 

Our Big idea

The big idea for today is Programming.

The essential questions for this topic are:

How do we plan, write, execute, and test instructions a computer can understand and process?

It takes time to explore and really understand a big idea. If you want to
learn more about programming (which is connected to today's daily note), please click here .

We are learning this because as a designers must understand scientific and technical innovation. Designers use systems, models, methods, and processes to solve problems.



Reminders & routines:

IF (today ==  testing_day_for_me) {
     remember to go get tested!;
}

IF (this_block == first_block_day) {
     read_daily_bulletin;
}

IF (today == Friday) {
     current_event_activity();
}

As I am taking attendance:

  1. For students who are physically at ASW: Please check now: am I connected to the American School of Warsaw wireless network
  2. Please check now: is visual studio code working from my programming folder?

To remember: 

  1. All the files you need for this course can be found at this link. Please pay attention to the time the file was last updated. 
  2. You can access a web-based view of your database by clicking this link.
  3. Please be aware of course videos to help you understand our content.