havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.1, 3.0.3, 2.7.5: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
ur5us has quit [Ping timeout: 250 seconds]
Thanzex has joined #ruby
roadie has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
CrazyEddy has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
roadie has quit [Ping timeout: 248 seconds]
seydar has joined #ruby
seydar has quit [Ping timeout: 246 seconds]
seydar has joined #ruby
seydar has quit [Read error: Connection reset by peer]
o|||||o has quit [Ping timeout: 246 seconds]
nirvdrum has joined #ruby
seydar has joined #ruby
seydar has quit [Ping timeout: 256 seconds]
seydar has joined #ruby
seydar has quit [Ping timeout: 256 seconds]
roadie has joined #ruby
seydar has joined #ruby
gr33n7007h has quit [Ping timeout: 272 seconds]
seydar has quit [Ping timeout: 240 seconds]
gr33n7007h has joined #ruby
roadie has quit [Ping timeout: 248 seconds]
jhass has quit [Ping timeout: 260 seconds]
seydar has joined #ruby
seydar has quit [Ping timeout: 256 seconds]
Rounin has quit [Ping timeout: 250 seconds]
seydar has joined #ruby
seydar has quit [Ping timeout: 250 seconds]
ur5us has joined #ruby
o|||||o has joined #ruby
seydar has joined #ruby
justache has quit [Remote host closed the connection]
oxfuxxx has quit [Ping timeout: 250 seconds]
justache has joined #ruby
roadie has joined #ruby
roadie has quit [Ping timeout: 248 seconds]
o|||||o has quit [Ping timeout: 248 seconds]
John_Ivan__ has joined #ruby
John_Ivan_ has quit [Ping timeout: 248 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
nirvdrum has quit [Ping timeout: 272 seconds]
nirvdrum has joined #ruby
nirvdrum_ has joined #ruby
nirvdrum has quit [Read error: Connection reset by peer]
nirvdrum_ has quit [Read error: Connection reset by peer]
nirvdrum has joined #ruby
seydar has quit [Ping timeout: 256 seconds]
seydar has joined #ruby
seydar has quit [Ping timeout: 250 seconds]
hanzo has joined #ruby
nirvdrum_ has joined #ruby
nirvdrum has quit [Read error: Connection reset by peer]
nirvdrum has joined #ruby
nirvdrum_ has quit [Read error: Connection reset by peer]
nirvdrum_ has joined #ruby
nirvdrum has quit [Ping timeout: 248 seconds]
roadie has joined #ruby
nirvdrum has joined #ruby
nirvdrum_ has quit [Ping timeout: 248 seconds]
roadie has quit [Ping timeout: 250 seconds]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
John_Ivan_ has joined #ruby
seydar has joined #ruby
John_Ivan__ has quit [Ping timeout: 272 seconds]
seydar has quit [Ping timeout: 248 seconds]
roadie has joined #ruby
jposer has quit [Ping timeout: 240 seconds]
jposer has joined #ruby
seydar has joined #ruby
cuppajoeman has quit [Ping timeout: 250 seconds]
Manouchehri has quit [Ping timeout: 252 seconds]
Manouchehri has joined #ruby
cuppajoeman has joined #ruby
seydar has quit [Ping timeout: 248 seconds]
roadie has quit [Ping timeout: 248 seconds]
seydar has joined #ruby
nirvdrum has quit [Ping timeout: 250 seconds]
seydar has quit [Ping timeout: 256 seconds]
roadie has joined #ruby
howdoi has joined #ruby
seydar has joined #ruby
seydar has quit [Ping timeout: 256 seconds]
seydar has joined #ruby
seydar has quit [Ping timeout: 256 seconds]
dionysus69 has joined #ruby
seydar has joined #ruby
ur5us has quit [Ping timeout: 250 seconds]
nirvdrum has joined #ruby
seydar has quit [Ping timeout: 256 seconds]
John_Ivan__ has joined #ruby
ur5us has joined #ruby
John_Ivan_ has quit [Ping timeout: 256 seconds]
nirvdrum has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 240 seconds]
John_Ivan_ has joined #ruby
ur5us has quit [Ping timeout: 250 seconds]
John_Ivan__ has quit [Ping timeout: 250 seconds]
John_Ivan__ has joined #ruby
John_Ivan has joined #ruby
John_Ivan_ has quit [Ping timeout: 248 seconds]
John_Ivan__ has quit [Ping timeout: 248 seconds]
RougeR has quit [Quit: Leaving]
oxfuxxx has joined #ruby
John_Ivan_ has joined #ruby
John_Ivan has quit [Ping timeout: 256 seconds]
JSharp has quit [Ping timeout: 260 seconds]
JSharp has joined #ruby
hanzo has quit [Quit: Connection closed for inactivity]
jhass has joined #ruby
some14u has joined #ruby
ur5us has joined #ruby
jhass has quit [Ping timeout: 248 seconds]
jhass has joined #ruby
nmollerup has quit [Remote host closed the connection]
nmollerup has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jpn has quit [Quit: Lost terminal]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has joined #ruby
oxfuxxx has quit [Ping timeout: 256 seconds]
cxl has left #ruby [#ruby]
seydar has joined #ruby
some14u has joined #ruby
Rounin has joined #ruby
seydar has quit [Ping timeout: 240 seconds]
John_Ivan__ has joined #ruby
oxfuxxx has joined #ruby
___nick___ has joined #ruby
John_Ivan_ has quit [Ping timeout: 248 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roadie has quit [Remote host closed the connection]
roadie has joined #ruby
John_Ivan_ has joined #ruby
John_Ivan__ has quit [Ping timeout: 256 seconds]
oxfuxxx has quit [Ping timeout: 240 seconds]
oxfuxxx has joined #ruby
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
JayDoubleu_ has quit [Ping timeout: 250 seconds]
r0bby has quit [Ping timeout: 256 seconds]
JayDoubleu_ has joined #ruby
John_Ivan__ has joined #ruby
jpn has joined #ruby
r0bby has joined #ruby
John_Ivan_ has quit [Ping timeout: 240 seconds]
taupiqueur has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
gproto23 has joined #ruby
oxfuxxx has quit [Read error: Connection reset by peer]
oxfuxxx has joined #ruby
oxfuxxx has quit [Client Quit]
John_Ivan_ has joined #ruby
jpn has quit [Ping timeout: 250 seconds]
John_Ivan__ has quit [Ping timeout: 246 seconds]
John_Ivan__ has joined #ruby
John_Ivan has joined #ruby
John_Ivan_ has quit [Ping timeout: 256 seconds]
John_Ivan__ has quit [Ping timeout: 250 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 250 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 246 seconds]
gproto23 has quit [Remote host closed the connection]
HyLian has quit [Quit: hasta luego!]
markong has joined #ruby
seydar has joined #ruby
CrazyEddy has quit [Ping timeout: 240 seconds]
jpn has joined #ruby
taupiqueur has quit [Ping timeout: 250 seconds]
seydar has quit [Ping timeout: 272 seconds]
jpn has quit [Ping timeout: 256 seconds]
taupiqueur has joined #ruby
taupiqueur has quit [Ping timeout: 240 seconds]
seydar has joined #ruby
John_Ivan_ has joined #ruby
seydar has quit [Ping timeout: 272 seconds]
John_Ivan has quit [Ping timeout: 250 seconds]
taupiqueur has joined #ruby
seydar has joined #ruby
seydar has quit [Ping timeout: 246 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 250 seconds]
seydar has joined #ruby
seydar has quit [Ping timeout: 272 seconds]
miah has quit [Ping timeout: 252 seconds]
eam has quit [Ping timeout: 252 seconds]
eam has joined #ruby
seydar has joined #ruby
miah has joined #ruby
seydar has quit [Ping timeout: 248 seconds]
seydar has joined #ruby
jpn has joined #ruby
seydar has quit [Ping timeout: 246 seconds]
jpn has quit [Ping timeout: 272 seconds]
John_Ivan__ has joined #ruby
John_Ivan_ has quit [Ping timeout: 272 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 250 seconds]
roadie has quit [Ping timeout: 260 seconds]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
taupiqueur has quit [Ping timeout: 246 seconds]
szkl has joined #ruby
John_Ivan_ has joined #ruby
John_Ivan__ has quit [Ping timeout: 250 seconds]
taupiqueur has joined #ruby
jpn has joined #ruby
John_Ivan__ has joined #ruby
roadie has joined #ruby
John_Ivan_ has quit [Ping timeout: 248 seconds]
some14u has joined #ruby
TCZ has joined #ruby
jpn has quit [Ping timeout: 248 seconds]
dionysus69 has quit [Ping timeout: 248 seconds]
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TCZ has quit [Quit: Tcl has many different data types, not just strings.]
seydar has joined #ruby
TCZ has joined #ruby
roadie has quit [Ping timeout: 248 seconds]
factor has quit [Quit: The Lounge - https://thelounge.chat]
dionysus69 has joined #ruby
factor has joined #ruby
TCZ has quit [Remote host closed the connection]
puts has joined #ruby
roadie has joined #ruby
puts has quit [Remote host closed the connection]
TCZ has joined #ruby
roadie has quit [Ping timeout: 248 seconds]
some14u has joined #ruby
duderonomy has joined #ruby
dionysus69 has quit [Ping timeout: 272 seconds]
nirvdrum has joined #ruby
dionysus69 has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nirvdrum has quit [Client Quit]
roadie has joined #ruby
TCZ has quit [Quit: Tcl has many different data types, not just strings.]
roadie has quit [Ping timeout: 240 seconds]
taupiqueur has quit [Ping timeout: 250 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 250 seconds]
nirvdrum has joined #ruby
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
roadie has joined #ruby
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
___nick___ has joined #ruby
roadie has quit [Ping timeout: 248 seconds]
jpn has joined #ruby
seisatsu has quit [Quit: ZNC 1.8.2 - https://znc.in]
oxfuxxx has joined #ruby
seisatsu has joined #ruby
yxhuvud has quit [Read error: Connection reset by peer]
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
bit4bit has joined #ruby
oxfuxxx has quit [Ping timeout: 256 seconds]
bit4bit has quit [Remote host closed the connection]
yxhuvud has joined #ruby
bit4bit has joined #ruby
whysthatso12507 has quit [Remote host closed the connection]
whysthatso12507 has joined #ruby
bit4bit has quit [Remote host closed the connection]
bit4bit has joined #ruby
seydar has quit [Ping timeout: 272 seconds]
bit4bit has quit [Remote host closed the connection]
seydar has joined #ruby
bit4bit has joined #ruby
TCZ has joined #ruby
bit4bit has quit [Read error: Connection reset by peer]
bit4bit has joined #ruby
bit4bit_ has joined #ruby
bit4bit_ has quit [Client Quit]
taupiqueur has joined #ruby
bit4bit has quit [Ping timeout: 240 seconds]
taupiqueur has quit [Ping timeout: 256 seconds]
nirvdrum has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roadie has joined #ruby
nirvdrum has joined #ruby
<adam12> Nice :)
TCZ has quit [Remote host closed the connection]
TCZ has joined #ruby
<adam12> docker.io/library/ruby:2.7.6: not found doh.
nirvdrum_ has joined #ruby
nirvdrum has quit [Ping timeout: 272 seconds]
nirvdrum_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 250 seconds]
nirvdrum has joined #ruby
dionysus69 has joined #ruby
goepsilongo has joined #ruby
TCZ has quit [Remote host closed the connection]
TCZ has joined #ruby
bm5k has joined #ruby
bm5k has quit [Remote host closed the connection]
bm5k has joined #ruby
bm5k has quit [Remote host closed the connection]
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 272 seconds]
dionysus70 is now known as dionysus69
nirvdrum has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bm5k has joined #ruby
bm5k has quit [Remote host closed the connection]
seydar has quit [Ping timeout: 240 seconds]
_ht has joined #ruby
seydar has joined #ruby
seydar has quit [Ping timeout: 250 seconds]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
bm5k has joined #ruby
bm5k has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
szkl has quit [Quit: Connection closed for inactivity]
orbyt has joined #ruby
taupiqueur has joined #ruby
white_magic has joined #ruby
<white_magic> Hey guys, can someone recommend me the equivalent of Python's "requests" library but for Ruby?
<white_magic> I'm more from a Python background but I'm starting to dabble with Rails and I'm exploring the idea of using Ruby in place or in addition to Python for scripting purposes
<jhass[m]> You can get a long way with just standard library net/http, especially on modern Ruby. Stepping beyond that faraday and http.rb are popular
<jhass[m]> if you need high performance check typhoeus
<havenwood> white_magic: HTTP.rb is one modeled specifically like Requests.
<white_magic> jhass: quick googling has confirmed that faraday is the most beloved
<white_magic> havenwood: I think I'll go with HTTP.rb, then
<havenwood> white_magic: Here's a spreadsheet comparing options: https://docs.google.com/spreadsheets/d/1vPlk6nMIFa3sI5ISl7zZ5r6lDNpVQX6Jxi3ksXCyVbs/edit#gid=1392844939
<havenwood> white_magic: Typhoeus and async-http are also quite nice, but HTTP.rb has a great interface and is also a solid option.
<havenwood> white_magic: You can use those ^ as Faraday adapters if you prefer, but fine to use them directly.
<jhass[m]> Can't say that async-http's interface looks very great on first glance :P
<white_magic> havenwood: that is a truly overwhelming set of options .. but thanks
<jhass[m]> Gotta have a client for every web framework option I guess :D
<white_magic> Also, I have somewhat related questions.. 1) what would you recommend for GraphQL. 2) Any library that has the same interface for Rest APIs and GQL APIs (guessing no - very unlikely). 3) What would you recommend for rate limiting and prioritization. E.g .if I have a single API I want to access that permits.. let's say 200 requests per second.. and
<white_magic> I want to make 3 *types* of requests (Type 1 is the 'meat and potatoes' of my application, and type 2 & 3 are just misc lookups), how could I effectively prioritize these requests?
<white_magic> Sorry for the random assortment of questions but these are pretty useful to know for me
taupiqueur_ has joined #ruby
<havenwood> white_magic: Using GraphQL with Rails or pure Ruby?
taupiqueur has quit [Ping timeout: 250 seconds]
<havenwood> white_magic: The async-http gem is quite nice for composing request patterns with those types of constraints.
<havenwood> white_magic: You can use a semaphore, etc, and you don't need to worry about pooling since it's Fibers under the hood.
<white_magic> havenwood: realistically, in practice, I'd be doing it in Rails. But for scripting purposes, maybe outside of Rails, too. But more the former.
<white_magic> havenwood: what about throttling requests when the API (correctly or otherwise) complaints about excessive requests?
<havenwood> white_magic: Others who've used GraphQL in Ruby can speak more on that front, but some GraphQL gems have patterns in place with Rails generators, like: https://graphql-ruby.org/
<havenwood> white_magic: Yeah, async-http is a bit lower level interface than most the other options and you can do your own logic for those type of scenarios. Typhoeus Hydra is just all around good at parallel requests, but is a higher level interface.
<white_magic> awesome, I'm going to write all of this down. Lots of research to do. Thanks.
<havenwood> That ^ shows a simple pattern with limiting requests with async-http but you can tune it to work the way you prefer.
<havenwood> Not having to worry about Thread pools is handy, FWIW.
sphex has quit [Ping timeout: 252 seconds]
seydar has joined #ruby
sphex has joined #ruby
jpn has quit [Ping timeout: 248 seconds]
nirvdrum has joined #ruby
mandanguita has joined #ruby
<mandanguita> Hello. I was reading about SOLID design and I'm asking myself if they make any sense in Ruby
seydar has quit [Ping timeout: 256 seconds]
<havenwood> mandanguita: In general, yeah, I think they do.
roadie has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
<mandanguita> I don't see how
<mandanguita> Modules can modify a class, for example
howdoi has joined #ruby
<mandanguita> String serves a lot of different purposes. Separating them would increase complexity
markong has quit [Ping timeout: 240 seconds]
<mandanguita> The liskov principle. In a duck-typed language we don't care about types
white_magic has quit [Quit: Client closed]
<mandanguita> Btw this is not a rant, it's just that I want to clearly understand those principles
seydar has joined #ruby
seydar has quit [Ping timeout: 246 seconds]
<adam12> mandanguita: SOLID covers a bunch, so I'm not sure saying it makes no sense in Ruby is great, since it's fairly broad.
<adam12> If anything, I'd say the I (Interface Segregation) might be the weakest, IMHO
<adam12> S - obvious and I'm not sure needs any explanation
<mandanguita> I'll try to explain myself
<adam12> O - BankAccount vs AuditedBankAccount. Maybe AuditedBankAccount is a delegator. Seems simple enough and works well in principal.
<adam12> L - Duck typing, I guess. We kind of have this with IO vs StringIO.
<adam12> I - meh.
<mandanguita> S says a class should do one thing. Take the String class. The String class can be used to represent text, binary data, as a builder of text or data, and as their modifier
<adam12> D - not sure this needs much explanation.
<mandanguita> Following S strictly, Ruby designers should create Text, Data, TextBuilder, DataBuilder, TextModifier, DataModifier classes
<mandanguita> Am I right?
<mandanguita> again I'm sure a lot of newbies like me have asked the same questions but I have no bad faith
<adam12> I'm not sure I follow all the representations you consider
<adam12> If you equate String as a container of mulltiple byte sequences, does that not fit the SRP?
<mandanguita> Hmmm...
<adam12> It's hard to evaluate where you're coming from without a concrete example. And I think sometimes the SOLID principles are evaluated differently by everyone.
<mandanguita> I guess I just need to understand SOLID principles well
<adam12> Similar to GOF; just because someone put these things in a book, doesn't mean they are good things :P
<adam12> I feel there's some liberty to be taken, but I think there's definitely use in Ruby for SOLID.
TCZ has quit [Quit: Tcl has many different data types, not just strings.]
<adam12> There's a great speaker named Sandi Metz. She has some Youtube videos concerning SOLID and Ruby, IIRC.
<mandanguita> Thanks, I'll check it out
<adam12> Her book POODR is Ruby and covers some of them as well.
seydar has joined #ruby
<adam12> There's nothing stopping you from wrapping the primitives that Ruby provides and making your own abstractions either.
<adam12> jhass[m]: Do you see a proliferation of HTTP clients in Crystal as well? I feel like this is one of my biggest pet peeves in Ruby. And I can't fault anyone because net/http can be somewhat challenging to use if you're unfamiliar.
<jhass[m]> Not as much, http/client started out much better with common quick HTTP::Client.get(..) style convenience APIs
<jhass[m]> same for http/server which started out with an okayish API and good performance, so you rather see stuff wrapping those
<adam12> jhass[m]: Those two, and Time::Span are 3 I feel like we should be cribbing
<jhass[m]> Well, they're badly prepared for HTTP/2 so far honestly
seydar has quit [Ping timeout: 246 seconds]
<jhass[m]> and http/server is kinda lacking a good way to carry on application specific context data up and down again the middleware chain
<adam12> jhass[m]: Ahh.
<adam12> jhass[m]: I wonder if the API that Tipi uses is any better.
<adam12> I have not enough time to experiment with everything.
<adam12> Sharon's site is down again.
<jhass[m]> Yeah, problem is that we can't let you use Object yet as a type restriction/generic argument to a container type yet. So storing arbitrary data somewhere is a bit tricky
<adam12> Ah
taupiqueur_ has quit [Ping timeout: 250 seconds]
orbyt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
seydar has joined #ruby
mandanguita has quit [Quit: leaving]
seydar has quit [Ping timeout: 250 seconds]
aesthetikx has quit [Ping timeout: 252 seconds]
aesthetikx has joined #ruby
nirvdrum has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt has joined #ruby
Tempesta has quit [Read error: Connection reset by peer]
seydar has joined #ruby
victori has quit [Read error: Connection reset by peer]
victori has joined #ruby
o|||||o has joined #ruby
some14u has joined #ruby
some14u has quit [Ping timeout: 240 seconds]
szkl has joined #ruby
orbyt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nirvdrum has joined #ruby
nirvdrum has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gr33n7007h has quit [Ping timeout: 240 seconds]
gr33n7007h has joined #ruby
nirvdrum has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 256 seconds]
John_Ivan_ has joined #ruby
_ht has quit [Remote host closed the connection]
John_Ivan__ has quit [Ping timeout: 248 seconds]
___nick___ has quit [Ping timeout: 248 seconds]
TCZ has joined #ruby
John_Ivan__ has joined #ruby
John_Ivan_ has quit [Ping timeout: 250 seconds]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
gr33n7007h has quit [Ping timeout: 240 seconds]
gr33n7007h has joined #ruby
Coop has quit [Quit: Leaving]
orbyt has joined #ruby
markong has joined #ruby
seydar has quit [Ping timeout: 240 seconds]
nirvdrum has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nirvdrum has joined #ruby
seydar has joined #ruby
ur5us has joined #ruby
seydar has quit [Ping timeout: 246 seconds]
markong has quit [Read error: Connection reset by peer]
dionysus69 has quit [Ping timeout: 256 seconds]
seydar has joined #ruby
seydar has quit [Ping timeout: 256 seconds]
q3lont has joined #ruby
victori has quit [Read error: Connection reset by peer]
victori has joined #ruby
seydar has joined #ruby
markong has joined #ruby
seydar has quit [Ping timeout: 248 seconds]
oxfuxxx has joined #ruby
nirvdrum has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
seydar has joined #ruby
guest_nakilon has joined #ruby
<guest_nakilon> :: 24.33.to_r
<ruby-eval> => (1712071545842565/70368744177664)
<guest_nakilon> wtf
<guest_nakilon> hm
<guest_nakilon> :: 24.33.to_s.to_r
<ruby-eval> => (2433/100)
<guest_nakilon> so to convert float literal to rational you should convert it to string first, lol
oxfuxxx has quit [Quit: [H]EAT ROX FUCK R0X SHIT BRIX.]
<guest_nakilon> because somehow the Float#to_s works cleaner than Float#to_r
seydar has quit [Ping timeout: 272 seconds]
donofrio has quit [Remote host closed the connection]
seydar has joined #ruby
q3lont has quit [Ping timeout: 256 seconds]
oxfuxxx has joined #ruby
nirvdrum has joined #ruby
TCZ has quit [Quit: Tcl has many different data types, not just strings.]
John_Ivan_ has joined #ruby
seydar has quit [Ping timeout: 248 seconds]
oxfuxxx has quit [Ping timeout: 246 seconds]
seydar has joined #ruby
John_Ivan__ has quit [Ping timeout: 256 seconds]
o|||||o has quit [Ping timeout: 250 seconds]
orbyt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<guest_nakilon> why am I able to do irb> tap{ 1 } but not then irb> then{ 1 } ?
<ox1eef> cuz .. it collides with ruby's syntax, "then".
<ox1eef> afaik it always needs an explicit receiver.
<RedNifre> guest_nakilon: Looks like to_s rounds to a decimal first, while to_r doesn't (as in 24.33 is not 24.33, since it gets rounded to the nearest float).
nirvdrum has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RedNifre> :: 24.375.to_r
<ruby-eval> => (195/8)
oxfuxxx has joined #ruby
goepsilongo has quit [Quit: Konversation terminated!]
o|||||o has joined #ruby
oxfuxxx has quit [Ping timeout: 272 seconds]
sagax has quit [Quit: Konversation terminated!]
markong has quit [Ping timeout: 256 seconds]
goepsilongo has joined #ruby
John_Ivan__ has joined #ruby
John_Ivan_ has quit [Ping timeout: 246 seconds]
oxfuxxx has joined #ruby
seydar has quit [Ping timeout: 256 seconds]
seydar has joined #ruby
seydar has quit [Ping timeout: 246 seconds]
oxfuxxx has quit [Ping timeout: 246 seconds]
Garb0 has joined #ruby
<Garb0> Sup
<Garb0> What's the "proper" way to detect sockets closing on the other side?
John_Ivan_ has joined #ruby
<Garb0> rescuing the IOPIPE error seems like a dangerous hacky workaround
oxfuxxx has joined #ruby
nirvdrum has joined #ruby
oxfuxxx has quit [Remote host closed the connection]
John_Ivan__ has quit [Ping timeout: 246 seconds]
nirvdrum has quit [Client Quit]
greyrat_ has quit [Ping timeout: 240 seconds]
oxfuxxx has joined #ruby
lucerne has quit [Ping timeout: 240 seconds]
nirvdrum has joined #ruby
nirvdrum has quit [Client Quit]
seydar has joined #ruby
seydar has quit [Ping timeout: 240 seconds]
seydar has joined #ruby
guest_nakilon has quit [Remote host closed the connection]
seydar has quit [Ping timeout: 250 seconds]
oxfuxxx has quit [Quit: [H]EAT ROX FUCK R0X SHIT BRIX.]