José Mota — Web engineer & architect

Latest blog posts

0

Blogrite 002 – Where to even start

March 30th, 2011

It’s the first time I am writing any tests at all, I’m dead serious. Please bear with me, I’d appreciate your help in guiding towards the magic of TDD. Thanks guys.

What I noticed already

  • I chose Minitest after Rspec because it’s leaner, which is what I want for now.
  • Requiring ‘minitest/autorun’ will run my tests automatically.
  • The class to inherit from is Minitest::Unit::TestCase, not from the Test module.

I’m still missing stuff like how to require and autoload right. I’m pretty sure is wrong with that.

0

Blogrite 001 – Prelude

March 29th, 2011

I’ve posted my first video about Blogrite. It mainly states initial thoughts and motivation on the project.

@dhh started a heated discussion on Rspec vs Test::Unit, right after I finished the recording. I must admit he’s a genius and he actually made me reconsider Test::Unit again, since it is considerably lighter than Rspec. I’ll have to think about it.

2

New journey: Ruby + git = Blogrite

March 29th, 2011

Truth: my blog and I have been apart for a while. Another truth: I’ve been reading more about Ruby. In fact, the more I read, the more I want to. Also, I’ve been growing tired of certain things:

  • PHP is not it anymore.
  • WordPress or Drupal are top notch. I don’t need top notch; I want to publish content easier and faster.
  • I want to learn Ruby the hard way. I want to learn how to test, I want to learn how to build a gem, how to use Rack, all of it. Only then I’ll be more confident enjoying the full power of Ruby.
  • I don’t want to depend on a database to publish my content. I never saw that much sense in storing articles inside a relational database column. I love Git and it seems it is capable of storing the content I want.
  • I’m sick of 10+ spam comments a day.

My next dare: a git + ruby based blog. So, I’ll be posting several articles on how I’m doing. If possible, I’ll post videos too. I’ll make sure to use Vimeo since it accepts OGG (it seems lighter).

Thanks to the people at the Ruby meetup in March 19th who have motivated me (even without knowing).

0

Prototypes in Rails?

February 21st, 2011

Prototyping is good tool; if your regular development is slow, not agile and you need to draft something up real quick for your client.

If you’re a Rails developer / designer, why even bother? Why not just start pumping the business up? You don’t have that much attrition to get an app up and running. All the time you spend in prototyping should be invested in building the actual app.

Web application design walks with its development, they are too close to be set apart.

2

Rails 3 has_many :through checkboxes

November 5th, 2010

On Twitter I wrote:

Rails does it for you, just add sheet_ids[] to the form with the checkboxes and it’s done! will blog.

Being a music teacher, my fiance needed to keep record of tests her students perform. Also, each test has several sheets that need mentoring and monitorization through several parameters. I decided to help and reentered the Rails world, and since I have found no answer on this topic, I decided to write it myself.

This situation is a perfect model for using the so well known HABTM checkboxes.

Read the rest of this entry »

Older Entries Newer Entries