dfockler has quit [Remote host closed the connection]
lncdslnc has joined #ruby
<[spoiler]>
yorickpeterse: oh I had a random epiphany. Are you using OS X? I remember a friend of mine was complaining about the same issue with the overly-soft AA of fonts and he did something to fix it
<[spoiler]>
I could ask him if you want
lncdslnc has quit [Remote host closed the connection]
<Ox0dea>
Infinality uber alles.
marr has quit [Ping timeout: 265 seconds]
jtdoncas has quit [Ping timeout: 264 seconds]
D9 has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
grvgr has joined #ruby
<[spoiler]>
Ja!
mary5030 has quit [Remote host closed the connection]
<[spoiler]>
Nein!
grvgr has quit [Client Quit]
Thomas-0725 has joined #ruby
chills42 has quit [Remote host closed the connection]
<shevy>
should I rather rewrite this to .start_with?
avahey has quit [Quit: Connection closed for inactivity]
<nofxx>
Ox0dea, maybe booklet? Book you kind expect lots of pages, this might contain 1 or 2 pages per group.
cpruitt has quit [Quit: cpruitt]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dvabr has joined #ruby
<Ox0dea>
shevy: [0,1] is just [0] there, no?
apeiros has joined #ruby
saddad has joined #ruby
pauly_oc has quit [Ping timeout: 240 seconds]
d10n-work has quit [Quit: Connection closed for inactivity]
einarj has quit [Ping timeout: 255 seconds]
michaeldeol has joined #ruby
<[spoiler]>
what he said might be best, but String#start_with? will also be better than that
<Ox0dea>
I disagree emphatically.
michaeldeol has quit [Client Quit]
<[spoiler]>
Ox0dea: with what? o.o
<shevy>
I am semi-undecided, I find start_with? more intuitive or logical but the [] is shorter
<[spoiler]>
shevy: the start_with? might be faster
<Ox0dea>
[spoiler]: With preferring and proselytizing for the verbose "human-readable" methods where there exist perfectly succinct symbolic ones.
<[spoiler]>
and it reads
<nofxx>
Ox0dea, nah... Book is great =D
chills42 has joined #ruby
<shevy>
if it is really faster then we have a winner :D
<Ox0dea>
Any programmer worth her salt should be able to "read" square brackets without skipping a beat, in my opinion.
<Ox0dea>
nofxx: Excellent! :P
<[spoiler]>
Ox0dea: of course, but why not use it if it's there (and better?)
funguy2 has joined #ruby
jtdoncas has joined #ruby
towski_ has quit [Remote host closed the connection]
<funguy2>
hi alllllllllllllllll
<Ox0dea>
[spoiler]: Well, sure, in this case the verbose method is better because it's faster because it does less, but there are many other instances where that's not the case.
dgutierrez1287 has joined #ruby
<[spoiler]>
Ox0dea: it's a matter of style in most other cases
lucyinthesky has quit [Quit: Leaving]
<[spoiler]>
funguy2: hello :)
dr3w has joined #ruby
<[spoiler]>
I like to use the english methods. I'm not *really* sure why I like them (maybe I find them nice?). But, I understand why someone wouldn't like them
<shevy>
well
funguy2 has quit []
<shevy>
my code is like half [x,y] and one half .start_with?
<shevy>
and I don't like that, it looks as if I am drunk half the time
soulcake has quit [Quit: Quack.]
robh71 has joined #ruby
<Ox0dea>
Tim Toady approves.
casadei_ has joined #ruby
<shevy>
that old drunkard
shock_one has quit [Remote host closed the connection]
<[spoiler]>
haha
<[spoiler]>
shevy: Use what you're more comfortable with :D
<shevy>
[]
<[spoiler]>
and what you think is more understandable
<shevy>
.start_with?
<[spoiler]>
damn
<[spoiler]>
That's conflicting
<shevy>
nah it's ok, to be fair, I did not know about .start_with? for a long time
<shevy>
then I settled for [] because that is common for strings and arrays alike
<[spoiler]>
shevy: it also accepts a list of args, just a side note
devoldmx has joined #ruby
dgutierrez1287 has quit [Ping timeout: 255 seconds]
workmad3 has joined #ruby
<[spoiler]>
string.starts_with? *%w{ a e i o u }
<shevy>
hmm
<shevy>
killing 7 flies with one strike
dr3w has quit [Ping timeout: 245 seconds]
frozen3 has joined #ruby
bruno- has joined #ruby
christiandsg has joined #ruby
shazaum has quit [Quit: This computer has gone to sleep]
zenspider has joined #ruby
nettoweb has joined #ruby
Mia has joined #ruby
devoldmx has quit [Ping timeout: 255 seconds]
blackmesa has quit [Quit: WeeChat 1.2]
<zenspider>
rawr
workmad3 has quit [Ping timeout: 272 seconds]
nettoweb has quit [Max SendQ exceeded]
nettoweb has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
Axy has quit [Ping timeout: 255 seconds]
_blizzy_ has quit [Ping timeout: 240 seconds]
ff7f00 has left #ruby [#ruby]
lele|w has quit [Ping timeout: 240 seconds]
nettoweb has quit [Max SendQ exceeded]
lele|w has joined #ruby
<[spoiler]>
zenspider: oh no, a spider!
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nettoweb has joined #ruby
FernandoBasso has quit [Quit: May the force be with you.]
nettoweb has quit [Max SendQ exceeded]
lannonbr has quit [Quit: WeeChat 1.2]
mary5030 has joined #ruby
saddad has quit [Ping timeout: 255 seconds]
hashrocket has quit [Quit: Connection closed for inactivity]
<zenspider>
did I miss anything exciting?
nettoweb has joined #ruby
<Ox0dea>
I discovered Errno::EDOOFUS.
<Ox0dea>
It's a codification of PEBKAC from the FreeBSD project.
<[spoiler]>
we have a pebkac baton in our office
<Ox0dea>
Does it see frequent utilization?
Axy has joined #ruby
episage has quit [Ping timeout: 246 seconds]
<[spoiler]>
Fortunately no, but I did get whacked once because I pulled my mouse cord out with my foot and three of us were trying to debug wtf is up with my mouse
nettoweb has quit [Max SendQ exceeded]
<shevy>
lol
nettoweb has joined #ruby
maletor has quit []
Mia has quit [Ping timeout: 244 seconds]
<[spoiler]>
"Is it plugged in?" - "Yes, it worked a second ago"; "Did you check? - Lies, "yes, of course I checked!"
<[spoiler]>
that is how it begun
<[spoiler]>
Our ~5 minute adventure
chills42 has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
Kallis has quit [Read error: Connection reset by peer]
mago0_ has joined #ruby
<havenwood>
!mute N1993|2
tkuchiki has quit [Remote host closed the connection]
Oog has joined #ruby
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
happy_dev has joined #ruby
skryking has joined #ruby
tkuchiki has joined #ruby
skryking has quit [Remote host closed the connection]
<happy_dev>
hey all not sure if this is the right place to ask this, but my heroku web app stopped working
ivanskie has joined #ruby
<happy_dev>
it was a reddit image scraper
<happy_dev>
i didnt do any code changes, but it just randomly stopped working since today
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
<[spoiler]>
Goodnight everyone! (happy_dev: did you you see their recent changes in the way free dynos are handled, also make sure they didn't do something on their DNS again)
<RickHull>
i'm a ruby guy in a Java shop these days
<RickHull>
i figure i'll be firing up jruby in anger sooner or later
<havenwood>
RickHull: nice
Asher has quit [Quit: Leaving.]
lwu has joined #ruby
lwu has quit [Client Quit]
Mon_Ouie has quit [Ping timeout: 246 seconds]
mancomunado has joined #ruby
<havenwood>
^ that comment could really use some clarifying
<mancomunado>
Which text reader simultaneously scroll both texts?
<havenwood>
the grey stuff is mostly a lie
<havenwood>
mancomunado: text reader?
darkf has joined #ruby
<RickHull>
havenwood: how would you characterize it? "because of MRI's GIL ..."
<mancomunado>
havenwood, exacly
<RickHull>
mancomunado: both texts?
frozen3 has quit [Ping timeout: 244 seconds]
<mancomunado>
RickHull, yes
<RickHull>
mancomunado: indeed
Asher has joined #ruby
chouhoulis has joined #ruby
<RickHull>
what do you mean by `both texts`?
<RickHull>
also `cat` is a reasonable text reader
<mancomunado>
RickHull, havenwood two opened texts
<RickHull>
see also: less, more
<RickHull>
mancomunado: are you on windows?
<mancomunado>
.pdf .txt or whatever opened side by side with another same type
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mancomunado>
RickHull, linux
<mancomunado>
debian
<RickHull>
this isn't really a ruby question
workmad3 has joined #ruby
<RickHull>
however, many document readers will let you have two windows side by side, or two panes of the same window
bigmac has quit [Ping timeout: 250 seconds]
robh71 has joined #ruby
chills42 has joined #ruby
<mancomunado>
RickHull, by scrolling will both windows scroll toguether?
<RickHull>
i'm not familiar with any document readers that explicitly handle both .pdf and .txt
frozen3 has joined #ruby
<RickHull>
mancomunado: are you thinking of some sort of diff tool?
<RickHull>
to compare 2 docs?
<mancomunado>
any, .pdf or .txt was just an example since you wasn't understanding
<mancomunado>
to compare yes
grvgr has joined #ruby
<RickHull>
i'm not aware of any multi-paned doc readers with synchronized scrolling
<RickHull>
not really a ruby question. maybe try #debian or #freedesktop
chills42 has quit [Remote host closed the connection]
<mancomunado>
you really passed on this whole series of questions just to fuck around, twat rat?
chills42 has joined #ruby
patrick_star has quit [Ping timeout: 264 seconds]
<mancomunado>
cocksucker
mancomunado has left #ruby ["Leaving"]
Musashi007 has joined #ruby
patrick_star has joined #ruby
DmitryM has left #ruby [#ruby]
pocketprotector has joined #ruby
<RickHull>
coherent communication is apparently a growth area for mancomunado
workmad3 has quit [Ping timeout: 250 seconds]
<RickHull>
one might say he's ...
<RickHull>
incommunicado
* RickHull
puts on sunglasses
mikecmpbll has quit [Quit: i've nodded off.]
mikecmpbll has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
XoRoN has quit [Ping timeout: 244 seconds]
jenrzzz has joined #ruby
arta82 has joined #ruby
devoldmx has joined #ruby
<havenwood>
RickHull: Maybe something like: Hashes and Arrays are already thread-safe in CRuby because of the Global VM Lock (GVL).
braincrash has quit [Quit: bye bye]
<RickHull>
yeah, that's the idea
<RickHull>
as i understand
<Ox0dea>
> i'm not aware of any multi-paned doc readers with synchronized scrolling
<Ox0dea>
:set scrollbind
<Ox0dea>
RickHull: Do you even Vim, mate?
benlieb has quit [Quit: benlieb]
<RickHull>
eight megs and constantly swapping
<Ox0dea>
Wrong one.
<RickHull>
emacs > imacs
<havenwood>
RickHull: I'm was just having a pedantic nit with the "never runs code in parallel" bit.
<havenwood>
no matter
devoldmx has quit [Ping timeout: 260 seconds]
<RickHull>
oh, right, you were answering my question
<RickHull>
sorry :)
siemprefresco has joined #ruby
tkuchiki has joined #ruby
The_Phoenix has joined #ruby
oo_ has quit [Remote host closed the connection]
baweaver has joined #ruby
braincrash has joined #ruby
<siemprefresco>
Hello all, I was hoping I could get some guidance. I'm interested in writing an automated script that would continually monitor a json API and save off specific information to Firebase on any changes. What would be the best method to go about creating something like this?
<siemprefresco>
I'd want it to hit an endpoint every 5 seconds and save of certain info on change.
AndyBotwin has joined #ruby
bricker has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
j4cknewt has quit [Remote host closed the connection]
<RickHull>
that client will yield the json response as a native ruby object. you can walk the object / structure for the data you need. as for scheduling the requests, there are lots of options. I'd suggest a short-running script scheduled by crontab, to start with
<RickHull>
rather than a long-running script that does its own scheduling
<siemprefresco>
some context, the short request window is because it's monitoring nba game data and I'd like it to update in as realtime as possible
umgrosscol has quit [Remote host closed the connection]
<havenwood>
siemprefresco: If you care about time slipping from say sleeping 5 seconds then the extra time from each job, see a gem like Timers: https://github.com/celluloid/timers#readme
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dcarmich has joined #ruby
<RickHull>
basically: do you need consistent intervals that average exactly 5 seconds, or do you just need some interval that's around 5 seconds?
The_Phoenix has joined #ruby
<Ox0dea>
> Do The Right Thing 80% of the time every time
salusinarduis has quit [Quit: My computer has gone to sleep. ZZZzzz…]
iateadonut has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
pawel2 has joined #ruby
<Ox0dea>
apeiros: That's called indoctrination. :P
aperios has joined #ruby
salusinarduis has joined #ruby
allcentury has joined #ruby
<apeiros>
Ox0dea: hm no, that'd require somebody indoctrinating me
<ekleog>
Hi there! I have a Logger "global variable" (actually a module @@variable). I'm using MiniTest through rake. Is there a way to set this variable to output to STDERR in case it is run through rake test, yet default to STDOUT for normal programs?
<ekleog>
Well, I must have poorly explained my issue: I don't know where in the Rakefile I could put the line that sets it to output to STDERR -- the only way I could think of would be to put a line at the beginning of each test case -- clearly a bad idea
<ekleog>
(and when trying to put it inside the TestTast definition the path seems not to be setup yet for module requisition)
<ekleog>
s/Tast/Task/
<apeiros>
ekleog: that's what test setup method exists for
devoldmx has joined #ruby
<ekleog>
This would mean I have to put one for each MiniTest::Test class; isn't it ?
Musashi007 has quit [Quit: Musashi007]
<ekleog>
Oh, just thought about adding an intermediate class inbetween my tests and MiniTest::Test ; thanks!
stardiviner has quit [Quit: WeeChat 1.2]
<zenspider>
ekleog: what are you trying to do?
<zenspider>
I totally don't understand your description
mcr_ has joined #ruby
<ekleog>
zenspider: Basically, I have to initialize a global state before any test is run
mrtg9970 has quit [Quit: Leaving]
einarj has joined #ruby
<zenspider>
but... only if it is run through rake? not via ruby? why?
<zenspider>
ruby -Ilib test/test_something.rb should behave differently than rake?
mcr_ has quit [Client Quit]
<ekleog>
Not only if it is run through rake, but only for the tests -- and if I do not have to repeat the global state setup for each test file I feel better. The solution of which was to make my tests inherit from MyTest instead of MiniTest::Test ; and to do the global state setup in MyTest.setup
mikecmpbll has joined #ruby
einarj has quit [Ping timeout: 260 seconds]
j4cknewt has joined #ruby
<zenspider>
ekleog: that's a solution. do you have a test_helper file?
lessless has joined #ruby
j4cknewt has quit [Ping timeout: 246 seconds]
<ekleog>
zenspider: Is this name any special? I have a helper file in which I have put the MyTest class definition; but searching for "ruby test_helper" only brought up stuff about rails
<zenspider>
it's a common pattern. test/test_helper.rb and then you require test_helper at the top of all your tests
<zenspider>
I generally don't use it, but I'm wierd like that
<zenspider>
but it sounds like all you want to do is to put class X; @@logger = TestLogger.new ; end in there
<zenspider>
no need to change all your tests to use a new superclass
marr has joined #ruby
* ekleog
is too used to languages requiring a "main" function
marr has quit [Excess Flood]
<ekleog>
Thanks!
<zenspider>
I'm not sure how that's relevant
tkuchiki has joined #ruby
marr has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
salusinarduis has quit [Quit: My computer has gone to sleep. ZZZzzz…]
ledestin has quit [Ping timeout: 250 seconds]
tkuchiki has quit [Ping timeout: 246 seconds]
Jackneill has joined #ruby
eGGsha has joined #ruby
_ht has joined #ruby
salusinarduis has joined #ruby
salusinarduis has quit [Client Quit]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jimms has quit [Remote host closed the connection]
lkba has quit [Quit: Bye]
krz has joined #ruby
gard has joined #ruby
jimms has joined #ruby
eGGsha has quit [Ping timeout: 264 seconds]
DifferentLambda has joined #ruby
Olipro has quit [Ping timeout: 240 seconds]
Olipro has joined #ruby
devoldmx has quit [Remote host closed the connection]
lordkryss has joined #ruby
FernandoBasso has joined #ruby
absolutejam has joined #ruby
last_staff has joined #ruby
gard has quit [Ping timeout: 240 seconds]
PaulVern has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sivsushruth has quit [Ping timeout: 240 seconds]
sivsushruth has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
allcentury has quit [Ping timeout: 244 seconds]
_blizzy_ has joined #ruby
bruno- has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pawel2 has quit [Quit: WeeChat 1.2]
_blizzy_ has quit [Read error: Connection reset by peer]
bruno- has quit [Ping timeout: 272 seconds]
dopie has quit [Quit: This computer has gone to sleep]
juanpablo___ has joined #ruby
meph has joined #ruby
_blizzy_ has joined #ruby
markserver has joined #ruby
jonee has joined #ruby
allcentury has joined #ruby
juanpablo___ has quit [Ping timeout: 250 seconds]
<markserver>
Hello, i've installed mysql2 gem, so i call a stored procedure via client.query(".....") how can i verify if the query is done successful? Thanks
lessless has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yh has joined #ruby
jonee has quit [Ping timeout: 240 seconds]
<markserver>
Hello, i've installed mysql2 gem, so i call a stored procedure via client.query(".....") how can i verify if the query is executed successful? Thanks
<markserver>
I can post my code if needed
allcentury has quit [Ping timeout: 265 seconds]
_blizzy_ has quit [Ping timeout: 240 seconds]
jimms has quit [Remote host closed the connection]
ruby-lang591 has joined #ruby
shock_one has quit [Remote host closed the connection]
ruby-lang591 has quit [Client Quit]
<jhass>
usually it should raise an error if it failed
<jhass>
markserver: ^
<markserver>
@db.query("CALL Transfer(#{@account_id}, #{recipient_id}, #{amount})") i've done this but it doesn't return true
frozen3 has joined #ruby
DLSteve has joined #ruby
<markserver>
jhass : ^
speaking1ode has joined #ruby
<jhass>
what does it return? ;)
<markserver>
an array of result
<markserver>
but the stored procedure doesn't have OUT parameter
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
are you sure it's an array? what's in it?
frozen3 has quit [Ping timeout: 256 seconds]
jonee has joined #ruby
Meow-J has quit [Quit: Connection closed for inactivity]
j5s7 has joined #ruby
j5s7 has quit [Client Quit]
<markserver>
jhass: i've done puts @db.query("CALL Transfer(#{@account_id}, #{recipient_id}, #{amount})").inspect and it return nil
<jhass>
markserver: just say it's successful in the line after executing the query. iirc it will raise so you may want to rescue an error and say it failed then
tkuchiki has joined #ruby
<markserver>
it's a very simple bank application
<jhass>
but verify what i said by running a failing query
<jhass>
so yeah, just return true and rescue Mysql2::Error or whatever it was (verify!) and return false
<markserver>
so : if Mysql2::Error return false else return true
frozen3 has joined #ruby
<markserver>
jhass: ^
Iskarlar has joined #ruby
ndrei has joined #ruby
<jhass>
rescue, not if
sarkyniin has quit [Remote host closed the connection]
<jhass>
so more like def foo; query; true; rescue Mysql2::Error; false; end;
LMity has quit [Ping timeout: 240 seconds]
abdoudjanifresh has quit [Ping timeout: 244 seconds]
abdoudjanifresh has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruby-lang886 has quit [Ping timeout: 246 seconds]
jeadr has quit [Remote host closed the connection]
jeadr1 has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
mutuma has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Pathfinder has quit [Remote host closed the connection]
tkuchiki has joined #ruby
jeadr has joined #ruby
jeadr1 has joined #ruby
jimms has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
<markserver>
jhass: i need to put begin at the start of the function?
<jhass>
no, it's implicit for method definitions (no functions in ruby ;) )
dEPy has joined #ruby
<markserver>
even in php are methods, i forgot thath i'm writing a class
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mutuma is now known as Pathfinder
nofxx has quit [Ping timeout: 252 seconds]
speaking1ode has quit [Ping timeout: 265 seconds]
<markserver>
jhass: thanks, works very good
<jhass>
yw
postmodern has joined #ruby
chabil has joined #ruby
AlphaAtom has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
HexMan has joined #ruby
pengin has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danieli has joined #ruby
yeticry_ has joined #ruby
bruno- has joined #ruby
ndrei has joined #ruby
yeticry has quit [Ping timeout: 246 seconds]
ht__ has joined #ruby
allcentury has joined #ruby
UtkarshRay has joined #ruby
pengin has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 250 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jespada has joined #ruby
workmad3 has joined #ruby
Iskarlar has joined #ruby
allcentury has quit [Ping timeout: 240 seconds]
jespada has quit [Client Quit]
Iskarlar has quit [Client Quit]
banister has joined #ruby
nanoz has joined #ruby
_blizzy_ has joined #ruby
banister has quit [Client Quit]
banister has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
allcentury has joined #ruby
fantazo has quit [Quit: Verlassend]
nfk has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
PaulVern has joined #ruby
tkuchiki has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
<nanoz>
why we need to learn ruby ?
allcentury has quit [Ping timeout: 246 seconds]
_blizzy_ has joined #ruby
meph has quit [Remote host closed the connection]
<jhass>
nanoz: because it's fun
<jhass>
nanoz: what languages do you know?
tkuchiki has joined #ruby
Iskarlar has joined #ruby
ishahnaz has joined #ruby
erts has joined #ruby
djbkd has joined #ruby
khebbie has joined #ruby
khebbie has quit [Read error: Connection reset by peer]
<pontiki>
no one needs to learn ruby
<pontiki>
but it sure it fun
einarj has joined #ruby
khebbie has joined #ruby
erts has quit [Client Quit]
erts has joined #ruby
Rickmasta has joined #ruby
PaulVern has quit [Ping timeout: 256 seconds]
northfurr has joined #ruby
einarj has quit [Ping timeout: 255 seconds]
bzf has joined #ruby
mandarinkin has quit [Quit: Leaving]
episage has joined #ruby
leat has quit [Remote host closed the connection]
leat has joined #ruby
<ekleog>
The reason I'm learning ruby: It's the only multiline-lambda interpreted language I know of
<ekleog>
(except lisp, but lisp is lisp)
jonee has joined #ruby
<Ox0dea>
ekleog: I see what you did there.
juanpablo___ has joined #ruby
khebbie has quit [Remote host closed the connection]
juanpablo___ has quit [Ping timeout: 244 seconds]
cornerma1 has joined #ruby
[k- has quit [Ping timeout: 264 seconds]
_blizzy_ has quit [Disconnected by services]
Anthony__ has joined #ruby
Anthony__ is now known as _blizzy_
<ekleog>
Actually I learn ruby for a single project that makes heavy use of these lambdas, given no language I know of allows overloading the "if" "operator" [writing a DSL]
<HexMan>
Will Ruby be there for Summer Of Code next year ?
cornerman has quit [Ping timeout: 256 seconds]
<HexMan>
It wasn't present in any of the years before 2014 , I think.
cornerma1 is now known as cornerman
<Ox0dea>
ekleog: But you just said you know of Lisp?
whiteline has joined #ruby
shmilan has joined #ruby
amystephen has joined #ruby
<ekleog>
Ox0dea: Just heard of lisp, but frankly it really has far too many parentheses for me to be willing to jump in -- and an if_ function taking a lambda as a parameter should work
<pontiki>
i've never understood that stance
<Ox0dea>
It's so stupid.
<Ox0dea>
You take the opening parenthesis and put it on the other side of the function name, and prefix notation often *saves* you a few parentheses by not requiring explicit grouping.
Vile` has quit [Ping timeout: 260 seconds]
<ekleog>
Yes it is, but I had a choice to make (and (+ a b) feels unintuitive to me). Besides, just checking, multithreading supports seems pretty ill-supported in CommonLISP to my unexperienced eye
last_staff has quit [Read error: Connection reset by peer]
<Ox0dea>
This guy.
<Ox0dea>
You just like the sound of your own keyboard, I reckon.
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
allcentury has joined #ruby
roolo has quit [Ping timeout: 252 seconds]
<ekleog>
I completely trust you on that, but I do need multithreading (well, I could simulate multithreading by scheduling threads myself I guess, but that would be masochism)
<Ox0dea>
The server itself is written in Arc.
banister has joined #ruby
banister has quit [Read error: Connection reset by peer]
PaulVern has joined #ruby
<Ox0dea>
In any case, many Lisp implementations support threading just fine, but that's rather obviously not what's stopping you from "diving in".
scripore has quit [Quit: This computer has gone to sleep]
<ekleog>
Ox0dea: When I search for "arc multithreading", I fall upon an Objective-C library... And I would most likely try lisp, should I ever feel a need for it (until 2 weeks ago I never even thought of learning ruby, until this project came to my mind and I was faced with learning ruby or lisp -- and chose ruby without any other insight than having seen a few pieces of code in both, and thinking the dsl based on ruby would look cleaner)
<ekleog>
Anyway, it doesn't really matter, does it?
frozen3 has quit [Remote host closed the connection]
<[k->
Ruby arrays are 0-indexed
<Ox0dea>
stardiviner: Indexing and slicing are subtly different operations.
<[k->
this means we start from zero
<wasamasa>
Ox0dea: "<Earnestly> wasamasa: It's kind of like the lambda calculus thing; adding named bindings obviates quite a lot of it"
<[k->
[3,0] tells ruby to take 0 elements after the index 3
<Ox0dea>
Earnestly from #archlinux?
<wasamasa>
uhuh
<wasamasa>
"<Earnestly> Anyway, it's all very clever and pretty nice, but it is truely impractical and inefficient. Also having named bindings makes most of lambda-calculus pretty unnecessary"
<Ox0dea>
[k-: s/after/from/
<Ox0dea>
wasamasa: You posted my lambda calculus thing in #archlinux? :/
<[k->
how do you take elements from an index
<stardiviner>
[k-: I see, thanks
<wasamasa>
Ox0dea: no, that's an old quote
<wasamasa>
Ox0dea: I didn't make clear I was citing someone else
<Ox0dea>
Named bindings is *part* of the lambda calculus.
<stardiviner>
[k-: I misunderstand the slicing operating, thought it is indexing from 3 to 0.
<Ox0dea>
stardiviner: No, that's not right either.
<Ox0dea>
foo[3, 0] says "give me zero elements starting from index 3".
<Ox0dea>
But the 3 isn't *quite* an index there since, as mentioned, indexing and slicing don't have quite the same semantics in Ruby.
<stardiviner>
Ox0dea: so slicing's index is from 1, but indexing's index is from 0?
<Ox0dea>
If only it were so simple as that.
<wasamasa>
Ox0dea: he also deems macros unelegant and a crutch that was invented to avoid repeating yourself
<Ox0dea>
stardiviner: I suspect this behavior was at least partially influenced by C, wherein accessing the element one beyond an array's bound is actually well-defined behavior.
northfurr has joined #ruby
<Ox0dea>
It's worth nothing that the semantics hold for any "collection" type, not just Array:
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Sembei has joined #ruby
yardenbar has joined #ruby
<[k->
Ox0dea: you shouldnt have s/after/from, since the sentence became a sentence that wasnt your meaning as well :/
<[k->
should be s/after/beginning from/ instead
<stardiviner>
Ox0dea: now, I understand through your link visual graph, the "array bound" 4 is still in array. some kind of barely.
sdothum has joined #ruby
<Ox0dea>
[k-: "from" and "beginning from" are equivalent in the sentence in question.
<Ox0dea>
"Start counting from ten."
<[k->
I interpreted it as taking something from something else
<[k->
aka, extract
<Ox0dea>
stardiviner: Aye, the wording is a little wonky, but I think it makes it at least slightly clearer what's going on during slicing.
<Ox0dea>
[k-: The word's primary definition and usage is as a preposition denoting a starting point.
<Ox0dea>
I didn't make the rules, I just bend 'em.
<Ox0dea>
(See what I did with the spliced comma there?)
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<[k->
feel for me :'(
<stardiviner>
Ox0dea: What if there is a way to change this default behavior in Ruby like configure software with options will be very cool. Aha.
<Ox0dea>
stardiviner: Fortran lets you specify which indexing strategy you want, per instance!
<[k->
you can change the behaviour, but im not going to suggest anything
<Ox0dea>
Which is totally batshit until you realize how often it must come in handy for the sorts of programs one tends to write in Fortran.
workmad3 has joined #ruby
_blizzy_ has quit [Ping timeout: 240 seconds]
<Ox0dea>
[k-: Instigation of sin is commission, if you ask me. :P
Meow-J has joined #ruby
TomyLobo has quit [Ping timeout: 250 seconds]
djbkd has quit [Remote host closed the connection]
<[k->
You can investigate, and stumble upon why people love ruby
northfurr has quit [Quit: northfurr]
<[k->
but do not do this in production code
<Ox0dea>
Who said anything about an investigation?
<Ox0dea>
Did you phone the authorities?
<[k->
or code others will eventually maintain for you
<[k->
i contacted the League
<[k->
the League will condemn the code
<Ox0dea>
There are several of them floating about just now.
<Ox0dea>
"The Justice League of Extraordinary Gentlelegends."
juanpablo___ has joined #ruby
<[k->
In exchange for your little ease, you violate ruby
<stardiviner>
I think people should have the right to change anything. Those things are same with Ruby Code Style, it's not forced.
<[k->
stardiviner: people expect it to start from zero
<[k->
this is the coding style
workmad3 has quit [Ping timeout: 264 seconds]
<[k->
you will ruin the lives of many if you do this
<[k->
do you really want to sacrifice the joy of others for your little urge at this point in time?
<stardiviner>
[k-: right, what if I just want to use the code by myself, then I still have no way to change thing. I think language should leave out space for user to modify. Of course this is basically said. not on a specific problem.
<[k->
in a few months, you'd feel stupid for doing this
<[k->
i guarantee it
<Ox0dea>
stardiviner: I think you must not realize which language you're talking about.
<Ox0dea>
Can't use `args[0] -= 1` on account of being in the definition of #[].
ndrei has joined #ruby
<Ox0dea>
map!.with_index or some such nonsense would not be an improvement.
<Ox0dea>
Besides, Ruby uses shared memory for arrays, so #shift and #unshift aren't terrible for performance.
<[k->
mind blown
<stardiviner>
[k-: sorry, I didn't mean to that, really
<[k->
def [] first, *args
<Ox0dea>
[k-: What're you on about?
<[k->
aref first.pred, *args
einarj has joined #ruby
<Ox0dea>
Too many names.
<Ox0dea>
Needs more generality.
<Ox0dea>
Also doesn't handle negative indices.
<Ox0dea>
If 1 is the first element, 0 should be the last, right?
<Ox0dea>
Hm, we didn't think this through.
jimms has quit [Remote host closed the connection]
<[k->
i relied on your solution
Iskarlar has joined #ruby
* [k-
absolves all responsibility
<[k->
Ox0dea, the aref will handle that
scripore has quit [Quit: This computer has gone to sleep]
<Ox0dea>
It's almost like somebody sat down and thought this shit out at some point.
jonee has joined #ruby
<stardiviner>
.... oh, what a ... I will forget this thing ....
einarj has quit [Ping timeout: 256 seconds]
dgutierrez1287 has joined #ruby
victortyau has joined #ruby
djbkd has quit [Remote host closed the connection]
<Ox0dea>
stardiviner: It was a pleasure to observe your enlightenment.
<[k->
it was hardly a pleasure diverting this crisis
<Ox0dea>
In hindsight, I guess you probably weren't using "this thing" to refer to 1-based indexing.
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<stardiviner>
Ox0dea: ok, I will be grade to particiate in this pleasure.
<PaulVern>
exit
<stardiviner>
[k-: right, discuss this 1-based indexing is not my current interest, I might be happy to talk about this when I'm good at Ruby. But now, not a good chance to play it
PaulVern has quit [Remote host closed the connection]
<stardiviner>
Ox0dea: yeah, just a generally thing.
leat has quit [Ping timeout: 245 seconds]
<stardiviner>
Newbie like me can't play with masters like you.
<waxjar>
consistency is important when programming. if your language uses 0-based indexes, use 0-based indexes. if it uses 1-based indexes, use 1-based indexes :)
<stardiviner>
waxjar: yeah, keep consistency is important when collaborating with others, I just myself, it does not matter anyway.
<[k->
it does matter, eventually it becomes a habit
<[k->
a language influences how a person thinks, afterall
<waxjar>
it does :) you will forget you had the ingenious idea to use 1-based indexing when you need to fix a bug in your code quickly after a couple of months
phutchins has joined #ruby
DLSteve has joined #ruby
<waxjar>
you'll curse yourself, after you figure out after a few hours, that your indexing is off by one
gwendall has joined #ruby
<[k->
[21:07:07] <[k-> a language influences how a person thinks, afterall
<Ox0dea>
stardiviner: Do you know of Theseus' ship?
gwendall has quit [Remote host closed the connection]
<stardiviner>
[k-: seems make sense.
quimrstorres has quit [Remote host closed the connection]
<stardiviner>
Alright, I give up....
dimasg has quit [Quit: leaving]
<stardiviner>
This really gave me a englightenment.
dimasg has joined #ruby
<stardiviner>
s/a/an
<[k->
give up or adopt?
<Ox0dea>
stardiviner: In essence, Present You and Future You are "different" people.
<stardiviner>
Now I feel this weird interesting.
dorei has joined #ruby
jimms has joined #ruby
gwendall has joined #ruby
<[k->
Ox0dea: you should maintain a presence in ot
* Ox0dea
grumbles something about hangman and "guys".
<stardiviner>
Ox0dea: good philosophy .
quimrstorres has joined #ruby
FernandoBasso has quit [Quit: WeeChat 1.2]
bodgix has joined #ruby
crazydiamond has quit [Remote host closed the connection]
FernandoBasso has joined #ruby
episage has quit [Ping timeout: 265 seconds]
binaryplease has quit [Quit: WeeChat 1.2]
_blizzy_ has joined #ruby
jbw has quit [Ping timeout: 272 seconds]
dimasg has quit [Ping timeout: 272 seconds]
jbw has joined #ruby
atomical has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
atomical has quit [Client Quit]
scripore has joined #ruby
atomical has joined #ruby
matp has quit [Ping timeout: 264 seconds]
_blizzy_ has quit [Read error: Connection reset by peer]
darthez has joined #ruby
Ropeney has joined #ruby
darthez has left #ruby [#ruby]
Guest70057 has quit [Ping timeout: 246 seconds]
_blizzy_ has joined #ruby
j4cknewt has joined #ruby
jonee has quit [Ping timeout: 265 seconds]
j4cknewt has quit [Ping timeout: 244 seconds]
scripore has quit [Quit: This computer has gone to sleep]
bodgix has quit [Ping timeout: 256 seconds]
scripore has joined #ruby
danieli has joined #ruby
dimasg has joined #ruby
belteshazzar has joined #ruby
rodfersou has quit [Ping timeout: 244 seconds]
stardiviner has quit [Quit: WeeChat 1.2]
yashinbasement has quit [Quit: Leaving]
jonee has joined #ruby
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
jimms has quit [Remote host closed the connection]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eGGsha has joined #ruby
caseypatrickdris has joined #ruby
caseypatrickdris has quit [Client Quit]
jonee has joined #ruby
FernandoBasso has quit [Quit: May the force be with you.]
banister has joined #ruby
flegercovateam has quit [Ping timeout: 272 seconds]
thisisasttesot12 has quit [Quit: Page closed]
workmad3 has joined #ruby
sepp2k has joined #ruby
yh has quit [Ping timeout: 246 seconds]
einarj has joined #ruby
olitreadwell has joined #ruby
darkxploit has quit [Quit: Leaving]
darkxploit has joined #ruby
ramfjord has joined #ruby
FernandoBasso has joined #ruby
mary5030 has joined #ruby
workmad3 has quit [Ping timeout: 272 seconds]
darkxploit has quit [Client Quit]
chabil has quit [Quit: WeeChat 1.2]
jackjackdripper has joined #ruby
chinmay_dd has joined #ruby
banister has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
einarj has quit [Ping timeout: 244 seconds]
phutchins has quit [Ping timeout: 264 seconds]
atomical has joined #ruby
atomical has quit [Client Quit]
rodfersou has joined #ruby
jackjackdripper has quit [Client Quit]
<nanoz>
i'm bit confused what to learn , so many language i have next ruby,lisp,C,C++,D dont know what to chose o_O
<[k->
what languages do you know
<nanoz>
i know js and java
<[k->
what do you want to achieve as a programmer
<shevy>
enlightenment
<shevy>
through php
lordkryss has quit [Quit: Connection closed for inactivity]
thmzlt has joined #ruby
<[k->
he already did javs
<[k->
java*
<jhass>
nanoz: ruby is a good candidate now
<jhass>
strong OO, dynamically typed
<[k->
lisp!
yeticry has quit [Ping timeout: 272 seconds]
kirun has joined #ruby
thmzlt has quit [Client Quit]
yeticry has joined #ruby
<nanoz>
as ruby programmer what u can achieve ?
<Ox0dea>
All the things.
<[k->
you can achieve fizzbuzz
radgeRayden_ has quit [Ping timeout: 244 seconds]
<Ox0dea>
No, I recently read a paper that proved FizzBuzz is NP-hard.
<jhass>
nanoz: even if you won't stick to Ruby, you'll learn a couple of styles and ways that'll improve your coding skills regardless of language. That's true for pretty much any language but given JS and Java, Ruby fits well into the path now IMO
sarkyniin has joined #ruby
<nanoz>
what about lisp ?
chinmay_dd has quit [Remote host closed the connection]
<nanoz>
everyone says lisp lisp lisp .... i'm confused now
siemprefresco has quit [Ping timeout: 246 seconds]
<Ox0dea>
It's faster horses all the way down. :'(
<shevy>
speed rules the computing world
<darix>
i think all those emacs fan bois would like to disagree ;)
<shevy>
TIOBE is nothing but the truth
<Ox0dea>
shevy: My comment had nothing to do with performance, oddly enough.
<[k->
if speed rules the computing world, ruby would not be near the top
<redlegion>
quite true
lessless has joined #ruby
<redlegion>
[k-: rust is an excellent compromise
<Ox0dea>
shevy: "If I had asked people what they wanted, they would have said faster horses." -- Henry Ford
<[k->
tiobe uses php, hence it cannot be reliable
<[k->
it is biased towards php
<Ox0dea>
* is biased toward the LCD.
<[k->
least common denominator?
<Ox0dea>
Aye, in whatever form it might take.
tkuchiki has quit [Remote host closed the connection]
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ishahnaz has quit []
<waxjar>
doesn't tiobe rank by search queries or something?
yh has joined #ruby
<havenwood>
waxjar: In the most bizarre way possible, probably some sort of performance art.
d0lph1n98 has joined #ruby
tkuchiki has joined #ruby
eGGsha has joined #ruby
episage has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
ftj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ruurd has joined #ruby
chinmay_dd has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
<shevy>
Ox0dea faster horses are fast
<Ox0dea>
shevy: But they're not automobiles.
<Thomas-0725>
is there a way to create a Proc from a defined method?
<shevy>
yeah cars are faster than horses
dgutierrez1287 has quit [Remote host closed the connection]
<Ox0dea>
Thomas-0725: Method instances essentially behave like Procs.
<shevy>
it's a problem in biology that a tyre beats legs
Iskarlar has joined #ruby
scripore has joined #ruby
ruurd has quit [Ping timeout: 264 seconds]
<Thomas-0725>
Ox0dea: I have a method that accepts a block. If no block is given, I would like to assign default_method to the proc and then call ... oh, how silly of me. default_method(params) instead of prc.call.
<Ox0dea>
Well, glad you got that sorted, then. :P
Coldblackice has quit [Ping timeout: 260 seconds]
<Ox0dea>
>> Fixnum.instance_method(:+).bind(1).call(2) # for future reference
<Ox0dea>
That's an UnboundMethod, though; regular Method instances do have #to_proc if you ever really find yourself in need of such a thing.
speaking1ode has joined #ruby
hashrocket has joined #ruby
shock_one has joined #ruby
marr has quit [Ping timeout: 264 seconds]
Juanchito has joined #ruby
dopie has joined #ruby
Semtex-H has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
scripore has joined #ruby
einarj has joined #ruby
chinmay_dd has joined #ruby
lkba has joined #ruby
snowkidind has joined #ruby
einarj has quit [Ping timeout: 260 seconds]
bigkevmcd has quit [Quit: Outta here...]
chinmay_dd has quit [Quit: See ya!]
shai_free has joined #ruby
chinmay_dd has joined #ruby
<shai_free>
Hi :) I'd like to know if it is possible to generate a random number for the hour in the cronjob schedule to generate a number between 22pm and 2am?
mary5030 has quit [Remote host closed the connection]
dopie has quit [Quit: This computer has gone to sleep]
flegercovateam has joined #ruby
<nanoz>
can we do games in ruby ?
mary5030 has joined #ruby
<wasamasa>
sure
<flegercovateam>
Hi, nanoz. Yes sure !
<nanoz>
any games built on ruby ? links ?
FernandoBasso has quit [Quit: May the force be with you.]
<wasamasa>
I bet the game frameworks have examples of smaller stuff
RobertBirnie has joined #ruby
kristian_on_linu has joined #ruby
<wasamasa>
if you're wondering about actual, popular games, forget it
<jhass>
>> h = 22 + rand(0..4); h -= 24 if h >= 24; h # shai_free though it feels like I'm missing something smarter
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<kristian_on_linu>
I'm almost positive I've never seen stuff like this in TeX ... to clarify, what I'm trying to grok is the != and = and ~= related stuff
<ruboto>
toretore # => /tmp/execpad-b30efe05cf67/source-b30efe05cf67:2: warning: wrong element type Fixnum at 0 (expected a ...check link for more (https://eval.in/417190)
<rehat>
toretore: ahh thank you I was looking for the name of that, splat :)
dgutierrez1287 has quit [Ping timeout: 265 seconds]
tkuchiki has quit [Remote host closed the connection]
nonparfumee has joined #ruby
quimrstorres has quit [Ping timeout: 252 seconds]
djbkd has quit []
tkuchiki has joined #ruby
yfeldblu_ has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<atmosx>
toretore: oh, nice thanks
blue_deref has joined #ruby
<nanoz>
wow its easy :P
bruno- has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
<nanoz>
wish i cud do this projecteuler/hackerrank since java made me terrible :/
tkuchiki has quit [Ping timeout: 250 seconds]
ivanskie has joined #ruby
danieli has quit [Quit: Leaving]
AlexAltea has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
exadeci has joined #ruby
VeganGreg has quit [Ping timeout: 240 seconds]
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<livcd>
how production ready is opal ?
lkba has quit [Ping timeout: 250 seconds]
darkxploit has joined #ruby
hololeap has joined #ruby
frem has joined #ruby
tobacco_joe has quit [Read error: No route to host]
tobacco_joe has joined #ruby
<[spoiler]>
atmosx, rehat it's the "splat operator"
tobacco_joe has quit [Read error: No route to host]
<[spoiler]>
oh
<[spoiler]>
scrollback lagged
<[spoiler]>
nvm me
<[spoiler]>
livcd: I used it in a an experimental project, and it was OK. There's gonna be a performance penalty, a some parts are more JS than Ruby (to avoid impacting performance)
<livcd>
[spoiler]: i thought it's just a transpiler like coffeescript
<livcd>
and the performance penalty should be negligible
<[spoiler]>
livcd: it's not the same as CoffeeScript. CS is JS with syntactic sugar, while Ruby is a different language
<shevy>
\o/
<shevy>
livcd I tried the example at the opal website
<[k->
you know, WITH A STANDARD LIBRARY
<shevy>
it worked, and it was ok-ish but it sorta confuses me. I like am not sure what to do with it really
<shevy>
I had hoped I could use only ruby and never javascript
<[spoiler]>
A lot of Ruby staff needs to be emulated inside JS
<livcd>
[spoiler]: i do not know how opal works tbh..but i would say that coffee script syntactic sugare is pretty "drastic"
<livcd>
ok right
<[spoiler]>
livcd: it's not drastic at all :)
<[k->
opal is much worse
<[k->
much much worse
<shevy>
I am having a strange thing with coffeescript... I don't think we should require such a thing in the first place. it only happens because javascript exists and is the monopoly
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<[k->
it includes the standard library
<livcd>
[k-: ok
<shevy>
we need to JVM everything!
<[k->
like your brain, bcuz it needs to be garbage collected
<[k->
oooo buuuuuuurn
<livcd>
i thought BEAM is the new hotness not JVM
<livcd>
:D
<[spoiler]>
JAVA VIRTUAL MACHINE! \o_ (3 minutes later) ALL THE THINGS!
<[spoiler]>
[k- that was so harsh :(
<[k->
:3
<livcd>
there is so many things these days
khebbie has joined #ruby
<shevy>
[k- nah that does not translate, remember - many different people could target a JVM on the cloud concurrently. you don't get that with a human brain
<shevy>
the zombies tried to build a unified brain CPU
<[k->
i meant, jvm your brain
<pipework>
shevy's on some good shit these days.
<[k->
so it is optimised away
<shevy>
biology does not translate well!
<[k->
buuuuuuuurn!!!
<[k->
go with the flow, shevy
<shevy>
perhaps with 3D printing it can become better
<pipework>
shevy: You wanna know why coffeescript sucks? Because they hate var and use closures around everything, and those two things make coffeescript a pain in the ass.
saddad has joined #ruby
<pipework>
Dart or die! :D
<shevy>
:\
<shevy>
dart will destroy javascript
<pipework>
Probably not. :(
<livcd>
dart is destroyed already
<pipework>
TypeScript has a better chance of making any kind of impact.
<pipework>
Though it's just some weird stuff that looks similar to ES6 + compile-time type checking.
<[k->
eww typescript
<pipework>
livcd: Nah, it's just stunted.
<[k->
its java
<[k->
defo java or C#
<pipework>
[k-: Not remotely.
<pipework>
Type-checking does not a java make.
chipotle has quit [Read error: Connection reset by peer]
<shevy>
well like there is java in javascript right?
<[k->
the syntax
<pipework>
[k-: not really even then
jeadr has quit [Remote host closed the connection]
jeadr1 has quit [Remote host closed the connection]
<[k->
well it looked ugly the last time i checked
<shevy>
dart looks totally future ready:
<[k->
and i cant recall
<shevy>
"On April 18, 2015, Google announced that the Dart Editor would be retired in favor of the JetBrains IDEs.[17]"
<pipework>
I think it looks ugly, but not because of why you say it does.
chipotle has joined #ruby
<pipework>
shevy: I just write dart code the same way I write any other code.
<pipework>
The IDE was for IDE users.
khebbie has quit [Ping timeout: 256 seconds]
Yzguy has quit [Quit: Zzz...]
<[k->
you dont use an ide for java?
juanpablo___ has joined #ruby
jeadr has joined #ruby
jtdoncas has joined #ruby
<pipework>
I don't typically write java, I read it and translate it to other jvm languages. :D
jeadr1 has joined #ruby
jtdoncas has quit [Client Quit]
<livcd>
jruby?
<[k->
frege!
workmad3 has joined #ruby
niko has quit [Ping timeout: 608 seconds]
<pipework>
There are some IDE features that I don't get with my setup today, but I feel that my setup has less YAGNI and I have a lot more control over it. I feel that IDE's, as configurable as they might be, don't really put my workflow at the forefront and since it doesn't fit the kind of user they target, I end up frustrated.
<shevy>
pipework what editor do you use?
ElSif has quit [Read error: Connection reset by peer]
kidoz has joined #ruby
<pipework>
shevy: Hammer and chisel.
<shevy>
lol
Guest24 has quit [Quit: Coyote finally caught me]
<livcd>
are you communist ?
hfp has joined #ruby
<shevy>
I like hammers
ruby-lang869 has joined #ruby
juanpablo___ has quit [Ping timeout: 256 seconds]
dr3w has joined #ruby
<[spoiler]>
I am very content with Atom these days (ex Sublime Text user)
ruby-lang869 has quit [Client Quit]
<livcd>
atom still feels sluggish to me
workmad3 has quit [Ping timeout: 244 seconds]
vikf4m3 has joined #ruby
<[spoiler]>
it only feels sluggish when I work with huge files
<[spoiler]>
Which is mostly not the case; my code is usually not all in a single file
<[spoiler]>
hfp: don't understand what you want to do
<[spoiler]>
What's foo?
<[k->
foo.my_method
bruno- has joined #ruby
<hfp>
[spoiler]: I want to include MyModule in another class and be able to do my_method.bar
<livcd>
it does not make sense
<hfp>
sorry my_method.foo
<hfp>
ugh I'm tired
<hfp>
so yeah I'd like my_method.foo to return "bar", same as doing my_method[:foo]
<[spoiler]>
hfp: You'd use foo.my_method[:foo]
<[spoiler]>
Ah
<hfp>
I thought attr_reader would do the trick but it seems not
<[spoiler]>
Then my-method needs to return an instance of an object which implements method_missing and looks for keys based on the method name that was called
Musashi007 has quit [Quit: Musashi007]
leat has quit [Ping timeout: 240 seconds]
<[spoiler]>
attr_reader just does this: def attr_name; return @attr_name; end
<hfp>
Alright I'll keep accessing it with [], I don't want to make this an OpenStruct. No I'm not using Rails
ponga has quit [Remote host closed the connection]
<hfp>
Thanks [spoiler]
gard has joined #ruby
Musashi007 has joined #ruby
gwendall has quit [Remote host closed the connection]
vikf4m3 has quit [Quit: Page closed]
bruno- has quit [Ping timeout: 252 seconds]
Torrieri has quit [Client Quit]
rehat has quit [Remote host closed the connection]
blue_deref has quit [Quit: bbn]
amcoder has joined #ruby
flegercovateam has quit [Quit: Leaving.]
quimrstorres has joined #ruby
UtkarshRay has quit [Quit: Leaving]
scripore has joined #ruby
galeido has joined #ruby
<[spoiler]>
hfp: np
kristian_on_linu has quit [Quit: Leaving]
attamusc has joined #ruby
absolutejam has quit [Ping timeout: 244 seconds]
icarus_ has joined #ruby
tenderlove has joined #ruby
_socialjackie has joined #ruby
amcoder has quit []
WeeBeanie has joined #ruby
vF3hNGxc47h8 has joined #ruby
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ght has left #ruby [#ruby]
ght has joined #ruby
<WeeBeanie>
Question: I have a MySQL formatted datetime value: 2001-01-01 00:00:00 +0000
<WeeBeanie>
And when I try to declare a DateTime object using that value, I'm presented with the error "comparison of Time with 0 failed"
<WeeBeanie>
When I research the DateTime documentation, it appears that every format it takes is one with, for example, a T in between the date and time, a trailing Z, etc.
<WeeBeanie>
Any thoughts here besides breaking up and re-creating the string in a format DateTime.new() likes?
<WeeBeanie>
is there some DateTime method for dealing with standard SQL-formatted DateTime values?
lkba has joined #ruby
allcentury has quit [Ping timeout: 260 seconds]
countryHick has quit [Quit: Connection closed for inactivity]
<_socialjackie>
hmm...
<[spoiler]>
WeeBeanie: weird. I think DateTime::parse should work on MySQL dates
<toretore>
WeeBeanie: what you're describing is ISO8601
psy_ has joined #ruby
<toretore>
and what you should be using in your case is strptime
<WeeBeanie>
Well, DateTime.parse() worked when passing it the stored SQL DateTime value.
<WeeBeanie>
But you're saying I shouldn't use that to declare a DateTime Ruby object?
<WeeBeanie>
Incidentally, the other DateTime object I'm attempting to create involes an XMLRPC::DateTime value returned from a remote API
nerio_ has quit [Ping timeout: 244 seconds]
robh71 has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
<WeeBeanie>
[spoiler]: Apologies, I missed you saying .parse(). I had been using .new() and was looking over documentation at the other methods, .httpdate(), .iso8601, .jd(), etc.
quimrstorres has quit [Remote host closed the connection]
<[spoiler]>
WeeBeanie: It's ok :P
FernandoBasso has joined #ruby
<[spoiler]>
WeeBeanie: although, what toretore suggested might be a better idea
<WeeBeanie>
I have it down to one line of code, simply my_dt_var = DateTime.parse(stored_dt_value_in_db)
<WeeBeanie>
Those aren't the actual var names of course.
<WeeBeanie>
But there's something quicker than that?
<[spoiler]>
WeeBeanie: there's even a DateTime::iso8601 (not the same as DateTime#iso8601)
nonparfumee has joined #ruby
bffff_ has quit [Quit: Connection closed for inactivity]
blue_deref has joined #ruby
<WeeBeanie>
Any experience with XMLRPC::DateTime values?
AlexRussia has joined #ruby
<[spoiler]>
Nope
bodgix has joined #ruby
<WeeBeanie>
werd.
<[spoiler]>
does xmlrpc use a specific time format?
dimasg has joined #ruby
<WeeBeanie>
DateTime.new() and .parse() aren't working with this returned XMLRPC::DateTime format, and if I search for XMLRPC on the DateTime documentation page I don't see anything.
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
postmodern has joined #ruby
robbyoconnor has quit [Ping timeout: 272 seconds]
jeadr has joined #ruby
kadoppe has joined #ruby
robh71 has joined #ruby
sivsushruth has joined #ruby
quimrstorres has joined #ruby
<[spoiler]>
?guys
<ruboto>
Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
<[spoiler]>
?guys Cohedrin
<ruboto>
Cohedrin, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
<[spoiler]>
Cohedrin: Also, we know nothing about the items
<[spoiler]>
What is their structure?
blue_deref has quit [Quit: bbn]
<Cohedrin>
ok
<Cohedrin>
the items structure can really be anything you would like
<Cohedrin>
currently this is a rails object, but the structure doens't really matter, at least for me
<[spoiler]>
Cohedrin: Okay. What do you need to do? Loop over the items?
<Cohedrin>
sorta
<[spoiler]>
Rails object meaning ActiveRecord?
<Cohedrin>
so there can be anywhere from 1-600 items
<Cohedrin>
yeah active record
<Cohedrin>
and I can
<Cohedrin>
I can't do every possible combination, because that would take far too long, no one wants to wait for 4 hours to have their items
<Cohedrin>
so I need help figuring out some sort of algorithm that would efficiently find a solution that works, meaning that most of the users get items closest to what they should get
<[spoiler]>
Cohedrin: I still have no idea what you want to achieve, though
<Cohedrin>
ok
<Cohedrin>
so for example: User 1: $200; User 2:$30 User 3: $50
fantazo has quit [Quit: Verlassend]
<[spoiler]>
Cohedrin: if it's N-to-M you will need to loop over each of them in some way or another
<Cohedrin>
Items: 1: $24; 2: $64; 3: $90 etc...
<Cohedrin>
yeah I know I have to loop over the items
<Cohedrin>
the problem is
<Cohedrin>
I cant go over every combination, that won't work
<Cohedrin>
this is similar to the knapsack problem if you're familar
<Cohedrin>
just a bit different becasue there are multiple "knapsacks"
arup_r has joined #ruby
rehat has joined #ruby
marsjaninzmarsa has joined #ruby
<[spoiler]>
I know about the knapsack problem, but I am not clever enough to apply it to your problem :P
<Cohedrin>
ah see thats the problem
<Cohedrin>
neither am I haha
<[spoiler]>
:D
perturbation has quit [Remote host closed the connection]
<snowkidind>
How does ruby know whether it is in a development, test, or production mode (secrets.yml)
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
mac_ has quit [Quit: This computer has gone to sleep]
<shevy>
whirespaces
tenderlove has quit [Ping timeout: 244 seconds]
<[spoiler]>
I just realised I can collapse a HTML element in atom, and the move it up/down with alt+arrows
mac_ has joined #ruby
<[spoiler]>
s/alt/ctrl/
arup_r has quit [Quit: Leaving]
juanpablo___ has joined #ruby
tenderlove has joined #ruby
Coldblackice has joined #ruby
davedev2_ has quit [Ping timeout: 244 seconds]
Rickmasta has joined #ruby
phutchins has quit [Ping timeout: 244 seconds]
dgutierrez1287 has joined #ruby
socialjackie_ has joined #ruby
postmodern has quit [Quit: Leaving]
workmad3 has joined #ruby
juanpablo___ has quit [Ping timeout: 246 seconds]
davedev24 has joined #ruby
timanema has joined #ruby
Pathfinder has left #ruby [#ruby]
PooPoo has joined #ruby
mac_ has quit [Quit: This computer has gone to sleep]
PooPooBoy has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
djbkd has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
phutchins has joined #ruby
scripore has joined #ruby
PooPoo has quit [Ping timeout: 246 seconds]
ramfjord has quit [Ping timeout: 244 seconds]
<shevy>
when reading a large file line by line
<shevy>
what should one use?
PooPooBoy has quit [Client Quit]
timanema has quit [Ping timeout: 272 seconds]
swgillespie has joined #ruby
<Ox0dea>
shevy: Depending on what you're doing with those lines, `file.lazy.each` might be best.
phutchins1 has joined #ruby
_ht has quit [Quit: Konversation terminated!]
yeticry has quit [Read error: Connection reset by peer]
<shevy>
.lazy is a thing?
<[spoiler]>
it's lazy enumeration (although I had no idea File supported it)
yeticry has joined #ruby
phutchins has quit [Ping timeout: 272 seconds]
<[spoiler]>
I suppose it won't fetch the file in advance, but it will return an enumerator which will give you access to the file (not sure if those will be bytes or lines, though)
<Ox0dea>
shevy: Be thou cereal?
Rickmast_ has joined #ruby
<Ox0dea>
Enumerator::Lazy is probably my favorite class.
<Ox0dea>
Enumerator::Yielder is pretty sexy too.
<shevy>
never used it, I am way too suspicious of the name
<Ox0dea>
In essence, solnic has seen the functional light.
gwendall has joined #ruby
<dymk>
Sure, I don't see that as being a reasonable approach to writing Ruby code, but to each his own
uwa667 has quit [Remote host closed the connection]
allcentury has joined #ruby
<dymk>
Not to say I don't love #map, #filter, etc
<Ox0dea>
But do you use them?
<dymk>
All over the place, functional programming is great when it comes to manipulating lists
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Ox0dea>
s/lists/data/
<dymk>
sure, that can be generalized to data
<Ox0dea>
And what're we working with?
<dymk>
I've tried to apply other functional concepts to Ruby though, like immutable objects, and the language just lacks features to make it worth it IMO
<Ox0dea>
Immutability isn't really a necessary condition for practical functional programming.
<dymk>
I've got a rails app with a fairly complex model graph, and modeling that as a bunch of immutable objects doesn't work with activerecord (which is more of a tooling problem), and it doesn't perform well
ranchodev has quit [Ping timeout: 260 seconds]
lele is now known as Guest24
veduardo has joined #ruby
decoponio has quit [Read error: Connection reset by peer]
<dymk>
right, but once you get rid of immutable objects, you've started slipping back into OO land, and I'm not sure where the line is that you've crossed between the two paradigms
robh71 has joined #ruby
gwendall has quit [Ping timeout: 260 seconds]
allcentury has quit [Ping timeout: 256 seconds]
<dymk>
i honestly think it's more of a rails thing though, the "standard" way of writing rails apps doesn't lend itself well to FP
decoponio has joined #ruby
<Ox0dea>
It's not as if managed state is some lofty pipe dream, for what that's worth.
tyl has joined #ruby
<dymk>
Could you explain what you mean?
swgillespie has joined #ruby
<Ox0dea>
I'll need you to clarify "slipping" first.
symm- has quit [Ping timeout: 250 seconds]
michaeldeol has joined #ruby
<Ox0dea>
That is, you seem to have used the term pejoratively, as if object orientation is inherently "bad".
Fluent has quit [Ping timeout: 244 seconds]
<dymk>
Ah, no, I didn't mean to use it pejoratively, it's a paradigm that works quite well for my app
<dymk>
One of the primary differences between FP and OO as I see it is FP mutates data by making copies, OO mutates data directly
mrtg9970 has joined #ruby
<Ox0dea>
Copying isn't mutation; that's sort of the whole point?
<shevy>
Anyone here using ruby + tk and dares to admit it?
vyorkin has joined #ruby
<shevy>
jhass ok
vyorkin has quit [Client Quit]
<dymk>
Well yes, that's just how you'd do the analogous operations in the FP world, by making copies; everything is immutable
<shevy>
I have to use tcl for some university-project, now oddly enough I feel like first writing stuff in ruby-tk before having to go deeper into tcl
rubie_ has quit [Remote host closed the connection]
<shevy>
[spoiler] haha yeah that is how I already feel about that as well :(
<[spoiler]>
:)
<Ox0dea>
Functional languages provide primitives for managing mutation, but you're free to apply similar discipline in your Ruby code.
dgutierrez1287 has quit [Remote host closed the connection]
jackjackdripper has quit [Ping timeout: 245 seconds]
veduardo has quit [Ping timeout: 244 seconds]
banister has joined #ruby
<[spoiler]>
anyway, people! It's an early night for me. Goodnight! <3
<Ox0dea>
Aur revoir.
Fluent has joined #ruby
jackjackdripper has joined #ruby
<Ox0dea>
-r
<Ox0dea>
I can't even into French. :/
Torrieri has quit [Quit: Be back later ...]
Torrieri has joined #ruby
<dymk>
That's true, but I'm skeptical how code written in FP fashion would perform given how Ruby isn't optimized for "allocate every time you want to change a field on a structure"
<Ox0dea>
dymk: In any case, I realize I'm being overly pedantic. The beauty of Ruby is that it well deserves its "functional object orientation" badge.
<Ox0dea>
And you're right that the line between the two paradigms can be perilously thin.
<dymk>
Indeed, sometimes being pedantic about languages can be fun though ;)
[k- has quit [Ping timeout: 252 seconds]
<Ox0dea>
Yes, I quite enjoy it. :P
<nofxx>
dymk, FP also dictates you should avoid data change anyways
Guest24 is now known as lele
Caius has quit [Ping timeout: 256 seconds]
<dymk>
nofxx, what's it give you in return to perform meaningful computation, then?
<shevy>
cookies
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
radgeRayden_ has quit [Quit: Leaving]
robbyoconnor has joined #ruby
Torrieri has quit [Ping timeout: 264 seconds]
robh71 has joined #ruby
einarj has quit [Remote host closed the connection]
chabil has quit [Quit: WeeChat 1.2]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
?cookie shevy
<ruboto>
shevy, here's your cookie:
<nofxx>
dymk, not sure I'm following. Also, have in mind I really don't dig neither read theoretical/pseudo practices. For me OO vs FP in ruby is class vs a module with self.foo
diegoviola has quit [Quit: WeeChat 1.2]
<Ox0dea>
Wat.
<nofxx>
which works better in my case is what I'm using. Don't follow a pattern for everything, actually that's the beauty in ruby, as Ox0dea pointed otu
Caius has joined #ruby
Cohedrin has quit [Ping timeout: 246 seconds]
mrtg9970 has quit [Quit: Leaving]
nertzy has quit [Quit: This computer has gone to sleep]
gard has quit [Ping timeout: 265 seconds]
<nofxx>
Ox0dea, I mean 10 lines of code vs 10 paragraphs of boring text. Which you prefer to understand some practice/pattern?
* jhass
fetches popcorn
<Ox0dea>
Are you decrying knowledge or something?
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nofxx>
Ox0dea, nope, I'm an uncorrectable aforist
<Ox0dea>
nofxx: "Just write code until it works" is the quintessential Bad Idea.
<nofxx>
that's not what I mean
aswen has joined #ruby
<Ox0dea>
I'm not even sure how practices and/or patterns came into this, mind.
nertzy has joined #ruby
<Ox0dea>
It's a shame how widespread is the belief that functional programming is just some ivory tower plaything.
<iszak>
Ox0dea: I am not sure this is the case, I see it becoming very popular in the JS area
<yo61>
It fails to install debugger as it can't find ./220/ruby_debug.h
<jhass>
yo61: try bundle install --without development
<jhass>
doubt you'll need it
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<yo61>
OK, that worked
<yo61>
Thanks
<nofxx>
jez, worst brands ever << :dlink ... no wonder they will go bankrupt very soon. go go huawei. Need to buy an adsl modem. Ox0dea enlight us with some functional EXAMPLES ;)
<nofxx>
that's what I meant, theory means shit with computation... show me the code.
MyMind has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
vickleton has quit [Ping timeout: 240 seconds]
<Ox0dea>
nofxx: I don't sexually identify as a search engine (yet).
Sembei has quit [Ping timeout: 260 seconds]
ofdtrinity has quit [Quit: Leaving]
<miah>
huawei isnt great
djbkd has joined #ruby
<yo61>
jhass: how about if I do need those development gems?
veduardo has quit [Ping timeout: 244 seconds]
<jhass>
yo61: replace debugger with byebug or use Ruby 1.9 (I'd strongly prefer the former)
<baweaver>
shevy: Give me and Ox0deaa bit to get our Pokemon variant up
troulouliou_dev has joined #ruby
<baweaver>
or snarf some of the RPG Maker source
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea>
Ick.
<nofxxx>
shevy, no, dunno why I even mentioned... not helping hehe. But I remember some code let me try to find.
<baweaver>
RMVXA is a good portion Ruby 1.9.2
KensoDev has quit [Remote host closed the connection]
<shevy>
you guys wrote a pokemon variant?
KensoDev has joined #ruby
<Ox0dea>
shevy: There needs to be a sqlite2classes utility, like, yesterday.
np0 has joined #ruby
<baweaver>
we mused about it, and never did anything
Silox| has quit [Quit: Connection closed for inactivity]
hydrozen has joined #ruby
<Ox0dea>
Veekun has a SQLite database containing all the Pokémon data one might ever need, but massaging it into a coherent object model isn't trivial.
<Ox0dea>
I have a little DSL for creating monsters, but it's not at all comprehensive.
christiandsg has joined #ruby
<baweaver>
We should make that some time though
<baweaver>
shevy can be our mascot or something
<Ox0dea>
Aye, glueing all the formulae together and seeing the right numbers come out during battles would be a joyous thing.
swgillespie has joined #ruby
KensoDev has quit [Ping timeout: 245 seconds]
<Ox0dea>
Literally thousands of special cases, though...
<baweaver>
Most of the annoying part is just getting the modeling done.
lannonbr has joined #ruby
marsjaninzmarsa has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
kies has quit [Ping timeout: 246 seconds]
robh71 has joined #ruby
KensoDev has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
kies has joined #ruby
KensoDev has quit [Remote host closed the connection]
KensoDev has joined #ruby
djbkd has joined #ruby
Yzguy has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
Yzguy has quit [Client Quit]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
KensoDev has quit [Ping timeout: 240 seconds]
christiandsg has quit [Remote host closed the connection]
axl_ has joined #ruby
rubie has quit [Remote host closed the connection]
aperios has quit [Ping timeout: 252 seconds]
hj2007 has quit [Ping timeout: 246 seconds]
<np0>
is it recommended for people who are just learning ruby to use an alternative to irb, like pry?
<nofxxx>
np0, pry isn't an alternative. You are actually using both
<nofxxx>
np0, are you having fun? when that answer is no you're doing ruby wrong ;)
northfurr has quit [Quit: northfurr]
snowkidind has quit [Quit: snowkidind]
Yzguy has joined #ruby
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lucyinthesky has joined #ruby
<np0>
nofxxx: so is it some sort of wrapper for irb that adds functionality? and yes, so far i am :)
northfurr has joined #ruby
<nofxxx>
pry == a vortex in time that opens a portal to: irb
<nofxxx>
np0, trying to put in simple words for you ;)
<np0>
ah i see
<darix>
np0: pry is irb on steroids. really strong steroids.
<np0>
maybe i should stick with irb untill i'm writing large bodies of code so i don't confuse myself
<np0>
darix: gotcha. since i'm not doing any heavy lifting with ruby, i don't think i'll need supplements just yet :P
<darix>
np0: here is some neato feature you will love quickly
<darix>
require 'pry'; binding.pry
<nofxxx>
np0, ahh, you're using as irb (calling from the bash). No problem. I was thinking you was using pry inline. eg: anywhere on your code you may call `binding.pry`
<shevy>
I found that making games is a LOT of work...
<darix>
a pry shell right in the spot of your program
<shevy>
and I am unsure why
marsjaninzmarsa has quit [Ping timeout: 244 seconds]