ACK

5 views
Skip to first unread message

daxhuiberts

unread,
May 11, 2009, 7:15:43 AM5/11/09
to amsterdam.rb
Hi all,

I've heared that there's another ACK meeting tonight.
Is it still located at the OBA? And what time does it start?

Greetings, Dax.

Julio Javier Cicchelli

unread,
May 11, 2009, 8:57:29 AM5/11/09
to amster...@googlegroups.com
So let there be ACK then! I'll be there :)

Erik Terpstra

unread,
May 11, 2009, 9:15:01 AM5/11/09
to amsterdam.rb
I'll be there.

Dax, it's around 18:00 at the top floor.

Cheers,

Erik.

Dax Huiberts

unread,
May 11, 2009, 9:36:53 AM5/11/09
to amster...@googlegroups.com
Great! I'll be there around 19:00 / 19:15 though.

Dax Huiberts

unread,
May 12, 2009, 7:17:14 AM5/12/09
to amster...@googlegroups.com
Yesterday was a fine ACK meeting, not many people were there though,
but interesting nonetheless.

That got me interested in a project of mine which has been hibernated
for quite a while now.
Do you ever get tired of the Rails form helpers (form_tag, form_for,
form_remote_for (ok, it's an alias), form_remote_tag and
remote_form_for) with all their different argument handling.
Well, I did. So I started working on a consistent form calling
convention without all the crudge the rails helpers have.
I will get that project out of hibernation, clean it up a bit, put it
up on github and give it a name.
Thanks to Erik that last step is already taken care of: Uniform :D
I'll let you know when it's on github and hopefully you'll like it.

Greets, Dax Huiberts.

Martijn Lafeber

unread,
May 12, 2009, 7:23:23 AM5/12/09
to amster...@googlegroups.com
Hey Dax,

Great idea! I'm one of those who are indeed tired of the inconsistency
you mentioned.

Martijn

Julio Javier Cicchelli

unread,
May 12, 2009, 8:24:02 AM5/12/09
to amster...@googlegroups.com
Hi there Dax!

I agree it was small but nice. We've talked about a lot of interesting subjects.

For those of you who couldn't make it to the Library, here's a little recap:
  • Instance validations strategies on Ruby and my "validations4r" project: examples and code browsing.
  • Differences between Haskell and Erlang.
  • RSpec and Cucumber: is it conveniant? when and how to implement testing on existing projects, code browsing.
  • Rails form inconsistencies and Dax's untitled project.
  • Shoes example and code browsing.
  • Erik's book about Computer Hardware and Software implementations.
  • Rails vs. Merb vs. Sinatra
If I'm forgetting something about the meeting, please refresh my memory :)

From my part, yesterday I officially presented the projects I've been working on during the last couple of weeks. My focus is on the validation of Ruby built-in instances a la ActiveRecord as a complementary strategy to the ad-hoc type cheking and Duck Typing. The idea was born when Remco was looking at an example code and asked me why I want to validate the instances any method receives as an input.

The project "validations4r" gathers Ruby built-in classes as group and defines rules that can be applied to it. The developer can validate an instance by its type and the conditions the developer passes as a block.

With this library you can go from writing a validation like this:
raise Error.new("an error message") unless ("hallo!".is_a?(String) &&
    "hallo!".length == 10 &&
    "hallo!".include?("!"))

To this code:
raise Error.new("an error message") \
unless validate("hallo!",:as=>:text){|v| v.size = 10; v.include = "!"}

This library is based on another project I wrote called "validator". This is a DSL for writing validations of any kind. You just need to define a group, the classes this group should validate and any extra rule you require to validate an instance.

One interesting point for both project: they have been developed by using TDD and BDD approaches.

If you're interested in trying this libraries, you can either install the gems :

gem install rock-n-code-validator
gem install rock-n-code-validations4r


...or fork the code at the following Github links:
If anything, please let me know!

Best regards,
Javier.-

Tw. @monsieur_rock
MSN: monsieur_rock [at] hotmail [dot] com
LinkedIn: http://www.linkedin.com/in/javiercicchelli

Fernando Vezzosi

unread,
May 12, 2009, 5:40:25 PM5/12/09
to amster...@googlegroups.com
On Tue, May 12, 2009 at 01:17:14PM +0200, Dax Huiberts wrote:
> Yesterday was a fine ACK meeting, not many people were there though,
> but interesting nonetheless.

Another thing that popped up last night:

http://www.haskell.org/~pairwise/intro/intro.html

I've been toying with Haskell for a couple of hours, it's interesting,
thanks :)

--
Fernando Vezzosi
qw(MDAx MTAw MDEw MDEx MDAw _5 MTEw _6 _1 _5 _5 _4 _2 _2 _6
MTEx _1 _5 _5 _4 _5 _2 _6 _1 _1 _2 _2 _3 _5 _5 _6 _1 _1 _2
_5 _4 _3 _5 _2 _5 _1 _2 _3 _4 _5 MA==)

signature.asc

Julio Javier Cicchelli

unread,
May 25, 2009, 4:39:05 AM5/25/09
to amster...@googlegroups.com, Fernando Vezzosi
Hi Fernando!

Interesting link! Thanks for sharing it! I'll make good use of it.


Best regards,
Javier.-

Tw. @monsieur_rock
MSN: monsieur_rock [at] hotmail [dot] com
LinkedIn: http://www.linkedin.com/in/javiercicchelli

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkoJ7MQACgkQ1r58BbKJl8k1pgCfawVXryfUmMJmhGKbM1bE6yNy
DEcAoIZ1IG7HU7+uBe8A+KtUWeflhsXD
=QDJ+
-----END PGP SIGNATURE-----


Reply all
Reply to author
Forward
0 new messages