View this PageEdit this PageAttachments to this PageHistory of this PageHomeRecent ChangesSearch the SwikiHelp Guide
Hotspots: Admin Pages | Turn-in Site |
Current Links: Cases Final Project Summer 2007

Greg K- CoWeb assignment 2

Tracing Code (1) -
1 + 2 3 – 4 factorial -15

a := #(1 2 3 4 5) #(1 2 3 4 5)

a select: [:i | i odd] #(1 3 5)

b := a #(1 2 3 4 5)

a := a reversed #(1 2 3 4 5)

b collect: [:i | i i] #(1 2 3 4 5)

a perform: #at: withArguments: #(4) #(1 2 3 4 5)


Refactoring (1) -
refactoring is a computer science process of rethinking and redesigning already working code. Getting rid of "hacks", bad or unelequent code, and bad design. Refactoring is important because it makes your code easier to read for yourself and others, as well as making your code easier to extend and deal with in the future.

Link to this Page