| motion | ajturner: *arr ajturner: you use the splat again |
| ajturner | motion - thx wasn't sure how the splat is handled in ruby (i try to forget my c-days) |
| motion | c doesnt have a splat |
| ajturner | well, not splat, pointers ;) |
| motion | or at least, they dont relate at all |
| ajturner | what is 'splat' then? |
| rane_ | learning C is hell after ruby |
| motion | it expands the array into an arg list |
| ajturner | splat is like 'explode' |
| motion | that has NOTHING to do with pointers |
| ajturner | ah, k |
| motion | splat more relates to va_list |
| ajturner | ah, when I saw the '*' in method(*args) I thought it was perhaps somehow a reference to a pointer holding maybe a struct with an arbitrary size |
| kreaturr | ajturner: don't worry, ruby is safe from pointers. ;) |
| motion | ajturner: this is a scripting language, you dont worry about memory pointers/allocations |
| haxorjoe | hey |
| motion | hey |
| haxorjoe | if you know ruby, how hard will it be to learn ror? |
| tpope | haxorjoe, the hardest part will be grasping mvc |
| teferi | not hard |
| tpope | no too bad |
| teferi | even easier if you don't get trapped in scaffolding happily, scaffolding seems to have become unpopular lately |
| haxorjoe | sorry to sound stupid, but what's mvc? |
| teferi | model-view-controller it's a design pattern |
| haxorjoe | thanks, I don't know anything yet hoping to learn ruby over the summer |
| Pupeno | Hello. |
| haxorjoe | o/ |
| Pupeno | To wrap a C library to be able to use it from Ruby I'll have to wire a Ruby extension in C? |
| kbrooks | Pupeno, correct. however, you can do it a different way with rubyinline |
| motion | or swig to create the stubs for ya |
| oGMo | "end" as a keyword is annoying |
| Crypticus | Hello All May I please beg someone for a little help. I getting really frustrated that I can't figure out this one thing. I have a String "<ADDRESS>123 Some Place</ADDRESS>" I simply want to delete both <ADDRESS and </ADDRESS> nothing else. Any ideas? |
| kreaturr | Pupeno: also, you *might* be able to do it with DL or DLX |
| Crypticus | I can't simple to make string.delete work to just delete whole expressions |