karlstolley / 535

Course materials for COM535: Instructional Design
http://karlstolley.github.com/535/
1 stars 6 forks source link

Anthony Sansone: Ruby #25

Open atsansone opened 11 years ago

atsansone commented 11 years ago

Current Ruby repo: https://github.com/atsansone/535/tree/dev

Still working on it. Should have things unplumbed by tomorrow. Sorry for the delay.

ghost commented 11 years ago

You're not alone, Tony:

These sections are pretty solid: intro, selectors, declarations, positioning https://github.com/camcclure/535/tree/dev

More coming tomorrow.

On Sun, Oct 28, 2012 at 8:03 PM, Anthony Sansone notifications@github.comwrote:

Current Ruby repo: https://github.com/atsansone/535/tree/dev

Still working on it. Should have things unplumbed by tomorrow. Sorry for the delay.

— Reply to this email directly or view it on GitHubhttps://github.com/karlstolley/535/issues/25.

kchughes commented 11 years ago

I'm with you too. Still trying to figure out some things.

matthewheston commented 11 years ago

Anthony--

One thing I notice is that a lot of your Ruby constructs aren't necessarily idiomatic. For example, I would imagine it's more common to see something like

class_file = []

over

class_file = Array.new

Also, any sort of loop construct could probably be replaced with iterable functions (each, etc.)

Zed Shaw makes a case for not using these. See http://learncodethehardway.org/blog/AUG_19_2012.html. I dig Zed. I don't know how I feel about this though. Regardless, it's not necessarily something that needs to change, but it is maybe something to be aware of.

atsansone commented 11 years ago

Good catch, Matthew. I don't have the 100% feel for Ruby yet. I did realize that I over designed the ID and needed to just have a simple script to explain. That will be delivered in a future version.

T

On Mon, Oct 29, 2012 at 8:24 PM, matthewheston notifications@github.comwrote:

Anthony--

One thing I notice is that a lot of your Ruby constructs aren't necessarily idiomatic. For example, I would imagine it's more common to see something like

class_file = []

over

class_file = Array.new

Also, any sort of loop construct could probably be replaced with iterable functions (each, etc.)

Zed Shaw makes a case for not using these. See http://learncodethehardway.org/blog/AUG_19_2012.html. I dig Zed. I don't know how I feel about this though. Regardless, it's not necessarily something that needs to change, but it is maybe something to be aware of.

— Reply to this email directly or view it on GitHubhttps://github.com/karlstolley/535/issues/25#issuecomment-9892187.