Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
5c50410
Update 8_Intro-Final-Project.md
amyquispe May 5, 2015
d28af4b
Update 8_Intro-Final-Project.md
amyquispe May 5, 2015
734b54f
creating weekend lesson plans
amyquispe May 6, 2015
2799654
Update README.md
noidontdig May 7, 2015
803163d
outlines for the day
amyquispe May 8, 2015
7044318
Merge branch 'master' of github.com:accesscode-2-1/unit-1 into weekend
amyquispe May 8, 2015
62f8953
added github exercises
amyquispe May 8, 2015
0ff17ec
Update 10_Github-Debugging.md
amyquispe May 8, 2015
50c71b5
adding debug exercise
amyquispe May 8, 2015
30bb0ce
fixed up BuggyClass
amyquispe May 8, 2015
7a6055d
Merge branch 'weekend' of github.com:amyquispe/unit-1 into weekend
amyquispe May 8, 2015
198c15d
Update 10_Github-Debugging.md
amyquispe May 8, 2015
4c3e219
Update 10_Github-Debugging.md
amyquispe May 8, 2015
6f51eaa
Update 10_Github-Debugging.md
amyquispe May 9, 2015
e22c8b7
Merge pull request #50 from amyquispe/weekend
amyquispe May 9, 2015
d635cf5
Update README.md
amyquispe May 9, 2015
31ce2e4
Create week-2.md
amyquispe May 9, 2015
1786bc4
Update README.md
amyquispe May 9, 2015
944a4bb
Update week-2.md
amyquispe May 9, 2015
51d8b6d
Update 10_Github-Debugging.md
davisRoman May 9, 2015
ee247ed
Update week-2.md
amyquispe May 9, 2015
3de54ce
Update week-2.md
amyquispe May 9, 2015
f047508
Update 10_Github-Debugging.md
davisRoman May 9, 2015
265540d
Update 10_Github-Debugging.md
davisRoman May 9, 2015
4f1c9cb
Update 10_Github-Debugging.md
davisRoman May 9, 2015
f7d1e4e
Update 10_Github-Debugging.md
amyquispe May 9, 2015
aec5c26
Update 10_Github-Debugging.md
amyquispe May 9, 2015
95f6614
adding some Android UI Basics
amyquispe May 9, 2015
08ab8ae
Update 11_Android-UI-Basics.md
amyquispe May 9, 2015
55d30fa
Update 11_Android-UI-Basics.md
amyquispe May 9, 2015
7626cba
Update 11_Android-UI-Basics.md
amyquispe May 10, 2015
3539ab6
Update 11_Android-UI-Basics.md
amyquispe May 10, 2015
901d311
Create 12_Layouts.md
amyquispe May 12, 2015
b51ba98
Update 12_Layouts.md
amyquispe May 12, 2015
00144c2
Update 12_Layouts.md
amyquispe May 12, 2015
8330744
Update 12_Layouts.md
amyquispe May 12, 2015
84e6816
Update 12_Layouts.md
amyquispe May 12, 2015
b6d1e4d
Update 12_Layouts.md
amyquispe May 12, 2015
def22e7
Update README.md
amyquispe May 12, 2015
fdbfd8f
Update 12_Layouts.md
amyquispe May 12, 2015
9856904
Update 12_Layouts.md
Bucimis May 13, 2015
f202b1e
Update 12_Layouts.md
amyquispe May 13, 2015
91b7d9d
Create assessment_prep.md
amyquispe May 15, 2015
41a4f66
Update README.md
noidontdig May 16, 2015
b91133d
Update README.md
noidontdig May 16, 2015
1c2b481
Update requirements.md
amyquispe May 21, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,22 @@ Lesson plans, activities and assignments for Unit 1 will be posted here!
0 | Apr 21 | 0 | [Android Prework](lessons/0_Android-Prework.md)
1 | Apr 23 | 0 | [Android Studio & Structure of an Android Project](lessons/1_Android-Studio-Structure-of-Android-Project.md)
2 | Apr 25 | 0 | [Inheritance and Interfaces](lessons/2_Interfaces-And-Inheritance)
3 | Apr 26 | 0 | [Generics and Abstract Classes](/lessons/3_Generics-and-Abstract-Classes.md)
3 | Apr 26 | 1 | [Generics and Abstract Classes](/lessons/3_Generics-and-Abstract-Classes.md)
4 | Apr 28 | 1 | [Anatomy of the Android Manifest](/lessons/4_Anatomy_Manifest.md)
5 | May 02 | 1 | [Android Resources] (lessons/6_Android-Resources.md)
6 | May 03 | 1 | [Activity Lifecycle](lessons/7_Android-Lifecycle.md)
5 | Apr 30 | 1 | [OOP and Intents](exercises/5_OOP-and-Intents)
6 | May 02 | 1 | [Android Resources] (lessons/6_Android-Resources.md)
7 | May 03 | 2 | [Activity Lifecycle](lessons/7_Android-Lifecycle.md)
8 | May 05 | 2 | [Intro to Final Project](lessons/8_Intro-Final-Project.md)
9 | May 07 | 2 | [Android Exercises](https://github.com/shurane/unit-1-exercises)
10 | May 09 | 2 | [Github and Debugging](lessons/10_Github-Debugging.md)
11 | May 10 | 3 | [UI Basics](lessons/11_Android-UI-Basics.md)
12 | May 12 | 3 | [Layouts](lessons/12_Layouts.md)
### Homework

| Due Date | Homework|
|---|---|
| Apr 25 | <ul><li>**READ** Think Piece: [How to Impress an Interviewer](https://medium.com/@joulee/how-to-impress-an-interviewer-c210d9d8e84a)</li><li>**WRITE** a Medium post about something technical or non technical you learned this week</li><li>**GUEST SPEAKER** [Vin Vacanti](speakers/vin-vacanti.md)</li></ul>
| May 1 | <ul><li>**CODE:** [OOP](https://github.com/accesscode-2-1/unit-1/blob/master/homework/week-0.md)</li><li>**WATCH** Think Piece: [Carol Dweck: The power of believing that you can improve](http://www.ted.com/talks/carol_dweck_the_power_of_believing_that_you_can_improve)</li><li>**WRITE** a Medium post about something technical or non technical you learned this week</li></ul>
| May 1 | <ul><li>**CODE:** [OOP](homework/week-0.md)</li><li>**WATCH** Think Piece: [Carol Dweck: The power of believing that you can improve](http://www.ted.com/talks/carol_dweck_the_power_of_believing_that_you_can_improve)</li><li>**WRITE** a Medium post about something technical or non technical you learned this week</li></ul>
| May 8 | <ul><li>**CODE:** [Horoscope App](homework/week-1.md)</li><li>**READ** Think Piece: [Unlearning Helplessness](http://braythwayt.com/2015/01/20/learned-helplessness.html)</li><li>**WRITE** a Medium post about something technical or non technical you learned this week</li></ul>
| May 15 | <ul><li>**CODE:** [Revenge of the Horoscope App](homework/week-2.md)</li><li>**READ** Think Piece: [Programming Sucks]( http://www.stilldrinking.org/programming-sucks)</li></ul>

62 changes: 62 additions & 0 deletions exercises/10_Github-Debugging/src/BuggyClass.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
public class BuggyClass {
static int N = 1000*1000;
static int TRIES = 100;
static int TOLERANCE = 10;

static int used_loop = 0;
static int used_recursive = 0;
static int used_divide_and_conquer = 0;

public static void main(String[] args) {
int[] A = new int[N];
int BIG = 1000*1000*1000;
long correct_sum = 0;
for(int i=0; i<A.length; i++) {
A[i] = BIG - i;
correct_sum += BIG-i;
}
for(int trial=0; trial<TRIES; trial++) {
long sum = find_sum(A);
assert(sum == correct_sum);
}
assert(Math.abs(used_loop - used_recursive) < TOLERANCE);
assert(Math.abs(used_loop - used_divide_and_conquer) < TOLERANCE);
assert(Math.abs(used_recursive - used_divide_and_conquer) < TOLERANCE);
System.out.println("We're done!");
}
public static int find_sum(int[] A) {
if (coin_flip(1.0/3.0)) {
return sum_loop(A);
} else if (coin_flip(1.0/3.0)) {
return sum_recursive(0, A);
} else {
return sum_divide_and_conquer(0, A.length, A);
}
}

public static boolean coin_flip(double p) {
return Math.random() > p;
}

public static int sum_loop(int[] A){
int sum = 0;
for(int i=0; i<=A.length; i++) {
sum += A[i];
}
return sum;
}

public static int sum_recursive(int i, int[] A){
if(i==A.length - 1) {
return 0; }
return A[i+1] + sum_recursive(i+1, A);
}

public static int sum_divide_and_conquer(int lo, int hi, int[] A) {
int mid = A.length/2;
if(lo==hi) {
return A[0]; }
return sum_divide_and_conquer(lo, mid, A) + sum_divide_and_conquer(mid, hi, A);
}

}
22 changes: 22 additions & 0 deletions exercises/assessment_prep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
### Assessment Prep

In order to be prepared for the assessment, make sure you know how to do the following things. If you don't know,
don't just look up how to do it. Practice doing it in an application, several times.

1. Start a new Android project.

1. Create a new Activity.

1. Move between two Activities using Explicit intents.

1. Open up a new app using Implicit Intents.

1. Know the order of Activity lifecycle methods for common cases.

1. Be able to reason about the Activity lifecycle diagram.

1. Know how to use the resources directory.

1. Know how to add a widget to a layout and set properties on it.

1. Know how to use a linear layout, including weight, gravity and layout_gravity.
53 changes: 53 additions & 0 deletions homework/week-2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
##Homework

##### Exercise 1: Code Review

Find your name in the first column; code review the developer in the second column.

| Reviewer | Reviewee |
|----------|----------|
| Abass Bayo-Awoyemi | Jaellys Bales
| Allison Bojarski | Madelyn Tavarez
| Alvin Kuang | Kadeem Maragh
| Anthony Fermin | Rosmary Fermin
| Anthony McBride | Joshelyn Vivas
| Charlyn Buchanan | John Gomez
| Dison Ruan | Sufei Zhao
| Elvis Boves | George Syrimis
| George Syrimis | Alvin Kuang
| Hanbi Choi | Pooja Pasawala
| Hoshiko Oki | Jose Garcia
| Jaellys Bales | Jorge Reina
| Janneisy Vidals | Reinard Cox
| John Gomez | Anthony Fermin
| Jorge Reina | Anthony McBride
| Jose Garcia | Luke Lee
| Joshelyn Vivas | Vanice Yee
| Kadeem Maragh | Na Li
| Madelyn Tavarez | Allison Bojarski
| Marbella Vidals | Tasha Smith
| Na Li | Elvis Boves
| Ramona Harrison | Charlyn Buchanan
| Raynaldie Acevedi | Dison Ruan
| Reinard Cox | Ramona Harrison
| Rosmary Fermin | Yuliya Kaleda
| Sarah Kim | Raynaldie Acevedi
| Sufei Zhao | Hanbi Choi
| Tasha Smith | Marbella Vidals
| Vanice Yee | Sarah Kim
| Yuliya Kaleda | Abass Bayo-Awoyemi
| Pooja Pasawala | Hoshiko Oki
| Luke Lee | Janneisy Vidals

It is on you to have communication with your reviewer/reviewee in order to complete this assignment.

##### Exercise 2: Revenge of the Horoscope App
* Resolve all comments your reviewer leaves on your app.
* Change the layout of at least two of your existing features.
* Create consistent UI styling across your app.
* Test your app on at least two devices of different screen sizes.

The main purpose of this week's assignment is to play around with the visual elements - have fun with it and iterate with your peers.

##### Bonus
* Create your own [Theme](http://developer.android.com/guide/topics/ui/themes.html).
Loading