<havenwood>
tramplefoot: Single quotes and %q are the no interpolation option for Strings.
<havenwood>
tramplefoot: I just use single quotes in Ruby unless I'm interpolating or using backslashes.
<havenwood>
tramplefoot: If you see a single quoted String, you can know it has no interpolation without looking further.
<havenwood>
tramplefoot: In Ruby, like Perl, TIMTOWTDI.
<havenwood>
tramplefoot: There is more than one way to do it.
<adam12>
Ironically, I use double quoted strings _everywhere_.
<havenwood>
adam12: Let's fight!
<havenwood>
adam12: :P
<havenwood>
adam12: So what if you have a String just containing a single double quote?
<havenwood>
adam12: Exception to the rule, or?: "\""
<adam12>
havenwood: I'd probably %Q there if that was the case. Doesn't happen that frequently, at least not as frequently as single quote
<adam12>
single single quote
<havenwood>
adam12: I could see it either way. I think my slight preference for single quote is actually aesthetic. I wouldn't mind not having a choice though.
<havenwood>
adam12: Yeah, just joking on the single double quote.
<havenwood>
Though I have definitely written that.
<adam12>
There was good argument about single/double somewhere.. maybe Rubocop's style guide.
<adam12>
I just like not having to think. Can I put a variable here? Yes, of course, because I always use double quotes.
<havenwood>
Yeah, I recall they stuck with single quote and I was every-so-slightly pleased.
<havenwood>
I think after a survey showed a near split in use.
<adam12>
That said I've been using Kernel.format a lot lately.
<havenwood>
Yeah, if the method call doesn't matter that does seem cleaner overall.
<adam12>
tramplefoot: PHP has similar semantics for single/double quote IIRC. But in their case, I believe single quotes do (did?) offer some performance gains over double quotes. Not sure if that's still the case, and last I remember, Ruby didn't have any significant performance differences for single/double quotes.
<havenwood>
Just mailed in Andromeda's Canadian citizenship form. :)
<tramplefoot>
that zenspider website is much better than pragprogs ancient api reference, thanks for the link!!
<adam12>
havenwood: O_o well welcome eh
ur5us has joined #ruby
jenrzzz has joined #ruby
<apotheon>
00:32 < havenwood> tramplefoot: I just use single quotes in Ruby unless I'm interpolating or using backslashes.
<apotheon>
havenwood: ditto
<apotheon>
Singles are easier to type, and I guess on some theoretical level it's better to avoid forcing interpolation when there's nothing to interpolate.
<apotheon>
. . . but backslashes are annoying, so I quickly switch to doubles when needed to avoid backslashes.
<apotheon>
hmm
<apotheon>
"StandardRB" is wrong about some things.
<apotheon>
can't do it
BTRE has quit [Remote host closed the connection]
<apotheon>
Multiline brace-delimited blocks, for instance, are harder to read clearly, given Ruby's block variable passing syntax.
<apotheon>
shit's ugly, too
<apotheon>
Using do/end on a single line makes it harder to read, too, in my opinion.
<apotheon>
ugh
<apotheon>
not happy with semantic choices for non-semantic syntax
<tweaks>
double++
<apotheon>
I'm going to have a very difficult time defending Ruby's readability if this kind of thing actually becomes "normal".
<apotheon>
I feel like a lot of JavaScripty ideas are creeping into the Ruby community -- and not *good* JavaScripty ideas.
cthu| has quit [Ping timeout: 260 seconds]
bmurt has joined #ruby
drincruz has joined #ruby
<apotheon>
Meanwhile, JavaScript seems to be mostly importing good ideas from Ruby.
greypack has quit [Ping timeout: 256 seconds]
greypack has joined #ruby
elcuervo has quit [Read error: Connection reset by peer]
elcuervo has joined #ruby
BTRE has joined #ruby
dostoyevsky has quit [Ping timeout: 265 seconds]
sirecote has quit [Ping timeout: 265 seconds]
SeepingN has quit [Ping timeout: 256 seconds]
rose_nd_ash has joined #ruby
Mikaela0 has joined #ruby
levifig has quit [Ping timeout: 265 seconds]
e2 has quit [Ping timeout: 265 seconds]
eldritch has quit [Ping timeout: 265 seconds]
dostoyevsky has joined #ruby
ule has quit [Ping timeout: 265 seconds]
go|dfish has quit [Ping timeout: 265 seconds]
dorian has quit [Ping timeout: 265 seconds]
Sp4rKy has quit [Ping timeout: 265 seconds]
mangoicedtea has quit [Read error: Connection reset by peer]
dorian has joined #ruby
levifig has joined #ruby
t3hyoshi has quit [Ping timeout: 260 seconds]
lightstalker has quit [Ping timeout: 265 seconds]
Mikaela has quit [Ping timeout: 265 seconds]
Mikaela0 is now known as Mikaela
ule has joined #ruby
skape has quit [Quit: Connection closed for inactivity]
lektrik has joined #ruby
e2 has joined #ruby
eldritch has joined #ruby
rose_nd_ash has quit [Remote host closed the connection]
t3hyoshi has joined #ruby
rose_nd_ash has joined #ruby
Sp4rKy has joined #ruby
sirecote has joined #ruby
meinside has joined #ruby
lightstalker has joined #ruby
go|dfish has joined #ruby
bruce_lee has quit [Ping timeout: 240 seconds]
bruce_lee has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
rose_nd_ash has quit [Remote host closed the connection]
tramplefoot has quit [Quit: Leaving.]
ChmEarl has joined #ruby
greypack has quit [Ping timeout: 256 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
braincra- has quit [Quit: bye bye]
braincrash has joined #ruby
rose_nd_ash has joined #ruby
rose_nd_ash has quit [Remote host closed the connection]
adu has quit [Ping timeout: 240 seconds]
adu has joined #ruby
mozzarella has quit [Remote host closed the connection]
mozzarella has joined #ruby
mozzarella has quit [Read error: Connection reset by peer]
mozzarella has joined #ruby
adu has quit [Quit: adu]
gonzar has joined #ruby
gonzar has left #ruby [#ruby]
gonzar has joined #ruby
drincruz has quit [Ping timeout: 260 seconds]
gonzar has quit [Remote host closed the connection]
SeepingN has joined #ruby
greypack has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
adu has joined #ruby
lektrik has quit [Quit: Leaving]
lektrik has joined #ruby
UncleCid has quit [Remote host closed the connection]
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bsdbandit-01 has quit [Quit: -a- Connection Timed Out]
bsdbandit-01 has joined #ruby
Technodrome has joined #ruby
ChmEarl has quit [Quit: Leaving]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gix- has quit [Ping timeout: 246 seconds]
donofrio has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 256 seconds]
ur5us has quit [Ping timeout: 260 seconds]
Guest55603 has quit []
KnownSyntax has joined #ruby
elphe has joined #ruby
bsdbandit-01 has quit [Quit: -a- Connection Timed Out]
bsdbandit-01 has joined #ruby
jenrzzz has joined #ruby
bocaneri has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
Rudd0 has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
kashike has quit [Ping timeout: 272 seconds]
imadper` has quit [Remote host closed the connection]
rippa has joined #ruby
dfucci has joined #ruby
Secret-Fire has quit [Read error: Connection reset by peer]
xco has joined #ruby
Secret-Fire has joined #ruby
schne1der has joined #ruby
Secret-Fire has quit [Max SendQ exceeded]
Secret-Fire has joined #ruby
claudiuinberlin has joined #ruby
Technodrome has quit [Ping timeout: 256 seconds]
Emmanuel_ChanelW has joined #ruby
ap4y has quit [Ping timeout: 256 seconds]
adu has quit [Quit: adu]
klaas has quit [Read error: Connection reset by peer]
imode has quit [Ping timeout: 256 seconds]
sarna has joined #ruby
klaas has joined #ruby
TzilTzal has joined #ruby
UncleCid has joined #ruby
oddp has joined #ruby
TzilTzal has quit [Remote host closed the connection]
bsdbandit-01 has quit [Quit: -a- Connection Timed Out]
bsdbandit-01 has joined #ruby
TzilTzal has joined #ruby
TzilTzal has quit [Client Quit]
GodFather has quit [Ping timeout: 246 seconds]
vondruch has joined #ruby
snickers has joined #ruby
jenrzzz has quit [Read error: Connection reset by peer]
ujjain2 has joined #ruby
jenrzzz has joined #ruby
rose_nd_ash has joined #ruby
rose_nd_ash has quit [Remote host closed the connection]
rose_nd_ash has joined #ruby
rose_nd_ash has quit [Remote host closed the connection]
rose_nd_ash has quit [Remote host closed the connection]
cd has quit [Quit: cd]
rose_nd_ash has joined #ruby
Querens has quit [Quit: No Ping reply in 180 seconds.]
voker57 has quit [Remote host closed the connection]
Querens has joined #ruby
voker57 has joined #ruby
rose_nd_ash has quit [Remote host closed the connection]
rose_nd_ash has joined #ruby
dionysus69 has joined #ruby
cnsvc has quit [Ping timeout: 240 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
_whitelogger has joined #ruby
chalkmonster has joined #ruby
claudiuinberlin has quit [Ping timeout: 272 seconds]
<rapha>
morning
<rapha>
why is it that if i have a Gem installed, "require 'lalalagem'" from 'lalala.rb' will work fine, but but if there is a 'Gemfile' present in the same folder which does not mention the lalala gem, then it will fail?
<rapha>
oh wait, no that's not the pattern
<rapha>
only if i "require 'lalalagem'" from within the _Rakefile_ will it not work
<rapha>
despite the Gem being installed
<rapha>
does Rake somehow ignore non-bundled gems in the presence of a Gemfile?
chalkmonster has quit [Ping timeout: 260 seconds]
banisterfiend has joined #ruby
rose_nd_ash has quit [Remote host closed the connection]
rose_nd_ash has joined #ruby
<jhass>
how do you run rake?
yxhuvud has quit [Read error: Connection reset by peer]
yxhuvud has joined #ruby
<jhass>
bundler will only (have a chance to) restrict the load path when "bundler/setup" is required, either through bundle exec, a bin/ wrapper doing it or some other file before your require "lalala" doing it
<jhass>
also check your shell aliases and $PATH for some unexpected modifications to what you run
chalkmonster has joined #ruby
<rapha>
ah
<rapha>
found a simple way
<rapha>
added it to the development group
<rapha>
then it somehow accepted it as being installed and didn't try to install it again but the require works
<rapha>
thanks jhass
<jhass>
not "somehow", that's exactly what bundler's job is
dfucci has quit [Quit: Lost terminal]
fercell has joined #ruby
Dara has quit [Remote host closed the connection]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banisterfiend has joined #ruby
banisterfiend_ has joined #ruby
Guest30809 has joined #ruby
rose_nd_ash has quit [Remote host closed the connection]
rose_nd_ash has joined #ruby
Guest30809 has left #ruby [#ruby]
banisterfiend__ has joined #ruby
banisterfiend_ has quit [Ping timeout: 244 seconds]
drincruz has joined #ruby
donofrio has joined #ruby
GodFather has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
sleetdrop has joined #ruby
gitter1234 has joined #ruby
GodFather has joined #ruby
GodFather has quit [Remote host closed the connection]