Skip to content

Instantly share code, notes, and snippets.

View practicingruby's full-sized avatar

Gregory Brown practicingruby

View GitHub Profile
@practicingruby
practicingruby / plan.md
Created May 12, 2012 20:23
Study plan for paul

Projects to work on

  1. Work on Pizza Palace website. Be able to update menu, restaurant history, etc and do basic formatting without outside help. Maybe integrate some sort of photo gallery and/or simple blog support.

  2. Build a simple personal website. This could be basically start as single-page site like nickmauro.com, gradually add other content / features.

<sect1 id="projects-to-work-on">
<title>Projects to work on</title>
<orderedlist numeration="arabic">
<listitem>
<para>
Work on Pizza Palace website. Be able to update menu, restaurant
history, etc and do basic formatting without outside help. Maybe
integrate some sort of photo gallery and/or simple blog support.
</para>
</listitem>

The more I think about it, the more I think that some form of technical writing would be a good job for you. It would be a nice way for you to spend most of your time reading, writing, and learning, and you will DEFINITELY find work in it once you have mastered some basic skills. If I were you, I would definitely try to get some freelance work before trying to get a full time job in this stuff, because that will be a lot more flexible and allow you to get into it gradually.

I know that when we had planned to teach the writing course together for my school, I really overwhelmed you with information. I'm going to try not to do that to you this time around, but it'll take some back-and-forth communication to help me figure out how to help you with this stuff. Keep in mind that aside from programming, technical writing / publishing has been my line of work for almost a decade now, so I will sometimes forget how many assumptions I am making.

But on the other hand, also keep in mind that if this is the path you e

#mendicant

2012-05-11T19:55:13-04:00 - semmons99 - jordanbyron: I'm around now if you are

2012-05-13T18:30:35-04:00 - jordanbyron - Hi Anitabot!

2012-05-13T21:07:27-04:00 - semmons99 - jordanbyron: sweet you have anita up and running! horray

2012-05-13T21:13:56-04:00 - jordanbyron - semmons99: I think I do. Still trying to work out a few kinks with god. I can start anita manually, but having god start it up doesn't seem to work. I'm about to test a fix which might work ...

#mendicant

2012-05-11T19:55:13-04:00 - semmons99 - jordanbyron: I'm around now if you are

2012-05-13T18:30:35-04:00 - jordanbyron - Hi Anitabot!

2012-05-13T21:07:27-04:00 - semmons99 - jordanbyron: sweet you have anita up and running! horray

2012-05-13T21:13:56-04:00 - jordanbyron - semmons99: I think I do. Still trying to work out a few kinks with god. I can start anita manually, but having god start it up doesn't seem to work. I'm about to test a fix which might work ...

Foo

  • bar
  • baz
  • quux

Fork this gist, and then replace this document with your Markdown formatted rulebook for the game Pressman.

def object(&block)
Object.new.tap { |obj| obj.singleton_class.instance_eval(&block) }
end
def struct(*args)
Struct.new(*args)
end
def method(*a, &b)
define_method(*a, &b)

When Mike Burns outlined his vision of Unobtrusive Ruby, I initially thought it was going to be a hit with the community. However, a lack of specific examples led to a critical backlash and caused the post to generate more heat than light. This is unfortunate, because the ideas he outlined are quite valuable and shouldn't be overlooked.

In this article, I share my own interpretation of what Unobtrusive Ruby means, based on the the points that Mike outlined. I can't guarantee that my take on this is what Mike had in mind, but it should be interesting to those who wanted a better-defined roadmap than what he provided. To get this most out of this article, I recommend going back and reading what Mike wrote before continuing. Try to think about what these concepts mean to you, and then compare them to what I've outlined here.

The following guidelines are the ones Mike laid out, but

Inheritance is a key concept in most object-oriented languages, but applying it skillfully can be challenging in practice. Back in 1989, M. Sakkinen wrote a paper called Disciplined inheritance that addresses these problems and offers some useful criteria for working around them. Despite being more than two decades old, this paper is extremely relevant to the modern Ruby programmer.

Sakkinen's central point seems to be that most traditional uses of inheritance lead to poor encapsulation, bloated object contracts, and accidental namespace collisions. He provides two patterns for disciplined inheritance and suggests that by normalizing the way that we model things, we can apply these two patterns to a very wide range of scenarios. He goes on to show that code that conforms to these design rules can easily be modeled as ordinary object composition, exposing a solid alternative to tradi