havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.2, 2.3.5 & 2.2.8: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
jrabe has quit []
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lagweezle is now known as lagweezle_away
<Algebr> yea, downloading those now
<havenwood> Algebr: If you use chocolatey, just: choco install ruby ruby2.devkit
Guest39719 has quit [Ping timeout: 248 seconds]
<Algebr> and then I'll be able to also write ruby C extensions as well?
bruno- has joined #ruby
jrabe has joined #ruby
blznblzn2 has quit [Remote host closed the connection]
Slinky_Pete has joined #ruby
marxarelli|afk is now known as marxarelli
nofxxx has joined #ruby
imode has joined #ruby
<imode> how do I remove a gem with its dependencies?
Slinky_Pete has quit [Ping timeout: 246 seconds]
<Radar> imode: you can't. You have to remove each gem individually.
<Radar> Don't know why you'd want to do that. The dependency may be a dependency of another gem.
<Radar> bbl
Slinky_Pete has joined #ruby
<matthewd> There's `bundle clean`, but that has limited use cases
<imode> Radar: it's not, because I didn't realize heroku's gem CLI was deprecated. it pulled its own dependencies.
<imode> which I don't want.
jackjackdripper has quit [Quit: Leaving.]
cagomez has quit [Remote host closed the connection]
<imode> guess I'll just have to be careful. it's all clean now, but that's mildly infuriating.
cagomez has joined #ruby
zachk has quit [Quit: have a great evening]
cagomez has quit [Remote host closed the connection]
nunchuck has quit [Ping timeout: 246 seconds]
gix has quit [Quit: Client exiting]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
<havenwood> imode: Your gems have dependencies that have dependencies.
<havenwood> imode: With how RubyGems currently works it's not possible to tell which can be removed without borking other things.
<imode> that's kind of irritating, considering my system package manager can do that. :P
<havenwood> imode: Which package manager?
<imode> pacman.
<imode> and apt.
<matthewd> To be fair, most system package managers only grew that ability relatively recently
<imode> define recently.
<havenwood> yeah, those and others have the concept of explicitly-installed versus installed as a dependency.
goyox86_ has joined #ruby
<havenwood> imode: it's something RubyGems could add but it doesn't exist
<matthewd> Less than half of lifetime
<havenwood> imode: most language package managers don't have the feature
<imode> arch has had it pretty much since the beginning.
<imode> havenwood: pip does from python, npm does...
<imode> I think. don't quote me on npm.
<matthewd> imode: Patches welcome
<imode> ;)
<havenwood> imode: pip?!?
<imode> yup.
<havenwood> imode: hah, well...
<havenwood> that's hardly something to admire
lagweezle_away is now known as lagweezle
<havenwood> pip doesn't let you update installed packages
<imode> heh, yeah. it's kind of a disaster an- yeaaaah.
<imode> wait, no it does.
<havenwood> it has very little going on, so it's easy to uninstall on a package level
<imode> when was the last time you used pip?
<havenwood> a year ago
gix has joined #ruby
<havenwood> it didn't have a way to update all installed packages
<imode> what version, because I just recently updated all my packages.
<imode> o_O
<havenwood> does it now? it hasn't for as long as i can remember
<imode> yeah.
<havenwood> maybe 7 years after the PR they finally merged it?
<havenwood> in any case, pip is... not groundbreaking
<imode> it certainly isn't.
<imode> python in general is kind of ugly in terms of execution.
<havenwood> imode: It's an interesting idea to add to RubyGems. I think the first step would be differentiating explicitly-installed gems somehow.
<imode> yeah, you'd have to store some kind of internal flag.
<imode> perhaps different directories.
<havenwood> different directories seem problematic because many would be in both categories
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> odd to have dups
<havenwood> implicitly installed before explicitly installed, etc
<imode> yeah.
<imode> but that could be solved by a simple mv.
<havenwood> maybe just a list of those explicitly installed
Slinky_Pete has quit [Remote host closed the connection]
Slinky_Pete has joined #ruby
<havenwood> also note many of the package managers can show packages without dependants but not those that have been manually installed
<havenwood> there's not always a difference but there can be
Slinky_Pete has quit [Ping timeout: 240 seconds]
<havenwood> i guess you could do a RubyGems uninstall feature that uninstalled packages that are and the dependency tree of something that lost a dependant in the unintsall. It's not straightforward.
<havenwood> **lost a dependent and have no other dependants
imode has quit [Ping timeout: 240 seconds]
Slinky_Pete has joined #ruby
<Radar> Weird to be talking about Heroku CLI like it's a Rubygem. I thought the latest version was a node.js package.
<havenwood> Radar: I think it's even mostly Go, unsure. The API parts oddly seem to still be Node.js.
<havenwood> They seem to be working on it quite a bit, because there are frequent releases.
<matthewd> Radar: > I didn't realize heroku's gem CLI was deprecated
imode has joined #ruby
<Radar> ah right
<havenwood> deja vu
Slinky_Pete has quit [Ping timeout: 240 seconds]
kn-928 has joined #ruby
mochiyoda_ has quit [Remote host closed the connection]
spt0 has quit [Ping timeout: 240 seconds]
mochiyoda_ has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
marr has quit [Ping timeout: 240 seconds]
mson has quit [Quit: Connection closed for inactivity]
mson has joined #ruby
uneeb has joined #ruby
Xiti has quit [Quit: Xiti]
elsevero has quit [Quit: elsevero]
uneeb has quit [Remote host closed the connection]
plujon has joined #ruby
charliesome has joined #ruby
arescorpio has joined #ruby
balazs_ has joined #ruby
elsevero has joined #ruby
Xiti has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
Asher has joined #ruby
abrcdbr_ has joined #ruby
irated has quit [Ping timeout: 240 seconds]
plujon has quit [Remote host closed the connection]
abrcdbr_ has quit [Client Quit]
mochiyoda_ has quit [Quit: Konversation terminated!]
ycyclist has quit [Ping timeout: 260 seconds]
abrcdbr has quit [Ping timeout: 240 seconds]
benlieb has quit [Quit: benlieb]
chouhoulis has joined #ruby
t-recx has quit [Quit: t-recx]
elsevero has quit [Quit: elsevero]
mim1k has joined #ruby
_aeris_ has quit [Ping timeout: 248 seconds]
marxarelli is now known as marxarelli|afk
mim1k has quit [Ping timeout: 240 seconds]
gizmore has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
Guest39719 has joined #ruby
gizmore|2 has quit [Ping timeout: 240 seconds]
bronson has quit [Remote host closed the connection]
cahoots has quit [Ping timeout: 248 seconds]
Guest39719 has quit [Ping timeout: 240 seconds]
al2o3-cr has joined #ruby
FastJack has quit [Ping timeout: 258 seconds]
cagomez has joined #ruby
_aeris_ has joined #ruby
FastJack has joined #ruby
irated has joined #ruby
guardianx has joined #ruby
Slinky_Pete has joined #ruby
goyox86_ has quit [Ping timeout: 248 seconds]
benlieb has joined #ruby
elsevero has joined #ruby
cagomez has quit [Ping timeout: 248 seconds]
Slinky_Pete has quit [Ping timeout: 248 seconds]
Algebr has quit [Ping timeout: 240 seconds]
enterprisey has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 260 seconds]
d^sh has quit [Ping timeout: 248 seconds]
benlieb has quit [Quit: benlieb]
d^sh has joined #ruby
cahoots has joined #ruby
kies has quit [Ping timeout: 260 seconds]
cahoots has quit [Quit: leaving]
xuanrui has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
hxegon has joined #ruby
hxegon has quit [Client Quit]
marcux has quit [Quit: leaving]
marcux has joined #ruby
marcux has quit [Client Quit]
marcux has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
imode has quit [Ping timeout: 252 seconds]
marcux has quit [Quit: leaving]
marcux has joined #ruby
Mon_Ouie has joined #ruby
tvw has joined #ruby
marcux has quit [Client Quit]
maryo has joined #ruby
haylon has quit [Changing host]
haylon has joined #ruby
kn-928 has quit [Ping timeout: 240 seconds]
gnufied has quit [Quit: Leaving]
nunchuck has joined #ruby
imode has joined #ruby
spt0 has joined #ruby
hahuang65 has joined #ruby
marcux has joined #ruby
Guest39719 has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Slinky_Pete has joined #ruby
Guest39719 has quit [Ping timeout: 240 seconds]
<havenwood> What's a good name for an auto-scheduled fiber? There's got to be something better than "Thriber"...
nicesignal has quit [Quit: WeeChat 1.4]
<havenwood> Routine?
Slinky_Pete has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
<Salmonidae> AFiber.
<Salmonidae> but reads too much like 'A Fiber'.
<havenwood> AutoFiber seems reasonable.
<Salmonidae> yeah. Thriber seems okay once you put it together.
<havenwood> AsyncFiber
<Salmonidae> Kind of thread, kind of fiber.
nicesignal has joined #ruby
<Salmonidae> i dunno if the emphasis on thread is worth it. not really up to date with the issue. but sounds like a Fiber that schedules itself autoatically. that's not really very similar to a thread.
<Salmonidae> it seems to be the only property they share.
maryo has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
harai_ has quit [Ping timeout: 246 seconds]
<Salmonidae> ah
<Salmonidae> sounds more complicated than just that
krz has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
<Salmonidae> GreenThread
<Salmonidae> i like that
<vee_> havenwood: yielder??
Guest39719 has joined #ruby
<Salmonidae> `thriber: green threads implemented using fibers`. i think commit message says a lot.
dviola has quit [Quit: WeeChat 1.9]
Guest39719 has quit [Ping timeout: 248 seconds]
guardianx has quit []
VladGh has quit [Ping timeout: 246 seconds]
<vee_> or just `yields`
<vee_> Salmonidae, I like thriber too, it's catchy. thought about `fibert` but a quick search yields it's a family name :)
hfp_work has quit [Quit: bye]
<Salmonidae> `Yields` as class name is bit strange. i guess. i think Thriber is fine too. Fred might be a bit too much. but i'd accept FredFlinstone.
<vee_> :)
<Salmonidae> luckily i have no say in these matters
<vee_> Me neither as you already know, saw someone asking for suggestion and thought I'd contribute too!
<vee_> I like Yielder and Thriber should I be an user of either!
<Salmonidae> ah no. i just meant FredFlinstone would be too weird.
<Salmonidae> Same. should be cool
<vee_> Forgive my ignorace, I don't really know where you got FredFlinstone from??
<Salmonidae> ah
mson has quit [Quit: Connection closed for inactivity]
VladGh has joined #ruby
<vee_> Sth new to me, thanks for sharing. We're diverting off topic
cadillac_ has quit [Quit: I quit]
<Salmonidae> hm. character-wise they don't sound similar.
<vee_> No they don't for sure.
<Salmonidae> yeah. not really a family guy fan. the depth isn't there.
<vee_> I'm not a fan either but some episodes to make me lol. Trying to practice equal distribution for laughter, lol.
harai_ has joined #ruby
<Salmonidae> you're off balance
<vee_> Forgive me I think havenwood might think we're sidetracking.
<Salmonidae> if he does he'll speak, i'm sure
<vee_> :) I'm pretty new here. Hope that doesn't bother you.
cagomez has joined #ruby
<Salmonidae> nope. doesn't bother me.
mim1k has joined #ruby
chouhoulis has quit [Remote host closed the connection]
arescorpio has quit [Quit: Leaving.]
cagomez has quit [Ping timeout: 252 seconds]
mim1k has quit [Ping timeout: 240 seconds]
Slinky_Pete has joined #ruby
dviola has joined #ruby
PorcoRex has joined #ruby
<PorcoRex> Good night.
<PorcoRex> Or morning.
hfp_work has joined #ruby
Slinky_Pete has quit [Ping timeout: 240 seconds]
<tamouse__> hello, all
<PorcoRex> tamouse__, night.
bronson has joined #ruby
gix has quit [Ping timeout: 248 seconds]
<vee_> Salmonidae: good talking. watching Fred and laughing :) Thanks for sharing.
bronson has quit [Ping timeout: 240 seconds]
gix has joined #ruby
harfangk has joined #ruby
kn-928 has joined #ruby
kn-928 has quit [Ping timeout: 240 seconds]
mson has joined #ruby
xuanrui has quit [Ping timeout: 240 seconds]
claw has quit [Ping timeout: 252 seconds]
milardovich has quit [Remote host closed the connection]
claw has joined #ruby
jenrzzz has joined #ruby
<raynold> ahh it's a wonderful day
al2o3-cr has quit [Ping timeout: 248 seconds]
tvw has quit [Ping timeout: 252 seconds]
Guest39719 has joined #ruby
Guest39719 has quit [Ping timeout: 260 seconds]
mim1k has joined #ruby
Slinky_Pete has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
Slinky_Pete has quit [Ping timeout: 240 seconds]
hahuang65 has joined #ruby
pwnd_nsfw` is now known as pwnd_nsfw
brw_ has joined #ruby
dn`_ has joined #ruby
jidar_ has joined #ruby
Nilium_ has joined #ruby
Nilium has quit [Ping timeout: 264 seconds]
zenspider has quit [Ping timeout: 264 seconds]
justinmrkva has quit [Ping timeout: 264 seconds]
x0f has quit [Ping timeout: 264 seconds]
adam12 has quit [Ping timeout: 264 seconds]
Nilium_ is now known as Nilium
x0f has joined #ruby
brw has quit [Ping timeout: 264 seconds]
mmasaki has quit [Ping timeout: 264 seconds]
priodev has quit [Ping timeout: 264 seconds]
brixen has quit [Ping timeout: 264 seconds]
levifig has quit [Ping timeout: 264 seconds]
bmn has quit [Ping timeout: 264 seconds]
JoshL has quit [Ping timeout: 264 seconds]
marens_ has joined #ruby
marens_ has quit [Changing host]
marens_ has joined #ruby
utkarsh_ has joined #ruby
ikopico has quit [Ping timeout: 264 seconds]
matti has quit [Ping timeout: 264 seconds]
jidar has quit [Ping timeout: 264 seconds]
bodie_ has quit [Ping timeout: 264 seconds]
j416 has quit [Ping timeout: 264 seconds]
Morrolan has quit [Ping timeout: 264 seconds]
syndikate has quit [Ping timeout: 264 seconds]
Didac has quit [Ping timeout: 264 seconds]
jidar_ is now known as jidar
nowhereman has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
thinkpad has quit [Ping timeout: 264 seconds]
armyriad has quit [Ping timeout: 264 seconds]
johnny56_ has quit [Ping timeout: 264 seconds]
nowhere_man has quit [Ping timeout: 264 seconds]
baweaver has quit [Ping timeout: 264 seconds]
creeg has quit [Ping timeout: 264 seconds]
ltd has quit [Ping timeout: 264 seconds]
dn` has quit [Ping timeout: 264 seconds]
linduxed has quit [Ping timeout: 264 seconds]
seitensei has quit [Ping timeout: 264 seconds]
valkyr2e has quit [Ping timeout: 264 seconds]
yuppie has quit [Ping timeout: 264 seconds]
iNs has quit [Ping timeout: 264 seconds]
dn`_ is now known as dn`
armyriad has joined #ruby
marens has quit [Ping timeout: 264 seconds]
surrounder has quit [Ping timeout: 264 seconds]
utkarsh has quit [Ping timeout: 264 seconds]
creeg has joined #ruby
levifig has joined #ruby
matti has joined #ruby
matti has joined #ruby
bronson has joined #ruby
bokayio has quit [Ping timeout: 240 seconds]
zenspider has joined #ruby
mgorbach has quit [Ping timeout: 260 seconds]
CBebop has quit [Ping timeout: 260 seconds]
rcs has quit [Ping timeout: 260 seconds]
d^sh has quit [Ping timeout: 240 seconds]
mtkd has quit [Ping timeout: 260 seconds]
Nilium has quit [Ping timeout: 260 seconds]
bokayio has joined #ruby
d^sh has joined #ruby
Didac has joined #ruby
baweaver has joined #ruby
baweaver has joined #ruby
Nilium has joined #ruby
thinkpad has joined #ruby
iNs has joined #ruby
mtkd has joined #ruby
mgorbach has joined #ruby
rcs has joined #ruby
syndikate has joined #ruby
adam_ has joined #ruby
justinmrkva has joined #ruby
valkyr2e has joined #ruby
CBebop has joined #ruby
seitensei has joined #ruby
mmasaki has joined #ruby
j416 has joined #ruby
yuppie has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
priodev has joined #ruby
brixen has joined #ruby
Morrolan has joined #ruby
bmn has joined #ruby
ltd has joined #ruby
bodie_ has joined #ruby
ikopico has joined #ruby
JoshL has joined #ruby
marcux has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
spt0 has quit [Ping timeout: 240 seconds]
Bhootrk_ has joined #ruby
Bhootrk_ has quit [Max SendQ exceeded]
surrounder has joined #ruby
linduxed has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
harai_ has quit [Ping timeout: 248 seconds]
harai_ has joined #ruby
ShalokShalom has joined #ruby
ShalokShalom has quit [Read error: Connection reset by peer]
oncall-pokemon has joined #ruby
bronson has joined #ruby
balazs_ has quit [Ping timeout: 240 seconds]
thinkpad has quit [Quit: lawl]
cdg has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
thinkpad has joined #ruby
Guest39719 has joined #ruby
ahrs has quit [Remote host closed the connection]
xuanrui has joined #ruby
ahrs has joined #ruby
mkali has joined #ruby
Guest39719 has quit [Ping timeout: 240 seconds]
krz has quit [Ping timeout: 248 seconds]
johnny56_ has joined #ruby
cagomez has joined #ruby
harfangk has quit [Ping timeout: 240 seconds]
ShalokShalom has joined #ruby
cagomez has quit [Ping timeout: 255 seconds]
Slinky_Pete has joined #ruby
Guest39719 has joined #ruby
figuresofstick has quit [Ping timeout: 240 seconds]
figuresofstick has joined #ruby
Guest39719 has quit [Ping timeout: 240 seconds]
spt0 has joined #ruby
kn-928 has joined #ruby
dviola has quit [Quit: WeeChat 1.9]
kn-928 has quit [Ping timeout: 260 seconds]
Slinky_Pete has quit [Remote host closed the connection]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
millerti has quit [Ping timeout: 248 seconds]
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mson has quit [Quit: Connection closed for inactivity]
cdg has joined #ruby
nofxx_ has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
nofxxx has quit [Ping timeout: 248 seconds]
sajinmp has joined #ruby
AnoHito has quit [Read error: Connection reset by peer]
harai_ has quit [Ping timeout: 240 seconds]
SuperLag has quit [Remote host closed the connection]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
SuperLag has joined #ruby
AnoHito has joined #ruby
enterprisey has joined #ruby
milardovich has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
bronson has quit [Remote host closed the connection]
hahuang65 has joined #ruby
govg has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
nicolai86 has quit [Remote host closed the connection]
Guest39719 has joined #ruby
Bock has joined #ruby
nicolai86 has joined #ruby
Guest39719 has quit [Ping timeout: 240 seconds]
Slinky_Pete has joined #ruby
PorcoRex has quit [Quit: Leaving]
krz has joined #ruby
Slinky_Pete has quit [Ping timeout: 264 seconds]
volix has quit [Ping timeout: 255 seconds]
harfangk has joined #ruby
rippa has joined #ruby
claudiuinberlin has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
Guest39719 has joined #ruby
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krz has quit [Ping timeout: 248 seconds]
Guest39719 has quit [Ping timeout: 240 seconds]
phaul has joined #ruby
sajinmp has quit [Ping timeout: 240 seconds]
mtkd has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
oncall-pokemon has quit [Quit: Connection closed for inactivity]
banisterfiend has joined #ruby
ledestin has joined #ruby
selim has quit [Ping timeout: 252 seconds]
ledestin has quit [Client Quit]
selim has joined #ruby
krz has joined #ruby
enterprisey has quit [Remote host closed the connection]
krz has quit [Ping timeout: 255 seconds]
_whitelogger has joined #ruby
ledestin has joined #ruby
ledestin has quit [Client Quit]
Dimik has quit [Ping timeout: 240 seconds]
mkali has quit [Quit: mkali]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has joined #ruby
cdg has joined #ruby
kn-928 has joined #ruby
mkali has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
cagomez has quit [Ping timeout: 246 seconds]
kn-928 has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
harai_ has joined #ruby
konsolebox has quit [Ping timeout: 248 seconds]
claudiuinberlin has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
Guest39719 has joined #ruby
oleo has quit [Quit: Leaving]
ledestin has joined #ruby
Guest39719 has quit [Ping timeout: 264 seconds]
milardovich has joined #ruby
konsolebox has joined #ruby
ledestin has quit [Ping timeout: 240 seconds]
ArtCorvelay has joined #ruby
r7c has joined #ruby
milardovich has quit [Ping timeout: 264 seconds]
teatime has joined #ruby
<teatime> hmm... these aren't equivalent, are they? (10 - (x % 10)) % 10 and 10 - x % 10 % 10
<teatime> I would like to remove redundant parens from the former, if there are any.
krz has joined #ruby
cdg has joined #ruby
cdg has quit [Read error: Connection reset by peer]
Guest39719 has joined #ruby
cdg has joined #ruby
oleo has joined #ruby
<teatime> ah, k.. 10 - (x % 10) % 10 <-- seems to be what I want
<matthewd> teatime: You can drop the inner parens, but you can also just `-x % 10`
<teatime> oh, nice, perfect, thanks. that was bugging me :)
<teatime> that makes my actual code, then:
<teatime> -digits.map.with_index{ |d,i| (i%2==0) ? d : d*3 }.reduce(:+) % 10
cdg has quit [Ping timeout: 246 seconds]
<teatime> that leading unary - would be easy for a reader to miss, but not worth changing it to -( )
Guest39719 has quit [Ping timeout: 260 seconds]
imode has quit [Ping timeout: 252 seconds]
<teatime> hrm, could make it: -1 * digits…
Silthias has joined #ruby
<matthewd> You could also put it inside the map block
Silthias1 has quit [Read error: Connection reset by peer]
mostlybadfly has joined #ruby
<matthewd> z = -3; digits.map {|d| d * z ^= 2 }.reduce(:+) % 10
<matthewd> .. don't actually do that ;)
<teatime> haha :)
marr has joined #ruby
bronson has joined #ruby
AlexRussia has quit [Ping timeout: 246 seconds]
hahuang65 has joined #ruby
ledestin has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
hahuang65 has quit [Ping timeout: 240 seconds]
cabotto has joined #ruby
tHurst0n has joined #ruby
mkali has quit [Quit: mkali]
mkali has joined #ruby
sepp2k has joined #ruby
jinie has quit [Ping timeout: 240 seconds]
jinie has joined #ruby
dionysus69 has joined #ruby
jenrzzz has joined #ruby
mkali has quit [Quit: mkali]
harfangk has quit [Ping timeout: 264 seconds]
nofxx_ has quit []
belmoussaoui_ has quit [Read error: Connection reset by peer]
krz has quit [Read error: Connection reset by peer]
krz has joined #ruby
belmoussaoui_ has joined #ruby
belmoussaoui_ has quit [Client Quit]
belmoussaoui has joined #ruby
Guest39719 has joined #ruby
Guest39719 has quit [Ping timeout: 248 seconds]
Slinky_Pete has joined #ruby
cdg has joined #ruby
Slinky_Pete has quit [Ping timeout: 240 seconds]
tHurst0n has quit [Quit: Leaving]
guille-moe has joined #ruby
bronson has joined #ruby
f32 has quit [Quit: ChatZilla 0.9.93 [Firefox 55.0.2/20170817115854]]
elsevero has quit [Quit: elsevero]
cdg has quit [Ping timeout: 246 seconds]
uZiel has joined #ruby
lxsameer has joined #ruby
ArtCorvelay has quit [Quit: WeeChat 1.9]
jenrzzz has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 264 seconds]
uZiel has quit [Ping timeout: 248 seconds]
milardovich has joined #ruby
Guest39719 has joined #ruby
milardovich has quit [Ping timeout: 264 seconds]
Guest39719 has quit [Ping timeout: 246 seconds]
high_fiver has joined #ruby
kn-928 has joined #ruby
t-recx has joined #ruby
_p0p0pr37_ has joined #ruby
kn-928 has quit [Ping timeout: 246 seconds]
_p0p0pr37 has quit [Ping timeout: 248 seconds]
_p0p0pr37_ is now known as _p0p0pr37
_whitelogger has joined #ruby
cagomez has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
cagomez has quit [Ping timeout: 255 seconds]
uZiel has joined #ruby
wald0 has joined #ruby
high_fiver has quit [Quit: Leaving]
krz has quit [Read error: Connection reset by peer]
krz has joined #ruby
uZiel has quit [Remote host closed the connection]
GhostK has joined #ruby
cabotto has quit []
uZiel has joined #ruby
r7c has quit [Quit: Leaving]
GhostK has quit [Quit: = ""]
uZiel has quit [Ping timeout: 248 seconds]
Slinky_Pete has joined #ruby
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
GhostK has joined #ruby
guille-moe has quit [Ping timeout: 264 seconds]
cagomez has joined #ruby
Slinky_Pete has quit [Ping timeout: 240 seconds]
cagomez has quit [Ping timeout: 264 seconds]
hahuang65 has joined #ruby
GhostK has quit [Quit: WeeChat 1.9]
Hackbinary has joined #ruby
hahuang65 has quit [Ping timeout: 248 seconds]
GhostK has joined #ruby
ShekharReddy has joined #ruby
quobo has joined #ruby
belmoussaoui has quit [Ping timeout: 264 seconds]
belmoussaoui has joined #ruby
chouhoulis has joined #ruby
tHurst0n has joined #ruby
guille-moe has joined #ruby
michael4 has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
krz has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
Xeago has joined #ruby
Guest39719 has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
krz has joined #ruby
Guest39719 has quit [Ping timeout: 264 seconds]
A124 has quit [Ping timeout: 248 seconds]
Slinky_Pete has joined #ruby
gix has quit [Ping timeout: 246 seconds]
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Slinky_Pete has quit [Ping timeout: 240 seconds]
aurelien has quit [Quit: ERC (IRC client for Emacs 25.2.1)]
maesitos has joined #ruby
gix has joined #ruby
guille-moe has quit [Ping timeout: 248 seconds]
<maesitos> Hello I'm at the 14th chapter of The grounded Rubyist and there's something I don't understand. Could anybody take a look at this example and let me know why one works while the other doesn't? https://pastebin.com/raw/mh16Kspj
<ruby[bot]> maesitos: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
aurelien has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
milardovich has joined #ruby
bronson has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 248 seconds]
sepp2k has quit [Remote host closed the connection]
cdg has joined #ruby
A124 has joined #ruby
al2o3-cr has joined #ruby
mistnim has joined #ruby
<mistnim> how do I run a system command so that if my ruby script exits it will continue to run?
kn-928 has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
<Salmonidae> fork. but you will collect zombies.
torknuck has joined #ruby
<Papierkorb> mistnim: There's the `daemons` gem. But instead, consider using a daemon process manager, like systemd (which you probably already use on your linux box), instead of rolling this yourself.
skweek has joined #ruby
<Salmonidae> probably you need to rethink what you're doing. what Papierkorb said sounds right.
<Papierkorb> mistnim: You get monitoring, easy access, permission management, and much more for free this way. On top of that, this knowledge isn't bound to ruby, you can use it with anything you like :)
<Salmonidae> but not systemd. im not sure. sounds overkill. maybe a ruby daemon that can spawn processes for you. script that can exit be its client
<Papierkorb> Systemd is perfectly fine if you already use it anyway. It's the de facto standard
<mistnim> Salmonidae, what do you mean collect zombies? Even if the forked process ends?
<teatime> (pid = fork) ? Process.detach(pid) : exec("foo") <-- this seems concise and correct?
<Salmonidae> but doesn't Process.detach just spawn a thread to collect its status?
kn-928 has quit [Ping timeout: 248 seconds]
<teatime> Salmonidae: looks like.
<Salmonidae> im not sure if that's enough if you don't Thread#join too at exit
vondruch has quit [Ping timeout: 240 seconds]
maesitos has quit []
<teatime> Salmonidae: I think it is, that seems to be the purpose of it. It can hold the exit value in Ruby waiting for you to maybe eventually join the thread, but it looks like it goes ahead and waitpid's your child immediately so that it can leave the process table upon termination.
A124 has quit [Ping timeout: 248 seconds]
<Salmonidae> im not sure if that is what mistnim wants or not. Thread#join implies waiting.
<Salmonidae> but good to know
<teatime> mistnim: also, if the parent script is short-lived / expected to terminate, the children will be inherited by init (PID 1), and it will waitpid/clear them. The children can only be zombies while your parent script is running.
Guest39719 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Salmonidae> but it is not a good practice or habit to not collect status.
<teatime> Salmonidae: If you don't care about the return value, just never join the thread, right? that's what I gathered from the docs. I will happily defer to your mad Ruby skillz, though, for I am a n00b.
ShalokShalom_ has joined #ruby
<Salmonidae> i am saying that. the question is: "how do I run a system command so that if my ruby script exits it will continue to run?". if you Thread#join, you don't exit.
<teatime> yeah, I was just wondering if that's what you were getting at.
<Salmonidae> ok
mistnim has quit [Ping timeout: 260 seconds]
ShalokShalom has quit [Ping timeout: 264 seconds]
Guest39719 has quit [Ping timeout: 240 seconds]
torknuck has quit [Quit: Leaving]
mkali has joined #ruby
__Yiota has joined #ruby
<teatime> Salmonidae: I tried it out; seems to work (ruby script can exit immediately, if it does not exit subprocess does not become defunct, if it does exit subprocess is inherited by init)
al2o3-cr has quit [Ping timeout: 264 seconds]
<teatime> maybe I misunderstood tho
<Salmonidae> dunno if it is the approach i'd take. i would rather another ruby process taking responsibility of "init". but for this use case it's most likely fine
ShalokShalom_ is now known as ShalokShalom
<Salmonidae> another process allows you query state of spawned processes, and so on. you could use `Process.detach` there too, then just the threads.
<Salmonidae> collect the threads
<teatime> I do agree that if what you need a process supervisor, you should probably use a good, existing one, esp. since there's already one running on the box (systemd)
<teatime> s/need a/need is a/
michael1 has joined #ruby
<Salmonidae> yeah. i think ruby has some too. 'god'. 'eye'.
A124 has joined #ruby
jamesaxl has joined #ruby
iMadper has joined #ruby
mkali has quit [Quit: mkali]
<Salmonidae> dunno if they can spawn via IPC though. i think you describe processes first and then it manages them. so not quite the same.
michael4 has quit [Ping timeout: 240 seconds]
Guest39719 has joined #ruby
uZiel has joined #ruby
dionysus69 has joined #ruby
imode has joined #ruby
Guest39719 has quit [Ping timeout: 248 seconds]
cagomez has joined #ruby
mkali has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
A124 has quit [Ping timeout: 264 seconds]
cagomez has quit [Ping timeout: 240 seconds]
hahuang65 has joined #ruby
armin has quit [Quit: WeeChat 1.6]
hahuang65 has quit [Ping timeout: 264 seconds]
krz has quit [Read error: Connection reset by peer]
samuel02 has joined #ruby
krz has joined #ruby
goyox86_ has joined #ruby
cschnei__ has quit [Remote host closed the connection]
cschneid has joined #ruby
ur5us has joined #ruby
mkali has quit [Ping timeout: 240 seconds]
__Yiota has joined #ruby
cschneid has quit [Ping timeout: 255 seconds]
goyox86_ has quit [Ping timeout: 248 seconds]
ur5us has quit [Ping timeout: 260 seconds]
skweek has quit [Ping timeout: 255 seconds]
A124 has joined #ruby
Guest63576 is now known as Tristan-Speccy
milardovich has joined #ruby
mkali has joined #ruby
ledestin has quit [Ping timeout: 240 seconds]
Slinky_Pete has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
guardian has quit [Quit: Coyote finally caught me]
mkali_ has joined #ruby
guardian` has joined #ruby
GodFather has quit [Remote host closed the connection]
Slinky_Pete has quit [Ping timeout: 240 seconds]
belmoussaoui has quit [Read error: Connection reset by peer]
mkali has quit [Ping timeout: 240 seconds]
GodFather has joined #ruby
DipoleHourglass has quit [Quit: Connection closed for inactivity]
krz has quit [Read error: Connection reset by peer]
krz has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
psychicist__ has quit [Quit: Reconnecting]
psychicist__ has joined #ruby
mostlybadfly has joined #ruby
kn-928 has joined #ruby
elsevero has joined #ruby
mkali_ has quit [Remote host closed the connection]
mkali has joined #ruby
bronson has joined #ruby
pppktz has joined #ruby
pppktz has left #ruby [#ruby]
mkali has quit [Client Quit]
mkali has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
uZiel has joined #ruby
mustmodify has joined #ruby
<mustmodify> ping
<Salmonidae> pong
<mustmodify> thanks
<Salmonidae> np
Xeago has quit [Ping timeout: 246 seconds]
dionysus69 has quit [Ping timeout: 240 seconds]
Guest39719 has joined #ruby
Xeago has joined #ruby
kapil___ has joined #ruby
<mustmodify> I'm doing a presentation about Rails to a developer meetup. Hard to understand, but I've repeatedly had people ask me "What is Rails?" I thought I'd devote half my time to Ruby and half to Rails. I know a ton about Ruby. I love Ruby. But I'm having a hard time thinking of exactly how to express what I love about Ruby in small examples that will be digestable to non-Ruby devs. Obviously blocks are a big thing. The actual classes, unlike js, php etc. Classes
Guest39719 has quit [Ping timeout: 240 seconds]
<Salmonidae> Proc, exhibit closure-behaviour. dynamic method dispatch (method_missing). dynamic constant dispatch (const_missing/const_get). monkey patching. modify code at runtime. meta programming.
<teatime> mustmodify: perhaps some examples of tight-but-clear expressions/oneliners.. the kinds of things Perl does well, Ruby does also
<mustmodify> yeah, what would be a good, simple example of method missing that didn't make me seem like frankenstein?
<Salmonidae> not sure what else. oh. x = Object.new; def x.bar(); end; this method of programming as opposed to classical.
<mustmodify> I mean, I love method missing. But I worry people would be like, "You can't just do that... "
<Salmonidae> sure. i thought that too. all those features make ruby slow. so know your audience a little bit.
<mustmodify> good thoughts. Thanks.
<mustmodify> I think I can do about half an hour on that stuff. Makes me want to do a full presentation on Ruby. :)
<Salmonidae> cool, best of luck with it
mustmodify has left #ruby [#ruby]
DipoleHourglass has joined #ruby
Slinky_Pete has joined #ruby
rawste has joined #ruby
A124 has quit [Ping timeout: 248 seconds]
A124 has joined #ruby
Slinky_Pete has quit [Ping timeout: 248 seconds]
ascarter has joined #ruby
tHurst0n has quit [Quit: Leaving]
elsevero has quit [Quit: elsevero]
ascarter has quit [Read error: Connection reset by peer]
ascarter has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
wald0 has quit [Ping timeout: 264 seconds]
guardian` has quit [Quit: Coyote finally caught me]
nobitanobi has joined #ruby
jamesaxl has quit [Ping timeout: 260 seconds]
hahuang65 has joined #ruby
__Yiota has joined #ruby
mkali has quit [Read error: Connection reset by peer]
mkali has joined #ruby
hahuang65 has quit [Ping timeout: 248 seconds]
rameerez has joined #ruby
samuel02 has quit [Quit: Connection closed for inactivity]
nobitanobi has quit [Remote host closed the connection]
Guest39719 has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has joined #ruby
ascarter has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Slinky_Pete has joined #ruby
Guest39719 has quit [Ping timeout: 264 seconds]
milardovich has quit [Ping timeout: 246 seconds]
ascarter has quit [Ping timeout: 240 seconds]
JD2020X has joined #ruby
Slinky_Pete has quit [Ping timeout: 240 seconds]
ascarter has joined #ruby
JD2020X has quit [Client Quit]
skweek has joined #ruby
kn-928 has quit [Ping timeout: 240 seconds]
conta has joined #ruby
Guest39719 has joined #ruby
Guest39719 has quit [Ping timeout: 240 seconds]
quobo has quit [Quit: Connection closed for inactivity]
conta has quit [Quit: conta]
milardovich has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Remote host closed the connection]
milardovich has quit [Ping timeout: 248 seconds]
<vee_> mustmodify: where are you presenting?
<bougyman> hrm
<bougyman> anyone know why curl would work on a box but ruby (rest-client) gives SSL Verify Fail?
<bougyman> I didn't think I had to recompile ruby to get new certs.
mostlybadfly has quit [Quit: Connection closed for inactivity]
chouhoulis has joined #ruby
nahra has quit [Remote host closed the connection]
nahra has joined #ruby
chouhoulis has quit [Ping timeout: 255 seconds]
bronson has joined #ruby
Slinky_Pete has joined #ruby
yeticry_ has quit [Read error: Connection reset by peer]
yeticry has joined #ruby
nahra has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 264 seconds]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
krz has quit [Ping timeout: 252 seconds]
jackjackdripper has joined #ruby
Puffball has quit [Remote host closed the connection]
Slinky_Pete has quit [Remote host closed the connection]
Slinky_Pete has joined #ruby
uZiel has quit [Remote host closed the connection]
Slinky_Pete has quit [Ping timeout: 240 seconds]
rawste has quit [Ping timeout: 264 seconds]
uZiel has joined #ruby
dviola has joined #ruby
kn-928 has joined #ruby
kahra has joined #ruby
Guest39719 has joined #ruby
Puffball has joined #ruby
xuanrui has quit [Quit: Leaving]
kahra has quit [Quit: WeeChat 1.9]
kahra has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
Emmanuel_Chanel has joined #ruby
figures_ has joined #ruby
krz has joined #ruby
Guest39719 has quit [Ping timeout: 264 seconds]
imode has quit [Ping timeout: 264 seconds]
figuresofstick has quit [Ping timeout: 240 seconds]
kapil___ has quit [Quit: Connection closed for inactivity]
InfinityFye has joined #ruby
krz has quit [Quit: WeeChat 1.7]
bruno- has quit [Ping timeout: 246 seconds]
Guest39719 has joined #ruby
Slinky_Pete has joined #ruby
goyox86 has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
Guest39719 has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
Slinky_Pete has quit [Ping timeout: 260 seconds]
hahuang65 has joined #ruby
mkali has quit [Quit: mkali]
milardovich has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
conta has joined #ruby
michael1 is now known as RedNifre
milardovich has quit [Ping timeout: 240 seconds]
<RedNifre> bougyman I was to lazy to figure out what the problem is so I just did `curl ...` instead.
<bougyman> RedNifre: I had to rebuild ruby
<bougyman> doesn't make a lot of sense, but whatev
krz has joined #ruby
<havenwood> bougyman: probably needed to dynamically link against your new openssl, and you do need to rebuild for that
<bougyman> yep
<bougyman> that's my thought.
mistnim has joined #ruby
<bougyman> but I figured I would get an error other than invalid cert, for that.
<bougyman> no worries.
<havenwood> mm
<bougyman> fixed is fixed.
kahra has quit [Quit: WeeChat 1.9]
mslem has joined #ruby
zeitchef has joined #ruby
theunraveler has joined #ruby
zeitchef has quit [Quit: leaving]
nertzy2 has joined #ruby
_sfiguser has joined #ruby
zeitchef has joined #ruby
nertzy has quit [Ping timeout: 260 seconds]
milardovich has joined #ruby
oleo has quit [Quit: Leaving]
Guest39719 has joined #ruby
funkytwig has joined #ruby
chalkmonster has joined #ruby
oleo has joined #ruby
zeitchef has quit [Quit: Leaving]
wald0 has joined #ruby
ragnar has joined #ruby
Guest39719 has quit [Ping timeout: 246 seconds]
davidrak has joined #ruby
ragnar is now known as kille
bronson has joined #ruby
Slinky_Pete has joined #ruby
wald0 has quit [Ping timeout: 240 seconds]
mslem has quit [Read error: Connection reset by peer]
RedNifre has quit [Ping timeout: 264 seconds]
roshanavand has quit [Ping timeout: 264 seconds]
mslem has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
mslem has quit [Read error: Connection reset by peer]
mslem has joined #ruby
mistnim has quit [Ping timeout: 248 seconds]
mistnim has joined #ruby
FrostCandy has joined #ruby
mtkd has joined #ruby
frozengeek has quit [Quit: frozengeek]
mistnim has quit [Remote host closed the connection]
mistnim has joined #ruby
theunraveler has quit []
RedNifre has joined #ruby
RedNifre is now known as Guest34316
bruno- has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
Guest39719 has joined #ruby
mistnim has quit [Ping timeout: 252 seconds]
Slinky_Pete has quit [Remote host closed the connection]
Slinky_Pete has joined #ruby
Guest39719 has quit [Ping timeout: 264 seconds]
Fire-Dragon-DoL has quit [Ping timeout: 264 seconds]
Fire-Dragon-DoL has joined #ruby
Slinky_Pete has quit [Ping timeout: 264 seconds]
Ltem has joined #ruby
Slinky_Pete has joined #ruby
oleo has quit [Quit: Leaving]
luiz_ has joined #ruby
luiz_ is now known as Guest51179
kille has quit [Ping timeout: 246 seconds]
maryo has joined #ruby
zachk has joined #ruby
<haylon> What should I read about to learn how to make a Rake task gem
goyox86 has quit [Read error: Connection reset by peer]
hahuang65 has joined #ruby
goyox86 has joined #ruby
houhoulis has joined #ruby
<haylon> I kind of undertand how to make a Thor task in a gem
goyox86 has quit [Read error: Connection reset by peer]
phinxy has joined #ruby
goyox86 has joined #ruby
phinxy has left #ruby [#ruby]
hahuang65 has quit [Ping timeout: 240 seconds]
mathys has joined #ruby
aurelien has quit [Ping timeout: 255 seconds]
goyox86 has quit [Read error: Connection reset by peer]
goyox86 has joined #ruby
davidrak has quit [Quit: leaving]
oleo has joined #ruby
nertzy3 has joined #ruby
dionysus69 has joined #ruby
nertzy2 has quit [Ping timeout: 255 seconds]
Guest51179 has quit [Ping timeout: 264 seconds]
goyox86 has quit [Ping timeout: 260 seconds]
aurelien has joined #ruby
goyox86 has joined #ruby
<havenwood> haylon: oldie but goodie: http://jasonseifer.com/2010/04/06/rake-tutorial
<haylon> Well, I want to make a gem that I could require into a Rakefile and have it populate tasks. I'm not sure exactly I need
mistnim has joined #ruby
TomyLobo has joined #ruby
oleo has quit [Quit: Leaving]
InfinityFye has quit [Quit: Leaving]
swills has quit [Quit: No Ping reply in 180 seconds.]
swills has joined #ruby
swills has joined #ruby
swills has quit [Changing host]
krz has quit [Ping timeout: 248 seconds]
mistnim has quit [Ping timeout: 264 seconds]
mistnim has joined #ruby
goyox86 has quit [Ping timeout: 240 seconds]
frozengeek has joined #ruby
goyox86 has joined #ruby
DTZUZU has quit [Quit: WeeChat 1.9]
goyox86 has quit [Read error: Connection reset by peer]
balazs_ has joined #ruby
Slinky_Pete has quit [Remote host closed the connection]
minimalism has quit [Ping timeout: 240 seconds]
DTZUZU has joined #ruby
_whitelogger has joined #ruby
Guest39719 has joined #ruby
Guest39719 has quit [Ping timeout: 248 seconds]
Guest34316 has quit [Ping timeout: 248 seconds]
enterprisey has joined #ruby
_aeris_ has quit [Ping timeout: 248 seconds]
_aeris_ has joined #ruby
griffindy has joined #ruby
nopolitica has quit [Ping timeout: 240 seconds]
moei has joined #ruby
Slinky_Pete has joined #ruby
marr has quit [Read error: Connection reset by peer]
hahuang65 has joined #ruby
mostlybadfly has joined #ruby
_sfiguser has quit [Ping timeout: 240 seconds]
marr has joined #ruby
Slinky_Pete has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Ping timeout: 240 seconds]
uZiel has quit [Remote host closed the connection]
Dimik has joined #ruby
uZiel has joined #ruby
bronson has joined #ruby
fusta has joined #ruby
fusta has quit [Client Quit]
fusta has joined #ruby
FrostCandy has quit []
bronson has quit [Ping timeout: 246 seconds]
milardovich has quit [Remote host closed the connection]
belmoussaoui has joined #ruby
mistnim has quit [Ping timeout: 240 seconds]
_sfiguser has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
Pisuke has joined #ruby
kies has joined #ruby
MyMind has quit [Ping timeout: 240 seconds]
oleo has joined #ruby
mtkd has joined #ruby
Didac has quit [Changing host]
Didac has joined #ruby
minimalism has joined #ruby
mathys has quit [Quit: Leaving]
sepp2k has joined #ruby
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
dionysus70 is now known as dionysus69
luiz has joined #ruby
luiz is now known as Guest96124
roshanavand has joined #ruby
nopolitica has joined #ruby
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
goyox86 has joined #ruby
milardovich has joined #ruby
goyox86 has quit [Client Quit]
rameerez has quit [Remote host closed the connection]
goyox86 has joined #ruby
Guest39719 has joined #ruby
Guest34316 has joined #ruby
Qommand0r has joined #ruby
justthisguy has joined #ruby
marcux has joined #ruby
Guest39719 has quit [Ping timeout: 260 seconds]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
mkali has joined #ruby
bovis has joined #ruby
bovis has left #ruby [#ruby]
milardovich has quit [Ping timeout: 255 seconds]
milardovich has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
sepp2k1 has joined #ruby
jinie has quit [Ping timeout: 255 seconds]
sepp2k has quit [Ping timeout: 264 seconds]
jinie has joined #ruby
ur5us has joined #ruby
devyn_ has quit [Changing host]
devyn_ has joined #ruby
devyn_ is now known as devyn
high_fiver has joined #ruby
funkytwig has quit [Ping timeout: 240 seconds]
nicolai86 has quit [Remote host closed the connection]
BSAlb has quit [Read error: Connection reset by peer]
planigan has quit [Ping timeout: 255 seconds]
nicolai86 has joined #ruby
high_fiver has quit [Ping timeout: 252 seconds]
MrBismuth has joined #ruby
Slinky_Pete has joined #ruby
hahuang65 has joined #ruby
Slinky_Pete has quit [Remote host closed the connection]
Slinky_Pete has joined #ruby
MrBusiness has quit [Ping timeout: 246 seconds]
mkali has quit [Quit: mkali]
planigan has joined #ruby
fusta has quit [Quit: Leaving]
houhoulis has quit [Remote host closed the connection]
Guest39719 has joined #ruby
* tamouse__ waves o/
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
bronson has joined #ruby
Guest39719 has quit [Ping timeout: 240 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
bronson has quit [Ping timeout: 240 seconds]
milardovich has quit [Remote host closed the connection]
maryo has quit [Ping timeout: 264 seconds]
PresidentBiscuit has joined #ruby
ResidentBiscuit has quit [Disconnected by services]
PresidentBiscuit is now known as ResidentBiscuit
ForeignBiscuit has joined #ruby
ForeignBiscuit has quit [Max SendQ exceeded]
ForeignBiscuit has joined #ruby
bruno- has joined #ruby
milardovich has joined #ruby
Trynemjoel has quit [Ping timeout: 276 seconds]
conta has quit [Quit: conta]
dionysus69 has quit [Ping timeout: 260 seconds]
Nicmavr has quit [Read error: Connection reset by peer]
kies has quit [Ping timeout: 264 seconds]
Guest39719 has joined #ruby
phaul has quit [Ping timeout: 264 seconds]
nahra has joined #ruby
Guest39719 has quit [Ping timeout: 260 seconds]
kies has joined #ruby
kn-928 has quit [Ping timeout: 264 seconds]
milardovich has quit [Remote host closed the connection]
marcux has quit [Ping timeout: 264 seconds]
Nicmavr has joined #ruby
Nicmavr is now known as Guest79597
<baweaver> tamouse__: ohai pontiki
<baweaver> Writing me some RSpec tutorials
milardovich has joined #ruby
<tamouse__> awesome!
<baweaver> Found a new metaphor for TDD: It's a maze. You start at the outside (acceptance tests) and work your way inwards (integration, unit), discovering the implementation as you go until you reach the center (the application)
eminencehc has joined #ruby
<baweaver> havenwood: what do you make of that one.
Guest79597 has quit [Changing host]
Guest79597 has joined #ruby
Guest79597 is now known as Kestrel-029
podman is now known as podman[USC]
_sfiguser has quit [Quit: Leaving]
Trynemjoel has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
guille-moe has joined #ruby
iszak has quit [Ping timeout: 240 seconds]
iszak has joined #ruby
iszak has quit [Changing host]
iszak has joined #ruby
goyox86 has quit [Read error: No route to host]
goyox86 has joined #ruby
ur5us has quit [Remote host closed the connection]
Guest34316 has quit [Ping timeout: 246 seconds]
<tamouse__> a maze that hasn't been constructed yet?
<Slinky_Pete> how do I stop test/unit from exiting after a flunk, shouldn't it notice the flunk and run the next line?
<Slinky_Pete> Ex. assert_equal(true, false, flunk) after it is exiting without running further tests
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
<baweaver> Probably hidden in some fail-fast option
<baweaver> I'd have to hunt it down, but fail fast is what it's called
<matthewd> The currently-running test will stop once it's failed an assertion
sepp2k1 has quit [Read error: Connection reset by peer]
<matthewd> Fail-fast affects whether other tests are still attempted
funnel has quit [Read error: Connection reset by peer]
<matthewd> But the line after a failing assertion will never be executed
<baweaver> tamouse__: More of that you start at the outside of your app (API / UI) and discover it as you get in deeper. You have to discover the outer API before you can know how you expect parts to integrate before you know how the individual units of it will work
<baweaver> If that makes any sense
<tamouse__> how would that happen if there's no app yet to discover?
<Slinky_Pete> Okay thank you.
enterprisey has quit [Read error: Connection reset by peer]
<baweaver> Then what are you even building?
<baweaver> I've noticed that the less I know what it is I'm trying to make the more of a mess I make in the interim
al2o3-cr has joined #ruby
<tamouse__> then maybe it ins't TDD
<baweaver> The outside would be something like I expect when I click this button it'll give me a cookie
<baweaver> As to how that happens, that's not quite relevant until I know what I expect it to do at a top level
<baweaver> It may be a bit more abstracted from it. More of rubber-ducking random musings at this point
Ltem has quit [Quit: Leaving]
kn-928 has joined #ruby
<tamouse__> i'm still a bit partial to the notion of levels, shells, and particls/atoms/molecules/organisms
<baweaver> Oh?
<baweaver> care to share tamouse__?
kn-928 has quit [Ping timeout: 248 seconds]
<tamouse__> well, levels, like we used to talk about in top-down design you start at the top and work your way down through levels, spreading out
<tamouse__> shells is similar, but is usually depicted as circles wrapping circles
<tamouse__> the lattermore organic, you have a organism to test, and then it's "organs", suborgans, the molecules, the atoms, and particls that make that all up
<tamouse__> it's still the same concept, outside-in, top-down, macxro-to-micro
<tamouse__> sorry, typing is sucky todauy, very laggy
Guest39719 has joined #ruby
<tamouse__> i don't think your maze metaphor is really different in kind
<baweaver> Not a problem
<baweaver> trying to refine some ideas. Teaching an entire RSpec course at work and the first segment is on Thursday.
<tamouse__> hmm, maybe a suggestion: use a few metaphors without really trying to explaikn them overmuch
<tamouse__> give people different things to hang the concepts on
Guest39719 has quit [Ping timeout: 240 seconds]
<baweaver> I'll probably just start with unit testing, getting guard running, and keeping functions simple
guille-moe has quit [Ping timeout: 246 seconds]
<baweaver> Then some on stubbing/mocking in base Ruby
<tamouse__> keep it very practical
<tamouse__> i like that
harai_ has quit [Ping timeout: 246 seconds]
<baweaver> But I may well intro with this is the broad overview
<baweaver> and here's the circle we're going to focus on today
<tamouse__> sounds good
<baweaver> The next few classes will work outside the circle
GhostK has quit [Remote host closed the connection]
<baweaver> You seen Westworld yet?
<baweaver> You know how tests are usually a pyramid diagram of Unit > Integration > Acceptance?
mslem has quit [Ping timeout: 240 seconds]
<tamouse__> i have not :/
<tamouse__> yes
<baweaver> Take that pyramid and extrude it into a circle with Acceptance > Integration > Unit > Application
<baweaver> Turns out that's what BDD is. Was looking at terms again to make sure
ur5us has quit [Remote host closed the connection]
<tamouse__> i think that lines up with teh notion of "shells". that's what i thought of when reading the cucumber book ages ago
<baweaver> I may make a test formatter later that reflects this appropriately
<baweaver> Like you're focusing on a given scenario and all its descendant functions
<baweaver> So you see all three groups of tests executing as children of the next level up
<baweaver> e.x. Scenario click button to get a cookie > button triggers dispenser & dispenser fetches cookie & factory gives cookie to dispenser > factory makes cookie....
govg has quit [Ping timeout: 255 seconds]
<baweaver> So you can see it like a tree where certain tests are natural descendants of their parents
<baweaver> Why it'd be useful: You broke a unit so it'll point to the broken scenario and red flag the entire path down to it, isolating where the break happens and what it got up the chain
<baweaver> Of course now I'm just rambling a bit :P
eminencehc has quit [Remote host closed the connection]
<tamouse__> well, ok, but that would be p.useful
<baweaver> I may screw around with some things and try and make it
<baweaver> It'd rearrange the heck out of testing though. Think pods for tests
<baweaver> pods being a frontend concept where the component, route, model, and other pieces of a single concept are in one folder, like User Menu
<tamouse__> like apotonick's trailblaizer concepts?
<baweaver> Wasn't that the Rails re-org thing?
<tamouse__> yup
<tamouse__> but the ... ahem ... concepts were good
<tamouse__> i'm using them in my react client
<baweaver> Yeah, basically that for tests
znz_jp has quit [Ping timeout: 246 seconds]
<baweaver> Then make the test runner reflect it as it goes down the tree of functionality
milardovich has quit [Remote host closed the connection]
Guest39719 has joined #ruby
milardovich has joined #ruby
bmurt has joined #ruby
<baweaver> Well off I go, be back in a bit
Guest39719 has quit [Ping timeout: 246 seconds]
Xeago has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GhostK has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ResidentBiscuit has quit []
funkytwig has joined #ruby
charliesome has joined #ruby
Slinky_Pete has quit [Remote host closed the connection]
Slinky_Pete has joined #ruby
bronson has joined #ruby
sleepee has joined #ruby
ShekharReddy has quit [Quit: Connection closed for inactivity]
Slinky_Pete has quit [Ping timeout: 240 seconds]
dviola has quit [Quit: WeeChat 1.9]
bronson has quit [Ping timeout: 264 seconds]
GhostK has quit [Ping timeout: 252 seconds]
GhostK has joined #ruby
root__ has joined #ruby
GhostK has quit [Ping timeout: 264 seconds]
root__ is now known as GhostK
Slinky_Pete has joined #ruby
Bob8989|3 has joined #ruby
Bob89893 has joined #ruby
Bob8989|3 has quit [Client Quit]
milardovich has quit [Remote host closed the connection]
TomyLobo has quit [Ping timeout: 240 seconds]
GhostK has quit [Ping timeout: 252 seconds]
Bob89893 has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Bob8989|2 has joined #ruby