robbyoconnor has quit [Read error: Connection reset by peer]
brianpWins has joined #ruby-lang
drbrain has quit [Remote host closed the connection]
drbrain has joined #ruby-lang
tdy has joined #ruby-lang
sent-hil has quit [Remote host closed the connection]
kentos has quit [Ping timeout: 255 seconds]
drbrain has quit [Ping timeout: 252 seconds]
briantrust has joined #ruby-lang
tomzx_ has joined #ruby-lang
io_syl has joined #ruby-lang
gregmoreno has joined #ruby-lang
tdy has quit [Quit: WeeChat 0.3.9.2]
tdy has joined #ruby-lang
kentos has joined #ruby-lang
gregmore_ has quit [Ping timeout: 250 seconds]
robbyoconnor has joined #ruby-lang
ryanlecompte has joined #ruby-lang
rwalker has quit [Ping timeout: 255 seconds]
madish has quit [Remote host closed the connection]
gregmoreno has quit [Remote host closed the connection]
gregmoreno has joined #ruby-lang
gaveen has joined #ruby-lang
gaveen has quit [Changing host]
gaveen has joined #ruby-lang
mpan has joined #ruby-lang
tomzx_ has quit [Ping timeout: 250 seconds]
runeb has joined #ruby-lang
r0bgleeson|mba11 has joined #ruby-lang
imajes has quit [Excess Flood]
runeb has quit [Ping timeout: 245 seconds]
imajes has joined #ruby-lang
stevechiagozie has joined #ruby-lang
gregmoreno has quit [Remote host closed the connection]
JoelMcCracken has quit [Remote host closed the connection]
cirwin has joined #ruby-lang
JoelMcCracken has joined #ruby-lang
briantrust has quit [Remote host closed the connection]
drbrain has joined #ruby-lang
drbrain has quit [Remote host closed the connection]
drbrain has joined #ruby-lang
drbrain has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
JoelMcCracken has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Ping timeout: 255 seconds]
slyphon_ has quit [Ping timeout: 245 seconds]
chendo_ has quit [Ping timeout: 252 seconds]
Guest9041 has quit [Ping timeout: 264 seconds]
tdy has quit [Quit: WeeChat 0.3.9.2]
Guest9041 has joined #ruby-lang
tdy has joined #ruby-lang
chendo_ has joined #ruby-lang
tdy has quit [Client Quit]
Guest9041 has quit [Remote host closed the connection]
tdy has joined #ruby-lang
Bosox20051 has joined #ruby-lang
Guest9041 has joined #ruby-lang
ttilley has joined #ruby-lang
Nisstyre has quit [Quit: Leaving]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
Nisstyre-laptop has quit [Quit: Leaving]
Nisstyre-laptop has joined #ruby-lang
tdy has quit [Quit: WeeChat 0.3.9.2]
havenn has quit [Remote host closed the connection]
tenderlove has quit [Remote host closed the connection]
anannie has quit [Remote host closed the connection]
gnufied has joined #ruby-lang
chendo__ has joined #ruby-lang
ryanlecompte has quit [Remote host closed the connection]
tdy has joined #ruby-lang
mistym has quit [Remote host closed the connection]
topriddy has joined #ruby-lang
sn0wb1rd has joined #ruby-lang
ryanf_ has joined #ruby-lang
gaveen has quit [Remote host closed the connection]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
ryanf has quit [Ping timeout: 250 seconds]
havenn has joined #ruby-lang
havenn has quit [Ping timeout: 255 seconds]
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 260 seconds]
ryanlecompte has joined #ruby-lang
ryanf_ has quit [Quit: broken pipes |||]
russhamiton has joined #ruby-lang
<topriddy>
how do you all remember methods for a particular type?
<heftig>
huh?
<topriddy>
for example i can do this right? "topriddy".capitalize
ryanlecompte has quit [Ping timeout: 255 seconds]
russhamiton has quit [Quit: 暂离]
<topriddy>
how do i remember all methods in String, the right arguments etc? Coming from Java we had the intellisense help at least ….or a javadoc. (most of us just remember from intellisense)
<topriddy>
heftig: I am a NEWBIE sir/ma
* topriddy
reading 20mins Ruby
<heftig>
you look them up in the documentation
<topriddy>
heftig: how? like i am just trying to learn how ruby guys work? kind of ide/editor…environment setup and other frequently used tools. I am on a mac…got ruby and rvm setup already….not decided which of the free editors to use yet but have TextWrangler and Free version of TextMate...
<topriddy>
also, not switching windows too frequently would be a plus
<heftig>
just a text editor with syntax highlighting and indentation
<topriddy>
heftig: autocompletion is a myth? last time i worked with autocompletion was in QBASIC, FORTRAN languages
<heftig>
autocompletion is difficult because it's difficult to guess what kind of type you're working with
<heftig>
thanks to ruby's dynamic typing
<heftig>
also, on top of that types can be mutated at runtime as well (monkey patching)
<topriddy>
heftig: if you're on a Mac, pls share your environment setup
stevechiagozie has quit [Ping timeout: 250 seconds]
<heftig>
not mac
<topriddy>
popular opinion seems a non-windows/*nix is best ?
<heftig>
i have no idea
<heftig>
photos from ruby conferences show lots of macbooks
<heftig>
and i haven't tried developing ruby on windows
ryanf has joined #ruby-lang
<reactormonk>
in 2010, I've seen _one_ guy with ruby on windows.
Bosox20051 has quit [Ping timeout: 244 seconds]
Paradox| is now known as Paradox
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
Mon_Ouie has quit [Read error: Connection reset by peer]
loladiro has quit [Quit: loladiro]
Mon_Ouie has joined #ruby-lang
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
havenn has joined #ruby-lang
<rue>
topriddy: I develop on the console, so I have ri for docs. Or you can just keep a web page open
loladiro has joined #ruby-lang
<topriddy>
so i can just check how to use ri. i am on console too. vim (though my vim-foo is basic for now).
<TTilus>
ive been told ruby works just fine on windows
<topriddy>
created a class Greeter. This works to show methods: Greeter.instance_methods(false)…but can't do "name".instance_methods. Guess thats cos "name" is an object and not a Class
<TTilus>
webdevs working on windows are a bit rarity in general
<rue>
topriddy: That would be "name".methods
<rue>
And yes, that’s why
<topriddy>
TTilus: really? surprised…most of the online setup seem groomed to *nix. plus the way the gem works too
<topriddy>
rue: thanks man. appreciate
<TTilus>
topriddy: "ive been told", so its total hearsay
<TTilus>
topriddy: and could be totally wrong
<topriddy>
okay.
<TTilus>
topriddy: see "name".class.instance_method
<TTilus>
topriddy: foo.methods is what you can call on foo
<topriddy>
this looks cool: 2.class.instance_methods. works too :D
<topriddy>
2 is a primitive datâ type in java. a lil weird here :)
dc5ala has joined #ruby-lang
<TTilus>
in ruby its always compile time :)
<TTilus>
and everything is an object
<topriddy>
yeah. i noticed :)
<TTilus>
foo.methods and foo.class.instance_methods arent necessarily the same thing
<TTilus>
although they mostly are
havenn has quit [Remote host closed the connection]
<TTilus>
separate instances of a class may have different methods
<TTilus>
wrapper-decorator would expose an interface resembling that of the wrapped object
shemerey has joined #ruby-lang
cirwin has quit [Remote host closed the connection]
<TTilus>
including #class method being redefined to return the class of the wrappede object
<TTilus>
s/pede/ped/
<topriddy>
okay
sush24 has joined #ruby-lang
Axsuul has quit [Ping timeout: 252 seconds]
<topriddy>
using TextMate2
facest has joined #ruby-lang
<TTilus>
many are
* TTilus
likes emacs
sush24 has quit [Client Quit]
faces has quit [Ping timeout: 260 seconds]
llaskin has quit [Read error: Connection reset by peer]
topriddy has quit [Read error: Connection reset by peer]
topriddy has joined #ruby-lang
dc5ala has quit [Quit: Ex-Chat]
r0bgleeson|mba11 has quit [Ping timeout: 252 seconds]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
anannie has joined #ruby-lang
tbuehlmann has joined #ruby-lang
<topriddy>
TTilus: emacs is like vim. requires some heavy reading first to get full power. i'll just play it simple for now :D
<topriddy>
TTilus: what web framework do you favour sir? also, what other applications do you apply ruby too?
adambeynon has joined #ruby-lang
Ridders24 has joined #ruby-lang
adambeynon has quit [Client Quit]
solars has joined #ruby-lang
topriddy has quit [Read error: Connection reset by peer]
gnufied has quit [Quit: Leaving.]
shtirlic_ has joined #ruby-lang
topriddy has joined #ruby-lang
shtirlic_ has quit [Remote host closed the connection]
<whitequark>
or better, run ruby 0.49 on linux 0.98
<whitequark>
with gcc 2.95
<charliesome>
i've actually read through linux 0.01's source
<whitequark>
who didn't?
<charliesome>
true
<charliesome>
it was a cool little kernel
<whitequark>
indeed
<whitequark>
and consumed slightly less resources than a single button in a modern browser
<charliesome>
haha ruby 0.49 does some strange stuff
<charliesome>
unsigned char c;
<charliesome>
/* a few lines later */
<charliesome>
c = 0x8000;
<whitequark>
this kinda reaffirms my hypothesis that some part of ruby sources were written by a genetic algorithm
<charliesome>
i'm glad compilers these days have a super strict option
<charliesome>
maybe they did back in the 90s too but it seems a lot of programmers didn't use that option
<shachaf>
charliesome: Hey, that could be valid C!
<whitequark>
charliesome: from what I know, they were barely able to compile. I recall reading about a 35-or-so pass fortran compiler
<whitequark>
it won't fit in RAM otherwise
<charliesome>
oh wow
<whitequark>
or was that earlier...
<whitequark>
oh, I missed by like three decades.
<whitequark>
FORTRAN was provided for the IBM 1401 by an innovative 63-pass compiler that ran in only 8k of core.
<charliesome>
>innovative
<charliesome>
well i guess it was quite an accomplishment
<shachaf>
63 passes? Did it overflow past that?
<whitequark>
charliesome: hey, it was 1960
<jaska>
63-pass :D
<whitequark>
also the result was interpreted
<whitequark>
charliesome: through I definitely remember that Borland C++ used some kind of homegrown extended memory and swapping system. DPMI or something like that.
<charliesome>
this stuff is crazy
<charliesome>
i'm glad it was the 2000s when i started messing with computers
<whitequark>
or maybe it wasn't C++
<whitequark>
charliesome: it was past 2000 for me, too. I just got my hands on really old hardware and software.
<whitequark>
you know, a computer with a TURBO button.
<charliesome>
haha, my grandma has one of them
<charliesome>
ooh interesting
<whitequark>
well, it was my grandma's computer, in fact. she's a programmer.
<charliesome>
accessing undefined constants in 0.49 just returns nil
<whitequark>
charliesome: what about redefinition?
<charliesome>
whitequark: completely legit
<charliesome>
in fact they probably aren't even constants
<charliesome>
oh wow, the date in version.h was 10 days after i was born
srbaker has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
<charliesome>
also there were no parenthesis-less calls in 0.49
x0F_ is now known as x0F
<charliesome>
apart from methods taking no arguments
<whitequark>
charliesome: how much KLOC in that?
<charliesome>
19 kloc of c
yxhuvud2 has joined #ruby-lang
<whitequark>
tiny
<charliesome>
i'll chuck a copy up on eval.in shortly
<whitequark>
just twice bigger than current parse.y :)
<charliesome>
haha
<charliesome>
parse.y in 0.49 was 2.5 kloc
<charliesome>
looks like the symbol code has been in parse.y since the beginning
<charliesome>
including rb_class2name
yxhuvud has quit [Ping timeout: 260 seconds]
<charliesome>
0.49 did not have nested classes, it had a single 'class table'
zmack has joined #ruby-lang
<charliesome>
rb_class2name involved iterating over the class table until it found the class, then returning its name
zmack has quit [Remote host closed the connection]
<apeiros_>
old ruby versions?
mistym has quit [Remote host closed the connection]
<apeiros_>
charliesome: what? wow, you're young (re: 10 days after I was born)
<whitequark>
manveru: perfect. now we should make this the official and mandatory form of greeting for all circumstances.
runeb has quit [Remote host closed the connection]
shemerey has quit [Quit: Leaving...]
srbaker has quit [Quit: Computer has gone to sleep.]
rwalker has joined #ruby-lang
<Ridders24>
how do you include an input for a script when using OCRA? for example when in cmd i would put "ruby examplescript.rb foo" but when I run ocra such as "ruby -S ocra examplescript.rb foo, i get error not found
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
yfeldblum has quit [Quit: Leaving]
rwalker has left #ruby-lang [#ruby-lang]
rhalff has joined #ruby-lang
reppard has joined #ruby-lang
shtirlic has quit [Remote host closed the connection]
MaddinXx has quit [Remote host closed the connection]
voker57 has quit [Read error: Connection reset by peer]
setmeaway2 has joined #ruby-lang
topriddy has quit [Quit: topriddy]
stonerfish has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
Ridders24 has quit [Ping timeout: 264 seconds]
setmeaway has quit [Ping timeout: 248 seconds]
loladiro has joined #ruby-lang
sush24 has quit [Ping timeout: 265 seconds]
Ridders24 has joined #ruby-lang
slyphon_ has joined #ruby-lang
stonerfish has quit [Quit: Leaving.]
reppard has joined #ruby-lang
runeb has joined #ruby-lang
micaeked has joined #ruby-lang
yxhuvud has joined #ruby-lang
cirenyc has joined #ruby-lang
sush24 has joined #ruby-lang
yxhuvud2 has quit [Ping timeout: 256 seconds]
sepp2k1 has joined #ruby-lang
banisterfiend has quit [Ping timeout: 245 seconds]
relic has quit [Read error: Connection reset by peer]
sepp2k has quit [Ping timeout: 265 seconds]
nerd has quit [Quit: WeeChat 0.3.9.2]
spuk has joined #ruby-lang
briantrust has quit [Remote host closed the connection]
Hakon has joined #ruby-lang
briantrust has joined #ruby-lang
briantrust has quit [Remote host closed the connection]
reppard has quit [Ping timeout: 260 seconds]
davidbalber|away is now known as davidbalbert
tbuehlmann has quit [Remote host closed the connection]
r0bgleeson|mba11 has quit [Quit: WeeChat 0.3.8]
JoelMcCracken has quit [Read error: Connection reset by peer]
JoelMcCracken has joined #ruby-lang
gaveen has quit [Remote host closed the connection]
Kreeki has joined #ruby-lang
Teddy2steper has joined #ruby-lang
sepp2k1 has quit [Ping timeout: 265 seconds]
stevechiagozie has quit [Ping timeout: 255 seconds]
cirenyc has quit [Read error: Connection reset by peer]
gsav has joined #ruby-lang
ebouchut has quit [Quit: This computer has gone to sleep]
Teddy2steper has quit [Remote host closed the connection]
sush24 has quit [Ping timeout: 255 seconds]
ebouchut has joined #ruby-lang
sush24 has joined #ruby-lang
sepp2k has joined #ruby-lang
ebouchut has quit [Quit: This computer has gone to sleep]
loladiro has quit [Quit: loladiro]
gsav has quit [Ping timeout: 252 seconds]
Kreeki has quit [Quit: Leaving...]
yxhuvud2 has joined #ruby-lang
vlad_starkov has joined #ruby-lang
pkondzior__ has joined #ruby-lang
yfeldblum has quit [Ping timeout: 252 seconds]
yxhuvud has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Ping timeout: 250 seconds]
anummaBrooke has joined #ruby-lang
anummaBrooke has left #ruby-lang [#ruby-lang]
Kreeki has joined #ruby-lang
Kreeki has quit [Client Quit]
<whitequark>
I need an advice on OOP design
<whitequark>
I'm writing a system which, by purpose, allows one to build and operate on complex, deeply nested hierarchies of objects, the complexity resembling that of the problem domain
<whitequark>
the system both allows the user to create all types of objects and it will also create them by itself
<whitequark>
now I need to allow extending the objects
<whitequark>
I could either let the user inherit from the objects s/he wants to modify, and then I'd need to build a dependency injection system to ensure that the objects created from inside are of the same type
<whitequark>
or allow attaching metadata, which probably will end up being a severe case of hasheritis
<whitequark>
what's better?
yfeldblum has joined #ruby-lang
stevechiagozie has joined #ruby-lang
mrb_bk___ has joined #ruby-lang
<yorickpeterse>
Dependency injection would probably introduce the smallest amount of problems
<whitequark>
yorickpeterse: but DI is a problem by itself, and not a small one
<yorickpeterse>
true
nick_h has quit [Ping timeout: 244 seconds]
anildigital_work has joined #ruby-lang
<whitequark>
in fact I just realized LLVM uses the metadata approach despite being written in C++
wyhaines has joined #ruby-lang
nick_h has joined #ruby-lang
<whitequark>
so that's probably the lesser evil. the metadata system is quite entangled in it, through :/
<whitequark>
or, rather, the metadata content
gsav has joined #ruby-lang
seanstickle has joined #ruby-lang
ebouchut has joined #ruby-lang
seanstickle has quit [Client Quit]
briantrust has joined #ruby-lang
ttilley has joined #ruby-lang
reppard has joined #ruby-lang
Hakon has quit [Quit: Leaving...]
gsav has quit [Ping timeout: 252 seconds]
davidbalbert is now known as davidbalber|away
drbrain has joined #ruby-lang
briantrust has quit [Remote host closed the connection]
Ridders24 has quit [Ping timeout: 244 seconds]
stonerfish has joined #ruby-lang
rhalff has quit [Ping timeout: 250 seconds]
Nisstyre-laptop has joined #ruby-lang
ebouchut has quit [Quit: This computer has gone to sleep]
stevechiagozie has quit [Ping timeout: 245 seconds]
glebm has joined #ruby-lang
enebo has quit [Quit: enebo]
Nisstyre has joined #ruby-lang
vlad_starkov has joined #ruby-lang
Nisstyre has quit [Read error: Connection reset by peer]
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
yfeldblum has quit [Ping timeout: 252 seconds]
Teddy2steper has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 245 seconds]
heftig has quit [Ping timeout: 245 seconds]
Teddy2steper has quit [Remote host closed the connection]
reppard has quit [Ping timeout: 260 seconds]
yxhuvud has joined #ruby-lang
rhalff has joined #ruby-lang
yxhuvud2 has quit [Ping timeout: 260 seconds]
lcdhoffman has quit [Quit: lcdhoffman]
sush24 has quit [Quit: This computer has gone to sleep]
solars has quit [Ping timeout: 256 seconds]
yfeldblum has joined #ruby-lang
<xalei>
whitequark, have you created an implementation to base your design on?
ryanlecompte has quit [Remote host closed the connection]
Ridders24 has joined #ruby-lang
spinagon has quit [Ping timeout: 250 seconds]
stevechiagozie has joined #ruby-lang
solars has joined #ruby-lang
MaddinXx has quit [Remote host closed the connection]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
stevechiagozie has quit [Ping timeout: 265 seconds]
drbrain has quit [Ping timeout: 260 seconds]
runeb has quit [Remote host closed the connection]
reppard has joined #ruby-lang
rhalff has quit [Ping timeout: 250 seconds]
lsegal has joined #ruby-lang
drbrain has joined #ruby-lang
srbaker has joined #ruby-lang
retro|cz has joined #ruby-lang
loladiro has joined #ruby-lang
reppard has quit [Ping timeout: 252 seconds]
loladiro has quit [Quit: loladiro]
atadesk has joined #ruby-lang
atadesk has left #ruby-lang [#ruby-lang]
VegetableSpoon has joined #ruby-lang
stevechiagozie has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
nyuszika7h has quit [Quit: Here we are, going far to save all that we love - If we give all we've got, we will make it through - Here we are, like a star shining bright on your world - Today, make evil go away!]
srbaker has quit [Quit: Computer has gone to sleep.]
nyuszika7h has joined #ruby-lang
srbaker has joined #ruby-lang
yxhuvud2 has joined #ruby-lang
yxhuvud has quit [Ping timeout: 245 seconds]
glebm has quit [Ping timeout: 256 seconds]
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
havenn has quit [Read error: Connection reset by peer]
havenn has joined #ruby-lang
havenn has quit [Ping timeout: 252 seconds]
RubarLion has joined #ruby-lang
stevechiagozie has quit [Quit: leaving]
ryanlecompte has joined #ruby-lang
Axsuul has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
havenn has joined #ruby-lang
topriddy has joined #ruby-lang
ryanlecompte has quit [Ping timeout: 265 seconds]
<whitequark>
xalei: er. I have an implementation which I need to extend
topriddy has quit [Ping timeout: 260 seconds]
FiXato has quit [Ping timeout: 265 seconds]
kurko_ has quit [Ping timeout: 252 seconds]
FiXato has joined #ruby-lang
shemerey has joined #ruby-lang
topriddy has joined #ruby-lang
Bosox20051 has joined #ruby-lang
Radagast has joined #ruby-lang
gsav has joined #ruby-lang
withywindle has joined #ruby-lang
Radagast has quit [Quit: Leaving]
tentimes has joined #ruby-lang
MaddinXx has joined #ruby-lang
Nisstyre has joined #ruby-lang
srbaker has joined #ruby-lang
gix has joined #ruby-lang
yxhuvud has joined #ruby-lang
rhalff has joined #ruby-lang
yxhuvud2 has quit [Ping timeout: 255 seconds]
gsav has quit [Ping timeout: 255 seconds]
marr has joined #ruby-lang
wyhaines has quit [Read error: Connection reset by peer]
wyhaines_ has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
withywindle has quit [Remote host closed the connection]
RubarLion has quit [Remote host closed the connection]
RubarLion has joined #ruby-lang
gsav has joined #ruby-lang
reppard has joined #ruby-lang
RubarLion has quit [Ping timeout: 246 seconds]
madish has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.1/20121026125834]]
madish has joined #ruby-lang
tentimes has quit [Quit: IceChat - Keeping PC's cool since 2000]
mercwithamouth has joined #ruby-lang
yfeldblum has quit [Ping timeout: 256 seconds]
JoelMcCracken has quit [Ping timeout: 246 seconds]
davidbalber|away is now known as davidbalbert
yxhuvud2 has joined #ruby-lang
mwn has joined #ruby-lang
wyhaines_ has quit [Read error: Connection reset by peer]
yxhuvud has quit [Ping timeout: 264 seconds]
wyhaines has joined #ruby-lang
rhalff has quit [Ping timeout: 244 seconds]
intellitech has joined #ruby-lang
reppard has quit [Ping timeout: 244 seconds]
tentimes has joined #ruby-lang
gsav has quit [Ping timeout: 265 seconds]
havenn has quit [Remote host closed the connection]
lcdhoffman has joined #ruby-lang
vlad_starkov has joined #ruby-lang
nilibanili has joined #ruby-lang
nilibanili has quit [Remote host closed the connection]
MaddinXx has quit [Remote host closed the connection]