MrPomas has quit [Read error: Connection reset by peer]
MrPomas has joined #ruby
Batholith has joined #ruby
bradleyprice has joined #ruby
inoperable has quit [Quit: ZNC 1.6.3 - http://znc.in]
reginvld has joined #ruby
mjago has joined #ruby
JakFrist[WVU] has joined #ruby
<tekeli-li>
It seems like a lot of the ruby tutorials and such are rails-centric. Should I cease all resistance and join the horde, or does ruby have an identity outside the web framework?
ttilley has joined #ruby
Silthias has quit [Ping timeout: 260 seconds]
ttilley has quit [Changing host]
ttilley has joined #ruby
leitz has quit [Quit: Nappy time]
Silthias has joined #ruby
bradleyprice has quit [Ping timeout: 245 seconds]
<havenwood>
tekeli-li: There's a ton to Ruby outside of Rails.
h1fuelcell has joined #ruby
<havenwood>
tekeli-li: Rails is quite popular software but it's just one of the plethora of things done in Ruby.
nullobject has quit [Ping timeout: 245 seconds]
h1fuelcell has quit [Client Quit]
doublemalt__ has joined #ruby
gloscombe has quit [Quit: gloscombe]
doublemalt_ has quit [Ping timeout: 245 seconds]
gbgdev has quit [Remote host closed the connection]
shayan has left #ruby [#ruby]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
matugm has quit [Ping timeout: 250 seconds]
Axy has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
nullobject has joined #ruby
Olipro has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
<baweaver>
now make a double loop that prints every value on a new line.
dionysus69 has joined #ruby
MrPomas has quit [Remote host closed the connection]
MrPomas has joined #ruby
<baweaver>
ruby-lang710: got that?
<baweaver>
link me to a gist when you get it.
conta has quit [Ping timeout: 240 seconds]
ruby-lang710 has quit [Ping timeout: 260 seconds]
pabs has quit [Ping timeout: 244 seconds]
dionysus69 has quit [Ping timeout: 264 seconds]
<b0nn>
sorry, why not just start with two simple loops, inner loop printing 1..10, and an outer loop printing 1..10 maybe with a "inner Loop", and "Outer Loop" string to mark where you are
MrPomas has quit [Ping timeout: 246 seconds]
<baweaver>
they DC'd
<b0nn>
oh :(
<baweaver>
Also that's a slight trick question
<baweaver>
you don't even need loops for the problem I proposed above
<b0nn>
I was thinking the print statements in the loops would also go some way to demonstrating how to debug code as well ;)
<baweaver>
I'm more of just concerned on the fixation of needing to use nested loops
<baweaver>
Well when you have a hammer....
<b0nn>
possibly homework?
terens has joined #ruby
<b0nn>
or was mentioned in passing/class and trying to come to grips with the concept
BrianJ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dn`_ has joined #ruby
* b0nn
shrugs
aidalgol has joined #ruby
<baweaver>
Perhaps
ruby-lang276 has joined #ruby
<ruby-lang276>
hahah
<baweaver>
Maybe that's them
dn` has quit [Ping timeout: 264 seconds]
<ruby-lang276>
@baweaver need to pratice more on nested loop though
<baweaver>
why though
dn`_ is now known as dn`
pabs has joined #ruby
<baweaver>
and realize "Because I need to" is not a real answer
<baweaver>
and should be meditated on until you find one
quazimodo has joined #ruby
<ruby-lang276>
@baweaver becoz sometimes in some situation you need to
<baweaver>
[[1, 4, 7, 10], [2, 5, 8], [3, 6, 9]]
<baweaver>
take this array
<baweaver>
now print every digit on a new line using a nested loop
<b0nn>
ruby-lang276: are you learning to program, are you a student, is this purely nested loops in ruby...?
tildes has joined #ruby
<ruby-lang276>
nested loop
<ruby-lang276>
just want to famirialize with it
<baweaver>
See that problem above?
<baweaver>
Try it and give me a link to a gist
<ruby-lang276>
kk
<terens>
hi
<terens>
I am getting ruby23: no -r allowed while running setgid (SecurityError)
<terens>
no idea why
quazimodo has quit [Ping timeout: 248 seconds]
quazimodo has joined #ruby
<baweaver>
Someone put setgid on the interpreter
<baweaver>
which is a nightmarish security risk
<ruby-lang276>
@baweaver why need a nested loop for that?
<baweaver>
you don't
<baweaver>
but you want practice
<baweaver>
so do it with a nested loop
<b0nn>
sorry, why not just start with two simple loops, inner loop printing 1..10, and an outer loop printing 1..10 maybe with a "inner Loop", and "Outer Loop" string to mark where you are
sarlalian has quit [Remote host closed the connection]
tomphp has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
eightbitraptor has joined #ruby
mg^ has joined #ruby
h1fuelcell has quit [Ping timeout: 248 seconds]
sarlalian has joined #ruby
harfangk has joined #ruby
johnmccabe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
codfection has joined #ruby
DaveTaboola has joined #ruby
yaw has quit [Ping timeout: 240 seconds]
rodfersou has joined #ruby
edwinvdgraaf has quit [Ping timeout: 268 seconds]
gbgdev has joined #ruby
yaw has joined #ruby
aidalgol has quit [Quit: zZzZZzzzz]
<Takumo>
Not strictly a ruby question but I don't know if grape has its own channel... How do I set/override the format of a response? e.g. user requests format A but I now want to return format B because of an error or other event
abucha has joined #ruby
edwinvdgraaf has joined #ruby
jaruga___ has joined #ruby
<c-c>
'a response'?
<c-c>
pastie your code plz
<Takumo>
let me just mock up what I'm trying to do
<dminuoso>
lolmaus: ^- maybe quite a silly example, but it shows that you can pretty much use anything as a key. ;-)
JeanCarloMachado has quit [Ping timeout: 256 seconds]
<lolmaus>
👍
codfection has joined #ruby
jcao219 has joined #ruby
lmc has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
lmc has quit [Ping timeout: 260 seconds]
byte512 has joined #ruby
tim1874_ has joined #ruby
JeanCarloMachado has joined #ruby
<montanonic>
Hey y'all! I have a metaprogramming question. I have several methods of the form blah_path, where 'blah' is interchangable. What I'd like to do is evaluate blah_path for a bunch of different, dynamically generated blahs
<c-c>
eval_path(blah)?
<montanonic>
so that would be: blahs.each do |blah|; "#{blah}_path" ...
<montanonic>
Oh, I wasn't aware of eval_path
<montanonic>
my question specifically was about performance of
<c-c>
I mean, just use a method with blah as arg
<montanonic>
eval "#{blah}_path"
<montanonic>
(not an option in this case; rails makes the method names)
<montanonic>
vs
<montanonic>
method("#{blah}_path".to_sym).()
<montanonic>
and, the to_sym isn't necessary in this case, I realize
yaw_ is now known as yaw
Tempesta has quit [Ping timeout: 258 seconds]
johnmccabe has joined #ruby
n008f4g_ has joined #ruby
shayan has quit [Quit: shayan]
shayan has joined #ruby
<montanonic>
Ah, I think I have a better solution for my use case: self.send("#{name}_path")
<c-c>
yes
<montanonic>
awesome; <3 ruby
GodFather has joined #ruby
pawnbox__ has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
Tempesta has joined #ruby
edwinvdgraaf has quit [Ping timeout: 246 seconds]
govg has quit [Ping timeout: 245 seconds]
b_ has joined #ruby
govg has joined #ruby
yaw has quit [Ping timeout: 256 seconds]
symm has quit [Ping timeout: 258 seconds]
rt has joined #ruby
jaruga___ has quit [Quit: jaruga___]
jaguarmagenta has joined #ruby
jdawgaz has joined #ruby
eightbitraptor has joined #ruby
edwinvdgraaf has joined #ruby
jdawgaz has quit [Client Quit]
tvw has joined #ruby
<apeiros>
montanonic: public_send > send
<apeiros>
unless you explicitly want to invoke private methods
<Bish>
elomatreb: my code basicially does that, but be careful with the size
nullobject has joined #ruby
<Bish>
like when you do f,s,t = [1,2]
futilegames has quit [Quit: futilegames]
<elomatreb>
Bish: That's a fancy way for sure
howdoi has joined #ruby
Gerak has joined #ruby
<Gerak>
exit
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Gerak has quit [Client Quit]
gix has joined #ruby
yaw has joined #ruby
<ruby-lang160>
basically you are adding the first key with 2 value attached to it?
pandaant has quit [Ping timeout: 264 seconds]
synthroi_ has joined #ruby
psychicist__ has joined #ruby
<ruby-lang160>
@Bish is it correct?
<elomatreb>
ruby-lang160: You're still only storing one actualy value for the key, but that value is an Array that can contain as many values as you like
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<ruby-lang160>
ok 1 key with multiple values in a array correct?
synthroid has quit [Ping timeout: 268 seconds]
lenwood has joined #ruby
yaw has quit [Ping timeout: 260 seconds]
<elomatreb>
ruby-lang160: Basically, yes. Bish's solution "just" does some fancy things with the Hash initilizer that automatically assigns this array
<Bish>
ruby-lang160: basicially it's still a hashmap that maps to array
<Bish>
but the default value for a non existing key will be defaulted to empty arra
<Bish>
that's all there is to the magic
symm has joined #ruby
Gerak has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
<ruby-lang160>
thx man
Robtop__ has joined #ruby
<ruby-lang160>
i was wondering this for a long time
<ruby-lang160>
haha
shayan has quit [Quit: shayan]
<Bish>
ruby-lang160: it's not considered good code either, so be careful with that
<ruby-lang160>
oh i see
<Bish>
ofc there a good uses for the "default_proc" of Hash.new, and this might be one of them
<elomatreb>
If you're thinking about doing something like this in actual code, you may want to create value objects instead of being fancy with arrays
jdawgaz has joined #ruby
<Bish>
but there is this beautiful gem, where you can build a "endless hash"
<ruby-lang160>
you guys know so much of it
eggshke has quit []
tpendragon has quit [Ping timeout: 258 seconds]
<Bish>
>> h = Hash.new { |h,k| h[k] = Hash.new(&h.default_proc); } h[:lol][:rofl][:etc]; h
<ruby[bot]>
Bish: # => /tmp/execpad-22950d58a15b/source-22950d58a15b:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (https://eval.in/698252)
<Bish>
>> h = Hash.new { |h,k| h[k] = Hash.new(&h.default_proc) }; h[:lol][:rofl][:etc]; h
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Bish>
what elomatreb said is still true
<ruby-lang160>
do you have any good resource for nested loop?
<Bish>
nested loops? just do them?
c355e3b has joined #ruby
<Bish>
>> loop { loop { break } break }
<ruby[bot]>
Bish: # => /tmp/execpad-98cab7d4feb8/source-98cab7d4feb8:2: syntax error, unexpected keyword_break, expecting ' ...check link for more (https://eval.in/698257)
<Bish>
:(
<elomatreb>
You want to understand how a certain piece of code using nested loops works, I assume?
<ruby-lang160>
yup definately
<ruby-lang160>
single loop is easy to understand than nested loop :)
<elomatreb>
Usually one goes about this by adding print statements, outputting the value of variables modified in the loops. Then you can look at the output and see what is going on
MrPomas_ has joined #ruby
LuckyABA has joined #ruby
<ruby-lang160>
where the hell you guys learn this advanced stuffs?
MrPomas_ has quit [Read error: Connection reset by peer]
<elomatreb>
It's just a matter of practice, really
<Bish>
ruby-lang160: think of it as excel-cells, you have one loop to go DOWN and one to go SIDEWAYS
<Bish>
basicially.
<Bish>
that's for double loops
<ruby-lang160>
oh i see
b_ has joined #ruby
MrPomas has quit [Ping timeout: 268 seconds]
<elomatreb>
Another important thing is that you don't actually see that many actual loops in Ruby, most things usually done by loops in other languages can be done using iterators
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nowz has joined #ruby
malconis has quit [Ping timeout: 264 seconds]
brendan- has joined #ruby
Definity has quit [Ping timeout: 258 seconds]
malconis has joined #ruby
the_drow has joined #ruby
pwnd_nsfw` has joined #ruby
minimalism has joined #ruby
pandaant has quit [Remote host closed the connection]
pwnd_nsfw has quit [Ping timeout: 240 seconds]
Snickers has quit [Ping timeout: 248 seconds]
SpiffTR has joined #ruby
nullobject has joined #ruby
maattdd has joined #ruby
JakFrist[WVU] has joined #ruby
polishdub has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jhack has quit [Quit: jhack]
Robtop__ has joined #ruby
BrianJ has joined #ruby
mic_e has quit [Read error: Connection reset by peer]
lenwood has quit [Ping timeout: 248 seconds]
pwnd_nsfw` has quit [Ping timeout: 245 seconds]
nankyokusei has joined #ruby
kelseynz has joined #ruby
camonz has joined #ruby
<camonz>
hello
ruby-lang160 has quit [Ping timeout: 260 seconds]
the_drow has quit [Quit: This computer has gone to sleep]
<camonz>
I have an array where I want the slice of each pair of items, i.e. given [1, 2, 3, 4, 5] I want slices of [1, 2], [2, 3], [3, 4], [4, 5], #each_slice looks like it'll give me only [1, 2], [3, 4], [5]
<camonz>
is there a way to get these slices easily?
pawnbox has quit [Remote host closed the connection]
JakFrist[WVU] has joined #ruby
shinnya has quit [Ping timeout: 250 seconds]
<camonz>
from the docs #each_cons(2) looks like what I want :)
pawnbox has joined #ruby
kelseynz has quit [Quit: kelseynz]
JakFrist[WVU] has quit [Client Quit]
rwb has joined #ruby
rippa has joined #ruby
h1fuelcell has joined #ruby
codfection has joined #ruby
yardenbar has quit [Ping timeout: 245 seconds]
nullobject has quit [Ping timeout: 252 seconds]
pawnbox has quit [Ping timeout: 260 seconds]
skalfyfan has joined #ruby
h1fuelcell has quit [Ping timeout: 246 seconds]
jaguarmagenta has quit [Remote host closed the connection]
raul782 has quit []
JakFrist[WVU] has joined #ruby
AndrewIsHere has joined #ruby
JakFrist[WVU] has quit [Client Quit]
jhack has quit [Ping timeout: 248 seconds]
jaguarmagenta has joined #ruby
codfection has quit [Max SendQ exceeded]
codfection has joined #ruby
brendan- has joined #ruby
jaguarmagenta has quit [Ping timeout: 264 seconds]
AndrewIsHere has quit [Ping timeout: 240 seconds]
Gerak has left #ruby [#ruby]
Guest30569 has quit [Changing host]
Guest30569 has joined #ruby
Guest30569 is now known as Nicmavr
kuSuSE has joined #ruby
nettoweb has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
daed has quit [Quit: leaving]
dayd is now known as daed
daed has quit [Changing host]
daed has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
konsolebox has joined #ruby
arknemona has joined #ruby
<PaulePanter>
Hi. Is there an easy way to get all 10⁶ possibilities for [0, 0, 0, 0, 0, 0]?
<PaulePanter>
That means each combination of digits 0 to 9 in that array.
BrianJ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<PaulePanter>
My stupid solution is to create six for loops.
<arknemona>
what's the most straightforward way to throw an error if a hash key doesn't exist?
<arknemona>
is there a method of Hash to do this?
marr has quit [Ping timeout: 258 seconds]
<Gravious>
PaulePanter, you could try it recursively perhaps? so the possibilities for a list of length n is (0..9).each { |x| x + possibilities for list of length n - 1 } ?
gbgdev_ has joined #ruby
gbgdev has quit [Ping timeout: 252 seconds]
stan has joined #ruby
<apeiros>
PaulePanter: (programmatical effort wise) cheap: 1e6.to_i.times do |i| ("%06d" % i).chars.map(&:to_i) end
<apeiros>
errr, misses a map after .times
n008f4g_ has joined #ruby
emilford has joined #ruby
<apeiros>
alternatively either your nested loops or a single loop with a nested divmod loop
brendan- has joined #ruby
xall has joined #ruby
amclain has joined #ruby
stan has quit [Client Quit]
<adaedra>
Array.new(n) { x } > n.times.map { x |
<apeiros>
wow. totally. why did I say n.times.map?
<apeiros>
must be the drugs/medicine :-S
stan_ has joined #ruby
<Gravious>
apeiros, that's nice
<Gravious>
i mean your solution not your comment about drugs :D
stan_ is now known as stan
<apeiros>
thanks
h1fuelcell has joined #ruby
lmc has joined #ruby
Snickers has quit [Quit: Snickers]
<apeiros>
I think I have Integer#digits(base: 10, pad: 0) for that in my snippets somewhere…
<apeiros>
Array.new(1e6.to_i) { |i| i.digits(pad: 6) } # with that
<adaedra>
apeiros: that's nice
<adaedra>
i mean drugs, not your solution
* adaedra
disappears
<apeiros>
I guess they are. I prefer that over pain :-p
<adaedra>
pain for breakfast <3
h1fuelcell has quit [Ping timeout: 248 seconds]
Ishido has joined #ruby
BrianJ has joined #ruby
pskosinski_ is now known as pskosinski
SpiffTR has quit [Quit: Leaving.]
<Bish>
can i somehow create proc with a binding to a current scope?
the_drow has joined #ruby
<PaulePanter>
apeiros: Thank you, that’s nice.
<Bish>
i want to create a proc which i can give gsub as a block
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<Bish>
and it doesn't have the magic variables $~ $&
<Bish>
since it's in a different scope
gheegh has quit [Ping timeout: 264 seconds]
Guest50076 has joined #ruby
mark_66 has left #ruby ["PART #RubyOnRails :PART #elixir-lang :PART #crystal-lang :PING 1481817502"]
<Bish>
wow that's a buggy irc client
<elomatreb>
Bish: Can't you have gsub pass in the MatchData object?
Kazlock has joined #ruby
<Bish>
no gsub gives me the match as a string
<elomatreb>
Bish: Yeah, I just read that too. nvm then
h1fuelcell has joined #ruby
<Bish>
and i am using the same gsub block over and over again
antoniobeyah has joined #ruby
aganov has quit [Remote host closed the connection]
OTORelic2 has joined #ruby
<Bish>
so i thought i might make a proc out of that
<Bish>
but that one is losing the scope the regex is done in
<Bish>
does that change if i make it a method?
<elomatreb>
Give gsub a block that uses the global variables where they are visible, and pass them explicitely to a proc?
psychicist__ has quit [Ping timeout: 245 seconds]
<Bish>
elomatreb: possible
chouhoulis has joined #ruby
Snickers has joined #ruby
lmc has quit [Quit: Leaving...]
pawnbox has joined #ruby
lmc has joined #ruby
andikr has quit [Remote host closed the connection]
millerti has joined #ruby
vondruch has quit [Ping timeout: 256 seconds]
<Bish>
ahh this all bulshit
tyang__ has joined #ruby
nfk has joined #ruby
blackwind_123 has joined #ruby
<Bish>
>> p = Proc.new { p $&,$~ }; "test".gsub(/./,&p)
<impermanence>
After gem install rake all goes good I get "rake: command not found"? Is there a default install path (RHEL) or...? What am I missing here?
nankyokusei has joined #ruby
codfection has joined #ruby
codfection has quit [Max SendQ exceeded]
codfection has joined #ruby
jsrn_ has quit [Quit: Leaving]
psychicist__ has joined #ruby
brendan- has joined #ruby
nowz has quit [Remote host closed the connection]
yeticry has quit [Ping timeout: 258 seconds]
synthroi_ has quit [Remote host closed the connection]
yeticry has joined #ruby
Robtop__ has quit [Read error: Connection reset by peer]
<impermanence>
K, so added to path and good now.
<impermanence>
:)
rlex has quit [Ping timeout: 246 seconds]
patronus has quit [Read error: No route to host]
sjums has quit [Quit: Connection reset by beer]
xall has quit [Ping timeout: 248 seconds]
tabakhase has quit [Ping timeout: 265 seconds]
Shashikant86 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lel has quit [Ping timeout: 250 seconds]
pwnd_nsfw has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
optiz0r has quit [Remote host closed the connection]
sjums has joined #ruby
lel has joined #ruby
patteh has quit [Remote host closed the connection]
xall has joined #ruby
patteh has joined #ruby
Dimik has quit []
rlex has joined #ruby
yaw has joined #ruby
tabakhase has joined #ruby
optiz0r has joined #ruby
bradleyprice has joined #ruby
tercenya has joined #ruby
enterprisey has joined #ruby
jdawgaz has joined #ruby
xall has quit [Ping timeout: 268 seconds]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Chair has quit [Ping timeout: 258 seconds]
eightbitraptor has quit [Ping timeout: 250 seconds]
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aufi has quit [Quit: Leaving]
shayan has joined #ruby
Derderderd has joined #ruby
blackbombay has joined #ruby
jrmhurst92 has joined #ruby
jaguarmagenta has joined #ruby
jinie has quit [Ping timeout: 250 seconds]
the_drow has joined #ruby
nullobject has joined #ruby
pawnbox has quit [Remote host closed the connection]
SpiffTR has joined #ruby
grenierm has quit [Quit: grenierm]
jaguarmagenta has quit [Ping timeout: 252 seconds]
gbgdev_ has quit [Remote host closed the connection]
tyang has joined #ruby
tyang has quit [Read error: Connection reset by peer]
tyang has joined #ruby
Beams has quit [Quit: .]
tyang has quit [Client Quit]
SpiffTR has quit [Client Quit]
raul782 has joined #ruby
johnmilton has quit [Ping timeout: 248 seconds]
pawnbox has joined #ruby
tyang__ has quit [Ping timeout: 250 seconds]
jinie has joined #ruby
aupadhye has quit [Quit: Leaving]
claudiuinberlin has quit []
antoniobeyah has quit [Quit: antoniobeyah]
fullofcaffeine has joined #ruby
XV8 has joined #ruby
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
shayan has quit [Quit: shayan]
johnmilton has joined #ruby
shayan has joined #ruby
AndrewIsHere has quit []
antoniobeyah has joined #ruby
synthroid has joined #ruby
splud has joined #ruby
antoniobeyah has quit [Client Quit]
synthroid has quit [Remote host closed the connection]
nullobject has quit [Ping timeout: 268 seconds]
synthroid has joined #ruby
antoniobeyah has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ycyclist has joined #ruby
shayan has quit [Quit: shayan]
n008f4g_ has quit [Ping timeout: 265 seconds]
weaksauce has quit [Ping timeout: 244 seconds]
<arknemona>
impermanence obviously ruby gems path isn't in your $PATH
Guest50076 has quit [Remote host closed the connection]
<arknemona>
oops I missed the next message
tyang has joined #ruby
enterprisey has quit [Remote host closed the connection]
<eugenmayer1>
djellemah: i read about .try .. but that is not similar?
<StoneCypher>
what's the preferred new-to-ruby not-new-to-programming book
SpiffTR has joined #ruby
<marahin>
Hello. What's the up-to-date approach when it comes to creating simple GUI in Ruby? The only key is that it has to be cross-platform and/or best looking on macOS.
yaw has joined #ruby
bradleyprice has quit [Ping timeout: 252 seconds]
<eugenmayer1>
StoneCypher: i would say, ruby is one of the worsed languages to profit from prior development experience. The reason is, the magic and the weak typing / modules / includes and all this sugar. Basically, what i can give you is, try to not avoid learning ruby as you would do with any usual programing language ( where you would map concepts of the language you know to the new language on demand )
synthroi_ has joined #ruby
djbkd has joined #ruby
<eugenmayer1>
StoneCypher: ruby needs to be explicitly learned, no way around it - since it is not a language, its mostly a framework included ( not rails only, also the usual language ).
<Gravious>
StoneCypher, i thought pick axe was fine for this
hotpancakes has quit [Remote host closed the connection]
<Gravious>
in fact i've not finished yet
<StoneCypher>
Gravious: what's the full name of pickaxe, please?
* Gravious
is quite new to Ruby but not new to programming
<cfec0b8d>
ruby version ruby 2.3.1p112 (2016-04-26)
jcao219 has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
symm has quit [Ping timeout: 246 seconds]
synthroi_ has quit [Ping timeout: 246 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_djbkd has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
<djellemah>
harfangk: it's called a splat and it works by calling to_a on its operand, in this case ("A".."Z").to_a . It's also used to declare variable parameters to a method.
dcluna has joined #ruby
symm has joined #ruby
<Eiam>
djellemah: not a fan of that example of splat usage at all =(
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Eiam>
[*"A"...
<Eiam>
cfec0b8d: match returns <MatchData>
wrkrcoop has joined #ruby
<Eiam>
cfec0b8d: there could be multiple matches returned
soc42 has quit [Remote host closed the connection]
terens_ has joined #ruby
yaw has quit [Ping timeout: 264 seconds]
chouhoul_ has joined #ruby
prestorium has quit [Read error: Connection reset by peer]
<shadeslayer>
hey, so I have this class which mixes in the observable module, is there a way to test that Observable.changed and Observable.notify_observers are called?
jaruga___ has quit [Quit: jaruga___]
chouhoulis has quit [Ping timeout: 245 seconds]
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #ruby
_djbkd has quit [Read error: Connection reset by peer]
duderonomy has joined #ruby
enilsen16 has quit [Quit: enilsen16]
_djbkd has joined #ruby
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #ruby
TheBrayn has quit [Quit: WeeChat 1.5]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
enilsen16 has joined #ruby
nikivi has quit [Quit: zzz]
Robtop__ has joined #ruby
mochiyoda_ has joined #ruby
nikivi has joined #ruby
<tekeli-li>
What does this mean at the top of a .rb file? `# -*- ruby -*-`
blackwind_123 has quit [Ping timeout: 252 seconds]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
TheBrayn has joined #ruby
Paradox has quit [Remote host closed the connection]
_djbkd has quit [Ping timeout: 252 seconds]
sdothum has joined #ruby
Paradox has joined #ruby
sp4rrow has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 258 seconds]
enilsen16 has quit [Quit: enilsen16]
<shadeslayer>
oh
<shadeslayer>
so I made a stub module with attribute accessors, and module_eval'd it into the class I was testing :)
hogetaro has joined #ruby
johnmilton has quit [Ping timeout: 252 seconds]
jenrzzz_ has joined #ruby
<arknemona>
speaking of attributes, what does the `attribute` keyword do?
<arknemona>
is an attribute in ruby different from a instance variable?
johnmilton has joined #ruby
tildes has joined #ruby
jcao219 has quit [Ping timeout: 258 seconds]
johnmilton has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 245 seconds]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackwind_123 has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
marr has joined #ruby
muelleme has quit [Ping timeout: 248 seconds]
<tekeli-li>
Oh, is that an Emacs thing?
Dimik has joined #ruby
d0nn1e has quit [Ping timeout: 260 seconds]
frozengeek has joined #ruby
CalimeroTeknik has joined #ruby
<CalimeroTeknik>
hello! has anyone found a ruby expression that looks like an English sentence? for fun
synthroi_ has quit []
<CalimeroTeknik>
with print, if, unless, while, or, not there is some material
XV8 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<montanonic>
Anyone here using Opal in production? It seems like no one has been talking about it this year, as evidenced by the fact that almost every post and article about Opal is from 2015.
jhack has quit [Quit: jhack]
jaguarmagenta has quit [Ping timeout: 246 seconds]
jhack has joined #ruby
yeticry has quit [Ping timeout: 260 seconds]
statelesscode has joined #ruby
yeticry has joined #ruby
statelesscode_ has quit [Ping timeout: 265 seconds]
jhack has quit [Client Quit]
toretore has quit [Ping timeout: 256 seconds]
angelixd has joined #ruby
jhack has joined #ruby
jhack has quit [Client Quit]
govg has quit [Ping timeout: 268 seconds]
hollusion has joined #ruby
BrianJ has joined #ruby
hollusion has quit [Quit: Leaving]
aryaching has quit [Ping timeout: 250 seconds]
<Radar>
Everyone's using Elixir instead.
GodFather has quit [Ping timeout: 252 seconds]
pcmantz has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
h1fuelcell has joined #ruby
<montanonic>
There's no ElixirJS
quazimodo has joined #ruby
xall has joined #ruby
sepp2k1 has joined #ruby
sepp2k has quit [Ping timeout: 260 seconds]
dcluna has joined #ruby
hightower2 has joined #ruby
marxarelli is now known as marxarelli|afk
bturker has joined #ruby
<al2o3-cr>
shit happenzz
Fernando-Basso has quit [Quit: WeeChat 1.6]
hightower3 has quit [Ping timeout: 258 seconds]
xall has quit [Ping timeout: 260 seconds]
GodFather has joined #ruby
polishdub has quit [Quit: Leaving]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
bturker has quit [Ping timeout: 256 seconds]
elastix has quit [Quit: Leaving]
koooge has joined #ruby
Gravious has quit [Ping timeout: 256 seconds]
Gravious has joined #ruby
ruby-lang108 has joined #ruby
jtdoncas has quit [Quit: WeeChat 1.5]
ruby-lang108 has quit [Client Quit]
<Radar>
montanonic: Can I suggest writing in ES6 instead?
pwnd_nsfw has quit [Ping timeout: 258 seconds]
<Radar>
Seems that's the way the JS community is trending these days. Dunno why you'd want to write in a fancy bleeding-edge language that not many developers are using other than the "oooh new shiny" factor
gbgdev has joined #ruby
pwnd_nsfw has joined #ruby
arescorpio has joined #ruby
cschneid_ has quit [Remote host closed the connection]
Azure has quit [Read error: Connection reset by peer]
<havenwood>
montanonic: It's called ElixirScript
<montanonic>
Radar: Yeah my default is ES6. The problem with opal right now is it seems like *no one* is using it, period. I wanted to understand why, if that's the case.
<havenwood>
montanonic: Though Elm seems to be rather popular in the Phoenix community.
<montanonic>
havenwood: ah, didn't know that
<montanonic>
Yeah, I actually started Elm -> Elixir
<montanonic>
But now am working on a large Rails app
<havenwood>
montanonic: Coffeescript is the most popular, being the default.