havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.3, 2.5.5, 2.7.0-preview1: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
joshuacronemeyer has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
arahael2 has quit [Ping timeout: 246 seconds]
rbanffy has quit [Read error: Connection reset by peer]
rbanffy has joined #ruby
hutch has quit [Ping timeout: 258 seconds]
arahael2 has joined #ruby
houhoulis has joined #ruby
ua has quit [Ping timeout: 258 seconds]
rsh has quit [Ping timeout: 248 seconds]
houhoulis has quit [Ping timeout: 246 seconds]
arahael2 has quit [Ping timeout: 248 seconds]
arahael2 has joined #ruby
houhoulis has joined #ruby
teclator has quit [Quit: No Ping reply in 180 seconds.]
lele has quit [Quit: Coyote finally caught me]
lele has joined #ruby
houhoulis has quit [Ping timeout: 248 seconds]
arahael3 has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
lele has quit [Client Quit]
arahael2 has quit [Ping timeout: 258 seconds]
lele has joined #ruby
rsh has joined #ruby
gix has quit [Ping timeout: 268 seconds]
houhoulis has joined #ruby
mochiyoda has left #ruby ["Konversation terminated!"]
houhoulis has quit [Ping timeout: 258 seconds]
teclator has joined #ruby
lele has quit [Quit: Coyote finally caught me]
houhoulis has joined #ruby
lele has joined #ruby
jeremycw has joined #ruby
houhoulis has quit [Ping timeout: 248 seconds]
lele has quit [Quit: Coyote finally caught me]
arahael3 has quit [Ping timeout: 258 seconds]
cliluw has joined #ruby
lele has joined #ruby
fphilipe_ has joined #ruby
jeremycw has quit [Ping timeout: 246 seconds]
lele has quit [Quit: Coyote finally caught me]
lele has joined #ruby
bradleyprice has quit [Remote host closed the connection]
bradleyprice has joined #ruby
polishdub has quit [Remote host closed the connection]
bradleyprice has quit [Ping timeout: 257 seconds]
rafadc has quit [Read error: Connection reset by peer]
rafadc has joined #ruby
dbugger__ has joined #ruby
_dbugger has quit [Ping timeout: 248 seconds]
codefriar has joined #ruby
arahael3 has joined #ruby
fphilipe_ has quit [Ping timeout: 248 seconds]
bradleyprice has joined #ruby
rgrant has joined #ruby
bga57 has joined #ruby
rgrant is now known as [rg]
rheddry is now known as levifig
havenwood has quit [Quit: ZNC 1.7.3 - https://znc.in]
havenwood has joined #ruby
havenwood has joined #ruby
duderonomy has joined #ruby
hutch has joined #ruby
Exuma has joined #ruby
cerulean has joined #ruby
fphilipe_ has joined #ruby
cerulean has quit [Ping timeout: 248 seconds]
bradleyprice has quit [Remote host closed the connection]
bradleyprice has joined #ruby
bradleyprice has quit [Ping timeout: 248 seconds]
hutch has quit [Ping timeout: 244 seconds]
weteamsteve has quit [Ping timeout: 248 seconds]
hutch has joined #ruby
bga57 has quit [Quit: Leaving.]
queip has quit [Ping timeout: 248 seconds]
arahael3 has quit [Ping timeout: 258 seconds]
arahael3 has joined #ruby
queip has joined #ruby
Swyper has joined #ruby
esrse has joined #ruby
rsh has quit [Ping timeout: 248 seconds]
fphilipe_ has quit [Ping timeout: 252 seconds]
weteamsteve has joined #ruby
weteamsteve has quit [Read error: Connection reset by peer]
dviola has quit [Quit: WeeChat 2.4]
arahael3 has quit [Ping timeout: 245 seconds]
pr0ton has quit [Quit: pr0ton]
arahael3 has joined #ruby
bradleyprice has joined #ruby
hutch has quit [Ping timeout: 268 seconds]
Tempesta has quit [Ping timeout: 248 seconds]
Tempesta has joined #ruby
rsh has joined #ruby
[rg] has quit [Quit: [rg]]
bradleyprice has quit [Ping timeout: 258 seconds]
braincrash has quit [Quit: bye bye]
Swyper has quit [Remote host closed the connection]
bradleyprice has joined #ruby
Swyper has joined #ruby
braincrash has joined #ruby
bradleyprice has quit [Ping timeout: 248 seconds]
bradleyprice has joined #ruby
hutch has joined #ruby
rafadc has quit [Ping timeout: 248 seconds]
Swyper has quit [Remote host closed the connection]
fphilipe_ has joined #ruby
rsh has quit [Ping timeout: 252 seconds]
bradleyprice has quit [Ping timeout: 252 seconds]
rsh has joined #ruby
Ai9zO5AP has joined #ruby
rafadc has joined #ruby
bradleyprice has joined #ruby
rsh has quit [Ping timeout: 268 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bradleyprice has quit [Ping timeout: 248 seconds]
arahael4 has joined #ruby
arahael3 has quit [Ping timeout: 246 seconds]
fphilipe_ has quit [Ping timeout: 258 seconds]
bradleyprice has joined #ruby
arahael has joined #ruby
arahael4 has quit [Ping timeout: 248 seconds]
bradleyprice has quit [Ping timeout: 258 seconds]
leah2 has quit [Ping timeout: 252 seconds]
brool has quit [Ping timeout: 258 seconds]
arahael has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
arahael has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
hutch has quit [Ping timeout: 248 seconds]
fphilipe_ has joined #ruby
hutch has joined #ruby
leah2 has joined #ruby
hutch has quit [Ping timeout: 245 seconds]
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
DaRock has quit [Ping timeout: 245 seconds]
bradleyprice has joined #ruby
joshuacronemeyer has joined #ruby
kyrylo has joined #ruby
tdy has joined #ruby
bradleyprice has quit [Ping timeout: 248 seconds]
icarus has joined #ruby
cadeskywalker has joined #ruby
<syndikate> One of the codebase that am working on has a case statement where the `when` condition has multiple (more than 5) values against it. What is a better way to write this?
matheusmoreira has quit [Ping timeout: 244 seconds]
matheusmoreira has joined #ruby
pr0ton has joined #ruby
arahael has quit [Ping timeout: 268 seconds]
evdubs has quit [Remote host closed the connection]
evdubs has joined #ruby
bradleyprice has joined #ruby
arahael has joined #ruby
icarus has quit [Ping timeout: 244 seconds]
cthu| has joined #ruby
conta has joined #ruby
bradleyprice has quit [Ping timeout: 248 seconds]
fphilipe_ has quit [Ping timeout: 248 seconds]
zlogan2003 has joined #ruby
bradleyprice has joined #ruby
Inline has quit [Quit: Leaving]
zlogan has quit [Ping timeout: 252 seconds]
jefffrails35 has joined #ruby
bradleyprice has quit [Ping timeout: 258 seconds]
joshuacronemeyer has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
arahael has quit [Ping timeout: 248 seconds]
arahael has joined #ruby
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
bradleyprice has joined #ruby
lele has quit [Quit: Coyote finally caught me]
bradleyprice has quit [Ping timeout: 248 seconds]
ur5us has quit [Ping timeout: 258 seconds]
schne1der has joined #ruby
vondruch has quit [Quit: vondruch]
jenrzzz has joined #ruby
lele has joined #ruby
vondruch has joined #ruby
<havenwood> syndikate: Can you show the code or extract a similar example?
bradleyprice has joined #ruby
conta1 has joined #ruby
conta has quit [Read error: Connection reset by peer]
conta1 is now known as conta
cerulean has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
bradleyprice has quit [Ping timeout: 248 seconds]
cerulean has quit [Ping timeout: 268 seconds]
schne1der has quit [Ping timeout: 246 seconds]
fphilipe_ has joined #ruby
bradleyprice has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
ua has joined #ruby
bradleyprice has quit [Ping timeout: 252 seconds]
cow[moo] has quit [Ping timeout: 252 seconds]
jefffrails35 has quit [Quit: Leaving]
lxsameer has joined #ruby
cthu| has quit [Ping timeout: 258 seconds]
fphilipe_ has quit [Ping timeout: 252 seconds]
bradleyprice has joined #ruby
dionysus69 has joined #ruby
bradleyprice has quit [Ping timeout: 252 seconds]
andikr has joined #ruby
<mcspud> syndikate write it in Haskell, Ocaml, or any language with pattern matching :)
<syndikate> Haha I wish mcspud :D
<syndikate> I took it out into an array and used splat to compare
imadper has joined #ruby
ljarvis has quit [Ping timeout: 248 seconds]
arahael has quit [Ping timeout: 272 seconds]
<mcspud> I feel like case would have been better :P
arahael has joined #ruby
bradleyprice has joined #ruby
moei has joined #ruby
aupadhye has joined #ruby
bradleyprice has quit [Ping timeout: 248 seconds]
arahael has quit [Ping timeout: 272 seconds]
fphilipe_ has joined #ruby
mayurvpatil has joined #ruby
arahael has joined #ruby
<baweaver> mcspud: Y'know Ruby has pattern matching right?
<baweaver> syndikate: If you share some of the code we'd be a lot more able to tell you if a better solution exists.
<mcspud> baweaver - obviously not
<mcspud> ^_^
<mcspud> But does it really?
ua has quit [Ping timeout: 245 seconds]
<baweaver> 2.7
<baweaver> It does
<mcspud> Eh
<baweaver> Now who wrote that article?
<mcspud> I know right
<baweaver> :P
<mcspud> I wouldn't call that pattern matching though
<syndikate> baweaver, sure will do. I closed that work for now :D
<mcspud> Its just some nice predicates
<baweaver> Right-hand at least
<syndikate> Hey baweaver, are you this person -> https://www.youtube.com/watch?v=tmJlos2CST4
<baweaver> Yeo
<baweaver> Yep*
<baweaver> That was a nice wig
<baweaver> I like that wig
<mcspud> Proper pattern matching gives me union and sum ADTs :P
<baweaver> I go by either keystonelemur or baweaver
<baweaver> baweaver being short for BA Weaver
<syndikate> Haha nice. Good to know :D I was watching that video yesterday, gotta finish it
ua has joined #ruby
<syndikate> Ah gotcha
<baweaver> mostly because that sounds fancier and more professional
<baweaver> syndikate: Have you seen the video before that one?
<baweaver> Reducing Enumerable
<baweaver> Quite a fun talk
<baweaver> Took forever to make though
ryez has joined #ruby
<baweaver> Also have another talk accepted to Southeast Ruby to basically go through as much black magic as I can fit in 40m
<syndikate> Yes, I think I didn't finish that too, not because I didn't like it coz I haven't had much time recently
queip has quit [Ping timeout: 245 seconds]
<baweaver> Eh, ti happens
<syndikate> Yeah I try to squeeze them in during lunch breaks and stuff
<baweaver> Tales from the Ruby Grimoire
<baweaver> Characters are about ready for it
<syndikate> Oh nice
pr0ton has quit [Quit: pr0ton]
<baweaver> It even has a quick intro chapter to it: https://gist.github.com/baweaver/1ae6761dbc121a860597acdf053433f8
<syndikate> I really like the way how you put so much effort, like literally making a play :D
<syndikate> I already follow you in twitter :D
<baweaver> Ah, what was your name on there?
<baweaver> I can never remember who I follow or don't
<baweaver> Would you believe me if I said I have 10 years of talks queued up already?
<ryez> `puts(Integer(ARGV[0]) rescue 3)` causes a syntax error, but works with an extra space after `puts`, or an extra pair of parenthesis around the argument of `puts`, do you think this is a bug?
bradleyprice has joined #ruby
<baweaver> ryez inline rescue requires parens around it
<ryez> baweaver: doesn't the existing one count?
<baweaver> Though I'd probably use the 2.6+ exception clause instead
<baweaver> Integer("x", exception: false)
<baweaver> Integer("x", exception: false) || default_value
<baweaver> Na, that one gets parsed as being parens for puts
<ryez> to me it's "requires extra parens" rather than "requires parens"
<baweaver> Ruby parser is a bit touchy
<dminuoso> ryez: Ruby is a big mess of syntax.
<dminuoso> ryez: Most of it is just iterative retrofitting features without much design. If you ask Matz & Co. they'll probably even tell you it's a feature.
<baweaver> dminuoso: YOU"RE ALIVE!
<baweaver> Welcome back from Haskell land
<baweaver> We made more syntax to make you mad :D
<dminuoso> Nah being mad is no longer necessary. I don't write Ruby anymore.
DaniG2k has joined #ruby
<baweaver> Did you know Ruby just added Algebraic Data Types too dminuoso?
<syndikate> baweaver, it's quite funny - beardonomics
<baweaver> dminuoso: Na, just screwing with ya. Got your hopes up though, no? How many pages of Google did you just get through?
<syndikate> baweaver, wow 10 years of talk. I have lot of questions
bradleyprice has quit [Ping timeout: 259 seconds]
<baweaver> Oh?
<baweaver> I limit it to 2-3 talks a year
mayurvpatil has quit [Quit: This computer has gone to sleep]
<baweaver> and I have about 32 talk ideas drafted
code_zombie has quit [Quit: Leaving]
queip has joined #ruby
<baweaver> If I really really want to go to a conference I submit 5-10 of them at once
<ryez> dminuoso: got it, nice feature, so I need to shut up instead of yelling loud with a bug report :-(
<baweaver> Then whichever talk gets accepted I tend to submit to every other conference
<syndikate> How do you pick up so many topics? I have been trying to much figure about something to talk at local meetups
<syndikate> I could use a tip or two
<baweaver> Whereabouts?
<mcspud> dminuoso fell haskell brother
<mcspud> fellow*
<mcspud> Have you seen the light
<baweaver> Feel free to whack me on Twitter any time in DMs if I don't answer on here
<syndikate> Oh, okay sure. Do you prefer twitter or some other media?
<baweaver> I tend to check all of them in any case
<dminuoso> baweaver: And honestly without a type system Im not interested in ADTs.
<dminuoso> baweaver: None, honestly. :)
<dminuoso> baweaver: Nope.
<baweaver> Some exceptionally rarely, but Twitter isn't one of them
<syndikate> Alright, I will drop a message on twitter then
DaRock has joined #ruby
prestorium has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<baweaver> dminuoso: You see anything on Steep and Sorbet yet?
<baweaver> Ruby 3.x has static types.
<baweaver> As far as how exactly those get implemented, we'll see
<syndikate> I had read your post on pattern matching although it didn't feel natural to me initially, I will give it a go again.
<baweaver> I rather doubt HM though
<baweaver> Honestly I don't entirely understand that post
<dminuoso> baweaver: Ive went deep enough into type theory and language design to understand why retrofitting a type system is a really bad idea in general.
<syndikate> I had done some elixir before, maybe that has influenced me as well
<baweaver> tried to transcribe what all I saw when reading it.
dbugger__ has quit [Quit: Leaving]
<syndikate> Ah okay.
<baweaver> It definitely needs some cleanup
<dminuoso> baweaver: In general you should start out with a type system, include all properties and feautres you want into it - and then carefully design the language around the type system.
<syndikate> What's the ADT that you guys are talking about? (Type system noob here)
duderonomy has joined #ruby
<baweaver> Algebraic Data Types
<baweaver> I'll probably write up on them some time later
<syndikate> Oh, somehow that reminds me of haskell
<dminuoso> syndikate: In principle its the idea of being able to "add" and "multiply" types together.
<baweaver> I have an entire talk based in Category Theory and Alice in Wonderland
<baweaver> That's pretty accurate, as Haskell leans heavily on them and Category Theory for abstractions
<dminuoso> baweaver: I wish people would stop believing that.
<dminuoso> But we cant be able to get rid off that myth.
<syndikate> dminuoso, Oh. Okay. What all did you go through to learn more about these stuff?
<dminuoso> *seem to be unable
<dminuoso> syndikate: Which stuff exactly?
<syndikate> Type theory and language design
<syndikate> I mean it's a pretty vast subject on it's own right?
<baweaver> Functor and Monoid are about as common as anything in Haskell, though to be fair in most any languages
<dminuoso> syndikate: Pierce's book Types and Programming Languages is probably the best book to read.
<dminuoso> (To get into)
<dminuoso> syndikate: To give you a quick idea of what ADTs are, it's the idea of being able to combine "union" and "struct" together in a nice fashion
<dminuoso> syndikate: So for example you might have the need to express `this thing is either an Int or a String`, or you might want to say "this thing has both an Int and a String"
lele has quit [Quit: Coyote finally caught me]
<baweaver> What's funny is Reducing Enumerable is literally an introduction to Monoids without ever mentioning them
<syndikate> Oh, okay. They just opened a whole new perspective for me
<syndikate> dminuoso, thanks
<baweaver> Well, that, transducers, and bifunctors among others
<baweaver> This was a fairly good overview - http://www.tomharding.me/2017/03/03/fantas-eel-and-specification/
<syndikate> baweaver, that's another magic word I want to understand - monoids
<baweaver> syndikate: Do you know how reduce works?
<syndikate> yes
<syndikate> I believe so atleast
<baweaver> &>> [1,2,3].reduce(0) { |a, i| a + i }
<rubydoc> # => 6 (https://carc.in/#/r/722a)
<baweaver> What's the 0 for?
<syndikate> accumulator
<syndikate> The initial value
<baweaver> True, but as an init\al value what significance does it have?
<syndikate> Sets the type of result?
<baweaver> 0+ x = x
<baweaver> Anything plus 0 is that number
ryez has quit [Quit: Page closed]
<baweaver> so 0 doesn't really do anything, it's "empty"
<baweaver> + is how you join numbers together to get a new number
<baweaver> Those two properties are called Identity (empty) and Closure (binary operation to join, returns same type)
bradleyprice has joined #ruby
<baweaver> Add one more property, Associativity, and you have a Monoid. Associativity is being able to group them as long as the order stays the same
<baweaver> a + b + c == (a + b) + c == a + (b + c)
<baweaver> So Integers with the operation + behave like a Monoid
<baweaver> Mono - one, oid - like
<baweaver> Like one, or in other words, reducible
<baweaver> Granted that Integer addition has a few more properties to it that make it into something entirely different called an Abelian Group
<baweaver> Inversion - any operation can be inverted, like + 1 by + -1
<baweaver> Commutativity - You can combine elements in any order and get the same result
mayurvpatil has joined #ruby
* dminuoso is not convinced that free monoids are the best way to introduce what a monoid is..
<dminuoso> syndikate: The term Monoid captures the raw idea of "combining two things together into one" in a way that makes sense. Integer multiplication, integer addition, array concatenation, string concatenation, picking the lesser of two natural numbres..
bradleyprice has quit [Ping timeout: 250 seconds]
<dminuoso> syndikate: Anything more is just overwhelming and requires studying many examples in a setting where you can actually make use of what monoid captures
<syndikate> baweaver, Thanks a lot! Man those re some good stuff in simple words. Saved it
<syndikate> dminuoso, Oh okay! Thanks that makes it more clear
<syndikate> So in programming where does it hold value?
<baweaver> Monoids are super common
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso> syndikate: The monoid abstraction does not hold value in languages that dont employ polymorphism.
<dminuoso> syndikate: Its main use is deferring the choice of a monoid to someone else.
<baweaver> Mostly recognizing patterns. If data behaves a certain way we can work with it in predefined methods
<dminuoso> syndikate: For example my API might say "Im gonna squish things together, but *you* decide using what monoid"
<dminuoso> syndikate: In Ruby you would generally encode this by returning a list (such that the consumer of your API can squish it together)
<dminuoso> syndikate: Its very general and not easy to spot unless you are in the habit of writing highly polymorphic code.
<dminuoso> And in languages that are very non-principled like Ruby it falls extremely short.
<syndikate> dminuoso, oh okay. The only polymorphism I know is from OOP.
<syndikate> So monois is essentially a property
<syndikate> monoid*
<syndikate> Or behavior
<syndikate> ?
drale2k_ has joined #ruby
<dminuoso> syndikate: Its one way to think about it.
arahael1 has joined #ruby
claudiuinberlin has joined #ruby
<syndikate> Okay I will go a bit more through it now that I have some understanding
<baweaver> Abstractions take a while to really get
arahael has quit [Ping timeout: 272 seconds]
<syndikate> What do you guys practice to understand it?
<baweaver> dminuoso is a better source on that
<baweaver> though the answer is probably playing with Haskell for a bit
<syndikate> Ah okay, I may not have enough time for another language atm :(
imadper is now known as TQBFJOTLD
<dminuoso> syndikate: A motivating example might be the notion of a log.
<dminuoso> syndikate: Imagine you have some area of code that wants to "append to a log"
<dminuoso> So you'd start by thinking of a log as just string concatenation. You concatenate new entries onto the existing log.
<dminuoso> And if, for symmetry reasons, you were forced to emit log entries even if you didn't have anything to say you could still emit an empty string.
<dminuoso> Which is fine, because concatenating an empty string to some string A yields that same string A back.
<dminuoso> But perhaps we are not interested in a string log. Perhaps our log is just a "number of actions taken". So instead of emitting strings that get concatenating, you could emit numbers that get added.
bradleyprice has joined #ruby
<dminuoso> Now remember since we said, we might be forced to emit a log entry even if no action is taken. We could emit 0 in those cases, which is fine because adding 0 to a number does not change it.
<dminuoso> Or perhaps you have some software processing personal data, and the log is keeping track of the "oldest person" seen. If at some point you are not processing any person but were forced to produce a log entry, you could produce "0 years".
bradleyprice has quit [Ping timeout: 252 seconds]
<syndikate> Oh okay, yeah it's starting to make some sense now
<dminuoso> syndikate: Now you might begin to see that in all cases you are somehow "combining/smashing" 2 into 1, and you always have a special element you can throw into the binary operation to produce a noop
<syndikate> Yeah like a reducer, has an accumulator with initial value.
<syndikate> A noob doubt here - so if am writing a moonoid function it would have a local value inside (closure like) which has the default starting value?
mikecmpbll has joined #ruby
brendan- has joined #ruby
Mike11 has joined #ruby
<dminuoso> syndikate: Well the ergonomics become an important topic.
Jonopoly has joined #ruby
<dminuoso> syndikate: we could consider a module called Monoid, sort of like an interface, that you can include into a class.
<dminuoso> syndikate: One would be `def mappend(other); ... implement here; end` and the other would be `def mempty; ... implement here; end`
<dminuoso> Or rather `def self.mempty` in Ruby I guess.
<syndikate> Okay gotcha, you are talking as monoid as on object, I was talking monoid as function
<dminuoso> syndikate: well the method mappend captures that function.
<dminuoso> syndikate: Ruby just doesnt have any tools to write polymorphic code.
<syndikate> Okay, I will have to not think it from ruby then.
ur5us has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
xfbs has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arahael2 has joined #ruby
arahael1 has quit [Ping timeout: 272 seconds]
Fischmiep has joined #ruby
mayurvpatil_ has joined #ruby
RougeR has joined #ruby
mayurvpatil_ has quit [Client Quit]
mayurvpatil_ has joined #ruby
mayurvpatil has quit [Ping timeout: 272 seconds]
rsh has joined #ruby
dostoyevsky has quit [Quit: leaving]
dostoyevsky has joined #ruby
dostoyevsky has quit [Client Quit]
dostoyevsky has joined #ruby
rsh has quit [Ping timeout: 245 seconds]
arahael3 has joined #ruby
dminuoso has left #ruby ["WeeChat 2.2"]
arahael2 has quit [Ping timeout: 252 seconds]
tdy has quit [Ping timeout: 244 seconds]
dostoyevsky has quit [Quit: leaving]
dostoyevsky has joined #ruby
dionysus69_ has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 246 seconds]
dionysus69_ is now known as dionysus69
arahael4 has joined #ruby
GodFather has quit [Ping timeout: 248 seconds]
arahael3 has quit [Ping timeout: 272 seconds]
xfbs has joined #ruby
cd has joined #ruby
queip has quit [Ping timeout: 248 seconds]
m04ftKK has joined #ruby
queip has joined #ruby
DaniG2k has quit [Quit: leaving]
DaniG2k has joined #ruby
<DaniG2k> hello all. I'm trying to set up webpacker in my Rails 4 app. However, I cant seem to get it working with CircleCI
queip has quit [Remote host closed the connection]
<DaniG2k> but basically the error I'm seeing in CircleCI is: ActionView::Template::Error: Webpacker can't find application in /home/circleci/octopi/public/packs-test/manifest.json
mayurvpatil_ has quit [Quit: This computer has gone to sleep]
<DaniG2k> oops sorry, thought I was in the Rails channel. Will ask there
fphilipe_ has quit [Ping timeout: 268 seconds]
arahael4 has quit [Ping timeout: 248 seconds]
vondruch_ has joined #ruby
arahael4 has joined #ruby
vondruch has quit [Ping timeout: 248 seconds]
vondruch_ is now known as vondruch
mayurvpatil_ has joined #ruby
DaRock has quit [Read error: Connection reset by peer]
mayurvpatil_ has quit [Client Quit]
mayurvpatil has joined #ruby
claudiuinberlin has joined #ruby
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cerulean has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
fphilipe_ has joined #ruby
cerulean has quit [Ping timeout: 248 seconds]
conta has quit [Ping timeout: 258 seconds]
DaniG2k has quit [Quit: leaving]
schne1der has joined #ruby
Swyper has joined #ruby
drale2k_ has joined #ruby
conta has joined #ruby
bradleyprice has joined #ruby
bradleyprice has quit [Ping timeout: 248 seconds]
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Nicmavr has quit [Read error: Connection reset by peer]
queip has joined #ruby
ur5us has quit [Remote host closed the connection]
Nicmavr has joined #ruby
ur5us has joined #ruby
rsh has joined #ruby
apparition has joined #ruby
teclator has quit [Ping timeout: 248 seconds]
bradleyprice has joined #ruby
rsh has quit [Ping timeout: 246 seconds]
ur5us has quit [Ping timeout: 248 seconds]
kyrylo has joined #ruby
xco has joined #ruby
arahael4 has quit [Ping timeout: 244 seconds]
bradleyprice has quit [Ping timeout: 252 seconds]
Swyper has quit [Remote host closed the connection]
m04ftKK has quit [Quit: This computer has gone to sleep]
queip has quit [Ping timeout: 252 seconds]
<xco> hi! just to be sure are these equivalent?
arahael4 has joined #ruby
<xco> do_something & return
<xco> do_something and return
rsh has joined #ruby
<phaul> did you mean &&?
<xco> well then i’m confused. what i want to achieve is, i want to return, but before return do_something
<xco> and thought the best way to do this would be to use &
<xco> as opposed to &&
<xco> which is logic AND
<phaul> & is the bitwise and operator. && is the logic and. "and" is the control flow and
<rubydoc> parser error at position 0 around ` '
<xco> so no, i meant & not &&
<xco> so in this cause it’d be
<phaul> & typically used to and bitwise
<xco> do_something && return
<xco> do_something and return
<leftylink> maybe I can suggest `tap`
<xco> leftylink: what?! :D
aupadhye has quit [Ping timeout: 252 seconds]
<phaul> tap can be used for that, but also "and" is inherited from perl for the use case you described
<phaul> ppl usually don't like it because it might have surprising precedence
<xco> which means && is best practice i’d assume
<phaul> well if do something is assign a variable then no.
<xco> it’s a method
<leftylink> I seem not to understand though. if I want to do_something and then return, then it'd be `do_something\nreturn`. so there must be some context I am missing
<xco> `do_something\nreturn` makes sense but i find it a bit weird to have the return all by itself like that
arahael4 has quit [Ping timeout: 258 seconds]
<phaul> so what's there under the link is that a = true and false is (a = true) and false whereas a = true && false is a = (true && false)
<leftylink> how about a semicolon.
clemens3 has joined #ruby
<leftylink> if you must put it on a same line
alotofnoodles has joined #ruby
<leftylink> but I will be sad as a reader of the code if I have to look for `return` in places where I not expecting it
<leftylink> ... so that depends on setting the reader's expectations
<phaul> I have never written code in ruby with and myself. but my undesrtanding of the intention behind it is this flow control
<phaul> inherited from perl
GodFather has joined #ruby
<phaul> it's the dual of the perlism : do stuff or die
<leftylink> I must be frustrating, making alternative suggestions instead of answer the question. I will recuse myself
<leftylink> see you all in the next question
queip has joined #ruby
<phaul> leftylink: I agree with your suggestion, but I wanted to give a bit of background
bradleyprice has joined #ruby
<leftylink> oh hmm, I realised, the fact that my suggestion of newline was accepted without complaint implies that the returning may not have been conditional on do_something. making it conditional is when I would have considered using some of the original questioned things
<leftylink> better make it clear
<leftylink> whether returning is conditional on do_something's truthiness
arahael4 has joined #ruby
fphilipe_ has quit [Ping timeout: 248 seconds]
teclator has joined #ruby
bradleyprice has quit [Ping timeout: 248 seconds]
arahael4 has quit [Ping timeout: 268 seconds]
<phaul> xco did this clear up things?
<xco> phaul: i only understood it as do_something \nreturn is the best way to go
<phaul> that's actually different not the same program.
<xco> so i got more confused then
<xco> better questin would be
<phaul> that doesn't depend on the truthiness of the do_something whereas the versions with and do
<xco> aaaah ok
<xco> but executing a method is almost always true? no?
<xco> phaul: this is what i’m talking about https://gist.github.com/xcobar/23d919440b2779cf10c7c88a87a0076f
<xco> i want something? to be check first, once it’s satisfied, the whole method should stop
<xco> and not even check for another_thing?
<phaul> ok. so I think the way it's been done there is the best, because you don't care about the return value of do_something
<xco> no i don’t, i just want it to be done
aupadhye has joined #ruby
<phaul> line 7-9 could be reduced to do_something_else if another_thing?
<xco> right
arahael has joined #ruby
m04ftKK has joined #ruby
m04ftKK has quit [Client Quit]
bradleyprice has joined #ruby
reber has joined #ruby
arahael has quit [Ping timeout: 268 seconds]
bradleyprice has quit [Ping timeout: 258 seconds]
esrse has quit [Ping timeout: 248 seconds]
arahael has joined #ruby
fphilipe_ has joined #ruby
AJA4350 has joined #ruby
arahael has quit [Ping timeout: 258 seconds]
conta has quit [Ping timeout: 244 seconds]
claudiuinberlin has quit [Ping timeout: 252 seconds]
aupadhye has quit [Ping timeout: 248 seconds]
TQBFJOTLD has quit [Read error: Connection reset by peer]
TQBFJOTLD has joined #ruby
arahael has joined #ruby
DaRock has joined #ruby
aupadhye has joined #ruby
conta1 has joined #ruby
arahael has quit [Ping timeout: 245 seconds]
bradleyprice has joined #ruby
conta1 has quit [Client Quit]
GodFather has quit [Ping timeout: 245 seconds]
bradleyprice has quit [Ping timeout: 248 seconds]
arahael has joined #ruby
m04ftKK has joined #ruby
bradleyprice has joined #ruby
bradleyprice has quit [Ping timeout: 250 seconds]
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
ljarvis has joined #ruby
arahael has quit [Ping timeout: 246 seconds]
jinie has joined #ruby
AJA4351 has joined #ruby
bradleyprice has joined #ruby
AJA4350 has quit [Ping timeout: 258 seconds]
AJA4351 is now known as AJA4350
bradleyprice has quit [Ping timeout: 248 seconds]
arahael has joined #ruby
DarthGandalf has quit [Remote host closed the connection]
DarthGandalf has joined #ruby
bradleyprice has joined #ruby
silviu has joined #ruby
exmortus has joined #ruby
exmortus has quit [Remote host closed the connection]
exmortus has joined #ruby
staticx has quit [Ping timeout: 248 seconds]
arahael has quit [Ping timeout: 268 seconds]
bradleyprice has quit [Ping timeout: 252 seconds]
staticx has joined #ruby
staticx has quit [Remote host closed the connection]
cthulchu_ has joined #ruby
arahael has joined #ruby
xco has quit [Quit: xco]
silviu_ has joined #ruby
m04ftKK has quit [Quit: Leaving]
alotofnoodles has quit [Remote host closed the connection]
silviu has quit [Ping timeout: 246 seconds]
deathwishdave has joined #ruby
xco has joined #ruby
arahael has quit [Ping timeout: 248 seconds]
bradleyprice has joined #ruby
bradleyprice has quit [Ping timeout: 248 seconds]
drale2k_ has joined #ruby
dviola has joined #ruby
Rapture has joined #ruby
hutch has joined #ruby
bradleyprice has joined #ruby
arahael has joined #ruby
bradleyprice has quit [Ping timeout: 250 seconds]
AJA4350 has quit [Ping timeout: 244 seconds]
arahael1 has joined #ruby
AJA4350 has joined #ruby
xco has quit [Quit: xco]
arahael has quit [Ping timeout: 244 seconds]
bradleyprice has joined #ruby
Inline has joined #ruby
brool has joined #ruby
schne1der has quit [Ping timeout: 268 seconds]
jeremycw has joined #ruby
arahael1 has quit [Ping timeout: 245 seconds]
Inline has quit [Client Quit]
Inline has joined #ruby
cerulean has joined #ruby
GodFather has joined #ruby
exmortus is now known as snosk8r
bradleyprice has quit [Ping timeout: 248 seconds]
cerulean has quit [Ping timeout: 246 seconds]
apparition has quit [Quit: Bye]
rippa has joined #ruby
rbanffy has quit [Quit: rbanffy]
teclator has quit [Ping timeout: 258 seconds]
arahael1 has joined #ruby
conta1 has joined #ruby
teclator has joined #ruby
duderonomy has joined #ruby
dar123 has joined #ruby
franklinyu has joined #ruby
mayurvpatil has quit [Quit: This computer has gone to sleep]
<franklinyu> Hi everyone. I raised a bug https://bugs.ruby-lang.org/issues/15665 but it was changed to "Feature". How to change it back to bug?
mayurvpatil has joined #ruby
<franklinyu> It is labeled as feature so it will only be in 2.7 branch, but I want it to be in 2.6 branch as well.
mayurvpatil has quit [Client Quit]
mayurvpatil has joined #ruby
bradleyprice has joined #ruby
silviu has joined #ruby
mayurvpatil has quit [Quit: This computer has gone to sleep]
silviu_ has quit [Ping timeout: 248 seconds]
ryez has joined #ruby
<havenwood> franklinyu: Your comment should be sufficient for nobu to get the heads up. I might ping again on that thread after a week or so.
ryez has quit [Client Quit]
<franklinyu> havenwood: Thanks for the confirmation!
arahael2 has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arahael1 has quit [Ping timeout: 248 seconds]
mayurvpatil has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 248 seconds]
AJA4351 is now known as AJA4350
arahael2 has quit [Ping timeout: 245 seconds]
arahael2 has joined #ruby
queip has quit [Ping timeout: 258 seconds]
drale2k_ has quit [Ping timeout: 245 seconds]
Jonopoly has quit [Ping timeout: 248 seconds]
fphilipe_ has quit [Ping timeout: 272 seconds]
mayurvpatil has quit [Quit: This computer has gone to sleep]
dbugger has joined #ruby
silviu has quit [Remote host closed the connection]
queip has joined #ruby
schne1der has joined #ruby
orbyt_ has joined #ruby
rbanffy has joined #ruby
pr0ton has joined #ruby
joshuacronemeyer has joined #ruby
arahael2 has quit [Ping timeout: 246 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arahael2 has joined #ruby
mayurvpatil has joined #ruby
dviola has quit [Ping timeout: 258 seconds]
GodFather has quit [Ping timeout: 258 seconds]
fphilipe_ has joined #ruby
DaRock has quit [Ping timeout: 248 seconds]
mayurvpatil has quit [Client Quit]
schne1der has quit [Ping timeout: 272 seconds]
znz_jp has quit [Remote host closed the connection]
arahael3 has joined #ruby
arahael2 has quit [Ping timeout: 245 seconds]
znz_jp has joined #ruby
code_zombie has joined #ruby
thunderbirdtr has quit [Ping timeout: 258 seconds]
aupadhye has quit [Quit: Leaving]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 272 seconds]
AJA4351 is now known as AJA4350
andikr has quit [Remote host closed the connection]
octos has joined #ruby
GodFather has joined #ruby
arahael3 has quit [Ping timeout: 248 seconds]
arahael3 has joined #ruby
conta1 has quit [Quit: conta1]
tdy has joined #ruby
r29v has joined #ruby
arahael4 has joined #ruby
arahael3 has quit [Ping timeout: 248 seconds]
pr0ton has quit [Quit: pr0ton]
Harlin has quit [Quit: Lost terminal]
hiroaki has joined #ruby
r29v has quit [Quit: r29v]
rbanffy has quit [Quit: rbanffy]
renich has joined #ruby
arahael has joined #ruby
Harlin has joined #ruby
arahael4 has quit [Ping timeout: 245 seconds]
prestorium has quit [Ping timeout: 248 seconds]
sputnik13 has joined #ruby
AndreYuhai has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
clemens3 has quit [Ping timeout: 272 seconds]
<AndreYuhai> Hello there, I have a script and I want it to run everyday. And the script needs user input. Can I do it without using cronjob or sleep?
schne1der has joined #ruby
Mike11 has quit [Quit: Leaving.]
sameerynho has joined #ruby
<havenwood> AndreYuhai: Why don't you want to use a cronjob or sleep? How are users providing input?
joshuacronemeyer has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> AndreYuhai: For periodic timers in general, check out the timers gem: https://github.com/socketry/timers
<AndreYuhai> havenwood: Well, I don't know if there is any pros or cons to sleep so I wanted to ask whether there are other ways to do it. The input would either be two dates or one date (that day's date). So I also do not know whether I can also get the date automatically for the cronjob. But I am searching and I will also check that gem. Thank you :)
duderonomy has joined #ruby
greypack has joined #ruby
<havenwood> AndreYuhai: A con of sleep is that it'll slip forward a little bit every day.
<havenwood> AndreYuhai: The task itself takes some time, so sleeping 24 hours will always sleep a little later each day.
<AndreYuhai> havenwood: But would it still do that if we specify an exact date? Instead of saying 24 hours. I mean by checking the actual date and etc.
renich has quit [Ping timeout: 245 seconds]
RougeR has quit [Ping timeout: 272 seconds]
arahael has quit [Ping timeout: 245 seconds]
renich has joined #ruby
GodFather has quit [Ping timeout: 250 seconds]
arahael1 has joined #ruby
SeepingN has joined #ruby
rbanffy has joined #ruby
AJA4350 has quit [Ping timeout: 246 seconds]
arahael1 has quit [Ping timeout: 248 seconds]
salerace has joined #ruby
queip has quit [Ping timeout: 245 seconds]
nowhere_man has joined #ruby
russt has quit [Quit: That's all, folks!]
arahael1 has joined #ruby
<havenwood> AndreYuhai: You can't specify a date for Kernel#sleep, just seconds.
<havenwood> AndreYuhai: Cronjobs on the other hand can run on a date, no prob.
queip has joined #ruby
<havenwood> AndreYuhai: Or you mean you're sleeping for a shorter duration, and checking the date?
russt has joined #ruby
rbanffy has quit [Quit: rbanffy]
_dbugger has joined #ruby
dbugger has quit [Ping timeout: 248 seconds]
arahael1 has quit [Ping timeout: 248 seconds]
queip has quit [Ping timeout: 245 seconds]
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arahael1 has joined #ruby
xco has joined #ruby
orbyt_ has joined #ruby
AJA4350 has joined #ruby
arahael2 has joined #ruby
queip has joined #ruby
arahael1 has quit [Ping timeout: 272 seconds]
infernix has quit [Ping timeout: 276 seconds]
arahael2 has quit [Ping timeout: 246 seconds]
arahael2 has joined #ruby
arahael2 has quit [Ping timeout: 268 seconds]
<AndreYuhai> havenwood: Yes, for example sleeping for a period of time and checking the date constantly, for example sleeping for a few hours instead of 24. Sorry for the delay by the way.
<havenwood> AndreYuhai: You can run a cronjob daily, and each day have it check the day. Alternatively you can user the timers gem and do the same.
kaleido has quit [Quit: out]
<AndreYuhai> havenwood: Oh that is a good idea as well. I guess I will go with the cronjob but I will also check the timer gem. Thank you. By the way would there be any consequence of using 'sleep' on the server side compared to cronjobs?
<havenwood> AndreYuhai: With sleep, the time it runs just slips over and over. You need to do at least twice a day, to make sure it doesn't line up and slip so it doesn't skip a day. The timers gem keeps a separate thread so it can track the time without slipping.
faitswulff has joined #ruby
<havenwood> AndreYuhai: Cronjobs tend to work!
kaleido has joined #ruby
<havenwood> AndreYuhai: As long as your logic allows for it, sleep should do the trick.
<havenwood> AndreYuhai: If you don't want to have time slip between sleeps, the timers gem handles that for you.
<AndreYuhai> havenwood: Okay, thanks for the help. :) I will also check the timers gem and then decide which one to use.
sauvin has quit [Ping timeout: 244 seconds]
<havenwood> AndreYuhai: You might want to look at the whenever gem too, for your crontab.
<havenwood> AndreYuhai: You're welcome!
<havenwood> Or just use a crontab ¯\_(ツ)_/¯
tdy has quit [Ping timeout: 248 seconds]
octos has quit [Quit: Leaving]
octos has joined #ruby
arahael2 has joined #ruby
arahael2 has quit [Ping timeout: 248 seconds]
infernix has joined #ruby
salerace has quit [Read error: Connection reset by peer]
AJA4350 has quit [Ping timeout: 272 seconds]
GodFather has joined #ruby
arahael2 has joined #ruby
salerace has joined #ruby
arahael2 has quit [Ping timeout: 248 seconds]
x0f_ has joined #ruby
arahael2 has joined #ruby
x0f has quit [Ping timeout: 258 seconds]
x0f_ has quit [Ping timeout: 245 seconds]
x0f has joined #ruby
arahael2 has quit [Ping timeout: 245 seconds]
arahael2 has joined #ruby
nahra has quit [Remote host closed the connection]
nahra has joined #ruby
infernix has quit [Ping timeout: 248 seconds]
nahra has quit [Remote host closed the connection]
arahael2 has quit [Ping timeout: 245 seconds]
Darsoma has joined #ruby
Ai9zO5AP has quit [Ping timeout: 245 seconds]
arahael2 has joined #ruby
Darsoma has quit [Ping timeout: 256 seconds]
bradleyprice has quit [Remote host closed the connection]
GodFather has quit [Ping timeout: 248 seconds]
salerace has quit [Ping timeout: 248 seconds]
AJA4350 has joined #ruby
salerace has joined #ruby
Ai9zO5AP has joined #ruby
bradleyprice has joined #ruby
infernix has joined #ruby
arahael2 has quit [Ping timeout: 258 seconds]
arahael2 has joined #ruby
Ai9zO5AP has quit [Ping timeout: 258 seconds]
deathwishdave has joined #ruby
Ai9zO5AP has joined #ruby
arahael2 has quit [Ping timeout: 244 seconds]
deathwishdave has quit [Client Quit]
arahael2 has joined #ruby
i9zO5AP has joined #ruby
Ai9zO5AP has quit [Ping timeout: 244 seconds]
fphilipe_ has quit [Ping timeout: 248 seconds]
xco has quit [Quit: xco]
prestorium has joined #ruby
prestorium has quit [Client Quit]
ricekrispie has quit [Quit: YEET]
gix has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cd has quit [Quit: cd]
sgen has joined #ruby
arahael2 has quit [Ping timeout: 244 seconds]
lxsameer has quit [Ping timeout: 258 seconds]
kyrylo has joined #ruby
ricekrispie has joined #ruby
bradleyprice has quit [Remote host closed the connection]
bradleyprice has joined #ruby
bradleyprice has quit [Ping timeout: 272 seconds]
kyrylo has quit [Ping timeout: 245 seconds]
bradleyprice has joined #ruby
<sputnik13> havenwood: thanks, I guess it's an app thing then, I'll explore further, thanks again
sputnik13 has quit [Quit: Textual IRC Client: www.textualapp.com]
Eiam has joined #ruby
_dbugger has quit [Remote host closed the connection]
_dbugger has joined #ruby
dviola has joined #ruby
dviola has quit [Client Quit]
arahael2 has joined #ruby
snosk8r has quit [Remote host closed the connection]
snosk8r has joined #ruby
arahael2 has quit [Ping timeout: 245 seconds]
arahael2 has joined #ruby
schne1der has quit [Ping timeout: 272 seconds]
arahael3 has joined #ruby
arahael2 has quit [Ping timeout: 244 seconds]
arahael3 has quit [Ping timeout: 245 seconds]
theRoUS has joined #ruby
octos has quit [Ping timeout: 246 seconds]
<theRoUS> I'm upgrading an old laptop; right now it's at Fedora 29. The ruby `gem` command is varfing as shown here: https://pastebin.com/Kjv263aB
<ruby[bot]> theRoUS: 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
<theRoUS> geez. what happened to minswan? :-/
i9zO5AP has quit [Quit: WeeChat 2.4]
paraxial has joined #ruby
arahael4 has joined #ruby
xco has joined #ruby
hiroaki has quit [Ping timeout: 252 seconds]
renich has quit [Remote host closed the connection]
prestorium has joined #ruby
rbanffy has joined #ruby
<phaul> the bot is a bit picky but ppl usually check whatever you paste on
reber has quit [Remote host closed the connection]
octos has joined #ruby
faitswulff has quit [Remote host closed the connection]
arahael4 has quit [Ping timeout: 272 seconds]
queip has quit [Ping timeout: 246 seconds]
<theRoUS> phaul: maybe pastebin is a pain to read for some, but gist is (IMHO) a royal PITA to paste *to*. https://gist.github.com/RoUS/3c4ca47a971ed0bd4d2b86d501eb1dbf
<theRoUS> any road, the `gem` command is broken, and reinstalling ruby, libyaml, rubygems, and ruby-libs has no effect. just typing `gem` fails, much less the `gem pristine bundler` i need to do. :-(
<phaul> i did look at your pastebin but unfortunately I don't have a suggestion.
gnufied has joined #ruby
<theRoUS> meh
* phaul said "ignore the bot for now" way too many times
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
queip has joined #ruby
hiroaki has joined #ruby
faitswulff has joined #ruby
<leftylink> it seems it is being ignored a lot. WHAT IF!!! something automatically took the content and put it on another paste service..!!!!!!!!!!!!!!
<leftylink> would that get complaints of "I didn't consent for you to take my content and put it elsewhere"
nowhere_man has quit [Ping timeout: 258 seconds]
<theRoUS> phaul: foo: `cd /usr/lib64 ; ln -s libruby.so.2.5.5 libruby.so.2.4` worked around it. the fedora-supplied rubygem-psych wants libruby.so.2.4; faking it out seems to make it wonky-work
Nicmavr has quit [Read error: Connection reset by peer]
tdy has joined #ruby
Nicmavr has joined #ruby
ur5us has joined #ruby
<phaul> leftylink: maybe. it feels very specific to copy pastebin pastes (because that's the only thing rubybot cares about) to anywehere else. Imho that thing should just not be said any more. But I know the issues with this. rubybot is our legacy, and we are waiting for apeiros to return and decide how to move forward... And when rubydoc was born I didn't just put it into rubybot because its all in ruby2.3 I think
<phaul> and you dont really want to code ruby 2.3 in 2028/19 for fun
<phaul> I mean rubybot is 2.3
bradleyprice has quit [Remote host closed the connection]
bradleyprice has joined #ruby
bradleyprice has quit [Ping timeout: 272 seconds]
<Net> What's the idiomatic way to return the status of a method call?
<Net> e.g. :email_sent, :email_blocked, :no_connection, etc.
rsh has quit [Ping timeout: 258 seconds]
jeremycw has quit [Ping timeout: 248 seconds]
queip has quit [Ping timeout: 272 seconds]
hightower2 has joined #ruby
hightower2 has quit [Changing host]
hightower2 has joined #ruby
paraxial has quit [Quit: The Lounge - https://thelounge.chat]
tdy has quit [Ping timeout: 248 seconds]
paraxial has joined #ruby
Swyper has joined #ruby
hightower2 has quit [Ping timeout: 248 seconds]
hutch has quit [Ping timeout: 268 seconds]
prestorium has quit [Quit: prestorium]
matheusmoreira has quit [Ping timeout: 272 seconds]
sgen has quit [Ping timeout: 248 seconds]
gnufied has quit [Ping timeout: 272 seconds]
queip has joined #ruby
Swyper has quit [Remote host closed the connection]
sgen has joined #ruby
matheusmoreira has joined #ruby
rgrant has joined #ruby
rgrant is now known as [rg]
cthulchu_ has quit [Ping timeout: 244 seconds]
galaxie has quit [Quit: galaxie]
nowhere_man has joined #ruby
Swyper has joined #ruby
arahael4 has joined #ruby
snosk8r has quit [Remote host closed the connection]
bradleyprice has joined #ruby
moei has quit [Quit: Leaving...]
cerulean has joined #ruby
tdy has joined #ruby
<adam12> Net: If those are exceptional cases, maybe you want to raise an exception.
bradleyprice has quit [Ping timeout: 248 seconds]
<adam12> Net: If they are flow control, don't raise the exception. You could use a struct called Result that has a reason being one of those symbols. Or you can just return the symbol.. I am not sure there's any real common idiom.
<adam12> Net: As a third option, you could look at using a result monad. There's a bunch around: Resonad or Dry-monads being 2 gems.
exmortus has joined #ruby
cerulean has quit [Ping timeout: 264 seconds]
arahael4 has quit [Ping timeout: 264 seconds]
arahael4 has joined #ruby
sameerynho has quit [Ping timeout: 272 seconds]
hutch has joined #ruby
arahael4 has quit [Ping timeout: 245 seconds]
zlogan2003 has quit [Ping timeout: 252 seconds]
arahael4 has joined #ruby
queip has quit [Ping timeout: 245 seconds]
galaxie has joined #ruby
DTZUZO has quit [Quit: WeeChat 2.0]
arahael4 has quit [Ping timeout: 245 seconds]
xco has quit [Quit: xco]
arahael4 has joined #ruby
queip has joined #ruby
hutch has quit [Ping timeout: 272 seconds]
arahael4 has quit [Ping timeout: 248 seconds]
arahael4 has joined #ruby
DaRock has joined #ruby
Azure|dc has joined #ruby
Azure has quit [Read error: Connection reset by peer]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
arahael4 has quit [Ping timeout: 246 seconds]
[rg] has quit [Quit: [rg]]
sgen has quit [Ping timeout: 248 seconds]
Calinou has quit [Ping timeout: 244 seconds]
Calinou has joined #ruby
bradleyprice has joined #ruby
bradleyprice has quit [Ping timeout: 252 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sgen has joined #ruby
infernix has quit [Ping timeout: 252 seconds]
rsh has joined #ruby
tdy has quit [Ping timeout: 245 seconds]
gix has quit [Ping timeout: 245 seconds]
ivanskie has joined #ruby
rsh has quit [Ping timeout: 264 seconds]
<ivanskie> hi is there a way to make siure hash.to_json always makes everything a string, and wraps everything in quotes?
<ivanskie> for some reason it leaves integers and bools as is.
queip has quit [Ping timeout: 245 seconds]
<ivanskie> nevermind
ivanskie has quit [Quit: Textual IRC Client: www.textualapp.com]
<leftylink> hmm, although that doesn't sound like something I would personally want (I would prefer that integers should stay integers and bools should stay bools), if I wanted to do that, I would use WELL GUESS I DON'T NEED TO TYPE AN ANSWER NOW
<leftylink> sorry for the caps, I was very vexed
bradleyprice has joined #ruby
bradleyprice has quit [Remote host closed the connection]