jhass[m] changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.2, 3.0.4, 2.7.6: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
meimei has quit [Ping timeout: 268 seconds]
ur5us has quit [Ping timeout: 244 seconds]
ur5us has joined #ruby
jetchisel has joined #ruby
meimei has joined #ruby
ur5us has quit [Ping timeout: 244 seconds]
ur5us has joined #ruby
Guimauve has joined #ruby
Rounin has quit [Ping timeout: 246 seconds]
devz3ro has quit [Quit: The Lounge - https://thelounge.chat]
jpn has joined #ruby
devz3ro has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
aeris has quit [Ping timeout: 258 seconds]
aeris has joined #ruby
ur5us has quit [Ping timeout: 244 seconds]
jetchisel has quit [Ping timeout: 244 seconds]
<AstrallyForged> `$stdin.readline` works when I give it no arguments, but hangs when I give it a string argument (and strace confirms that the read(2) is not returning).
<AstrallyForged> I guess I could ignore `readline` and emulate it with `read` or `readpartial` but that's less convenient…
<AstrallyForged> Any ideas what could be happening?
skuntee4 has joined #ruby
skuntee4 has quit [Ping timeout: 250 seconds]
<AstrallyForged> Wait, readpartial is hanging too. :(
shiru has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 265 seconds]
ur5us has joined #ruby
hrberg has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
hrberg has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
comet23 has joined #ruby
idiocrash_ has joined #ruby
idiocrash has quit [Ping timeout: 244 seconds]
jpn has joined #ruby
moldorcoder7_ has quit [Ping timeout: 265 seconds]
moldorcoder7 has joined #ruby
jetchisel has joined #ruby
jpn has quit [Ping timeout: 244 seconds]
moldorcoder7 has quit [Ping timeout: 260 seconds]
moldorcoder7 has joined #ruby
comet23 has quit [Quit: Client closed]
nirvdrum has joined #ruby
nirvdrum has quit [Ping timeout: 260 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
ur5us has quit [Ping timeout: 244 seconds]
nirvdrum has joined #ruby
jpn has joined #ruby
dionysus69 has joined #ruby
robotmay has quit [Quit: Be excellent to each other]
jpn has quit [Ping timeout: 244 seconds]
_ht has joined #ruby
fef has joined #ruby
ur5us has joined #ruby
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
jvalleroy has joined #ruby
robotmay has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 268 seconds]
ur5us has quit [Ping timeout: 248 seconds]
szkl has quit [Quit: Connection closed for inactivity]
cocalero has quit [Quit: Going offline, see ya! (www.adiirc.com)]
jpn has joined #ruby
jpn has quit [Ping timeout: 265 seconds]
idiocrash has joined #ruby
idiocrash_ has quit [Ping timeout: 260 seconds]
oxfuxxx has joined #ruby
Rounin has joined #ruby
Rounin has joined #ruby
Rounin has quit [Changing host]
oxfuxxx has quit [Ping timeout: 265 seconds]
oxfuxxx has joined #ruby
<oxfuxxx> hi
oxfuxxx has quit [Ping timeout: 252 seconds]
oxfuxxx has joined #ruby
oxfuxxx has quit [Ping timeout: 265 seconds]
oxfuxxx has joined #ruby
oxfuxxx has quit [Ping timeout: 265 seconds]
oxfuxxx has joined #ruby
oxfuxxx has quit [Remote host closed the connection]
jpn has joined #ruby
jpn has quit [Ping timeout: 244 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 265 seconds]
Sankalp has quit [Ping timeout: 265 seconds]
Sankalp has joined #ruby
joto has joined #ruby
reset has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 265 seconds]
smp has quit [Quit: ZNC 1.8.2 - https://znc.in]
smp has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
smp has quit [Quit: ZNC 1.8.2 - https://znc.in]
skuntee4 has joined #ruby
smp has joined #ruby
skuntee4 has quit [Ping timeout: 248 seconds]
smp has quit [Quit: ZNC 1.8.2 - https://znc.in]
hellstabber has joined #ruby
smp has joined #ruby
hellstabber has quit [Quit: Cya]
smp has quit [Quit: ZNC 1.8.2 - https://znc.in]
smp has joined #ruby
smp has quit [Quit: ZNC 1.8.2 - https://znc.in]
fef has quit [Ping timeout: 258 seconds]
smp has joined #ruby
shiru has quit [Quit: leaving]
_aeris_ has joined #ruby
scottg489 has joined #ruby
teclator has joined #ruby
scottgy has quit [Ping timeout: 252 seconds]
aeris has quit [Ping timeout: 258 seconds]
_aeris_ is now known as aeris
smp has quit [Quit: ZNC 1.8.2 - https://znc.in]
smp has joined #ruby
Guimauve has quit [Quit: Client closed]
jpn has joined #ruby
Guimauve has joined #ruby
nirvdrum has quit [Ping timeout: 268 seconds]
oxfuxxx has joined #ruby
jpn has quit [Ping timeout: 264 seconds]
oxfuxxx has quit [Ping timeout: 265 seconds]
dionysus69 has quit [Ping timeout: 252 seconds]
oxfuxxx has joined #ruby
Successus has joined #ruby
skuntee4 has joined #ruby
jpn has joined #ruby
oxfuxxx has quit [Ping timeout: 246 seconds]
skuntee4 has quit [Ping timeout: 246 seconds]
jpn has quit [Ping timeout: 268 seconds]
desnudopenguino has joined #ruby
skuntee4 has joined #ruby
jetchisel has quit [Ping timeout: 265 seconds]
skuntee4 has quit [Ping timeout: 268 seconds]
oxfuxxx has joined #ruby
oxfuxxx has quit [Remote host closed the connection]
shokohsc has quit [Quit: The Lounge - https://thelounge.chat]
<joto> I have got the following array: [nil]
<joto> What method can I use define this array as empty? E.g. return true if the array contains this nil value?
<joto> can I use to define*
<joto> both [nil].empty? and [nil].nil? return false...
<leftylink> == is a method, so `[nil] == [nil]` would be a possibility. or perhaps `.all?(&:nil?)` would suit. or perhaps two methods, by using .compact.empty?
<joto> thanks leftylink, I'm goign to try the last two as there can be multiple nil values in my array
<Guimauve> i would suggest against defining a non-empty array as empty, as that would break other code that would expect something to actually be empty. instead of testing for emptiness... leftylink's .compact.empty? suggestion is safer.
<joto> alright!
<joto> argh, now I remember. I already checked .compact.empty? but I accidently did the following .compact!.empty?
<joto> I was wondering why my array got destroyed LOL
<joto> now I know. I shouldn't have used that exclamation mark
joto has quit [Ping timeout: 268 seconds]
ahayworth has quit [Remote host closed the connection]
joto has joined #ruby
<joto> sorry, electricity broken again in my house
<joto> I probably timed out
jpn has joined #ruby
jpn has quit [Ping timeout: 265 seconds]
idiocrash has quit [Ping timeout: 260 seconds]
<joto> leftylink, Guimauve, extra complexity. The array I was talking about can also be nil itself
<joto> I mean, it can also just not exist
<joto> how would I chain the different methods in that case? would .nil?.compact.empty? work?
<joto> or maybe the safe navigator
<joto> &.compact.empty? <-- this one?
idiocrash has joined #ruby
<Guimauve> joto - you could be lazy and do (thing || []).compact.empty? perhaps, if that works for your use-case. since nil is false.
<joto> That actually looks elegant. It will definitly work for my use case
<joto> thanks!
<Guimauve> np. just a heads up, but most people seem to have moved to the ruby discord, so if you don't get what you need here, there are more people there to ask.
<joto> yes I realize but I'm a bit nostalgic
<Guimauve> heh
<joto> I don't really like the childish theme of dicord
<Guimauve> ^_^b
<joto> the native feel of my IRC client against the sluggish discord interface
<joto> but you're right, if it's too quiet here, I can always ask my questions over there
<joto> glad you answered in a timely fashion :p
<Guimauve> does discord use electron now?
<joto> I think so. at least it feels like that
<joto> the interface is very webby at least
<Guimauve> they do indeed use electron it looks like
<joto> yep
<Guimauve> built with electron and react... huh.
<joto> -_-
<joto> react is okay but not for the whole interface
<AstrallyForged> Oh no, not Ruby too
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
jpn has joined #ruby
<leftylink> the problem for me is just that my workplace doesn't allow using discord, so I have no choice but to be here
<leftylink> I don't want to hear anyone tell me "your workplace is draconian, quit now" in response to me saying that
<leftylink> my workplace has some problems, but being draconian is not one of them
<Guimauve> even if it was, they pay you, right? work is work. this is not an economy to be getting bitchy in.
jpn has quit [Ping timeout: 260 seconds]
zoknert has joined #ruby
dstein64- has joined #ruby
zoknert has quit [Ping timeout: 268 seconds]
dstein64- has quit [Client Quit]
dstein64 has quit [Ping timeout: 252 seconds]
dstein64 has joined #ruby
<AstrallyForged> mmmm, gonna have to disagree with that
<AstrallyForged> employers should treat you right, and it's not “an honored privilege” to work for a living
<AstrallyForged> but that's off-topic. :)
<adam12> I think the Discord is busier
<adam12> but I feel like we answer questions just as well here. It's not like its' a completely dead channel.
* AstrallyForged nods!
<adam12> Especially during the week where most of us are writing Ruby in our day to day.
jpn has joined #ruby
sagax has quit [Remote host closed the connection]
jpn has quit [Ping timeout: 252 seconds]
sagax has joined #ruby
_ht has quit [Remote host closed the connection]
jpn has joined #ruby
jpn has quit [Ping timeout: 246 seconds]
ur5us has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 265 seconds]
idiocrash has quit [Ping timeout: 265 seconds]
idiocrash has joined #ruby
jpn has joined #ruby
matoro has quit [Quit: ZNC 1.8.2 - https://znc.in]
matoro has joined #ruby
matoro has joined #ruby
matoro has quit [Changing host]
jpn has quit [Ping timeout: 265 seconds]
Guimauve has quit [Quit: GLORY TO MANKIND]
jpn has joined #ruby
<gr33n7007h> anyone an idea when Ruby Kaigi 2022 videos will be out?
jpn has quit [Ping timeout: 265 seconds]
Successus has quit []
jpn has joined #ruby
robotmay_ has joined #ruby
robotmay has quit [Ping timeout: 268 seconds]
jpn has quit [Ping timeout: 265 seconds]
cocalero has joined #ruby
markong has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 268 seconds]
markong has quit [Ping timeout: 252 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 265 seconds]
markong has joined #ruby
markong has quit [Ping timeout: 260 seconds]
robotmay_ has quit [Quit: No Ping reply in 180 seconds.]
robotmay has joined #ruby
Rounin has quit [Ping timeout: 252 seconds]