<ox1eef>
mooff: what didn't you like about cinch ? i understood from memory it has a threaded model, where every command is run on its own thread.
<ox1eef>
interesting paste
<mooff>
ox1eef: to use Cinch i had to spend a lot of time learning its API, rather than being able to grok it & move quickly from memory
<ox1eef>
i see, did you study it? i think it was built on solid ideas, although the author has since left for Go.
<mooff>
it uses a factory model where you construct a bot, passing a block which both defines its behavior and the server/channels it will connect to, and get an instance
<ox1eef>
if i remember right it is modularized through plugins, which can act as sole commands.
<mooff>
i prefer to have behavior defined on a class, with composition & inheritance, then make instances for different networks / purposes
Tempesta has joined #ruby
Tempesta has quit [Changing host]
Tempesta has joined #ruby
Tempesta has quit [Excess Flood]
<mooff>
wire them together in fun ways at runtime etc
Tempesta has joined #ruby
Tempesta has quit [Changing host]
Tempesta has joined #ruby
Tempesta has quit [Excess Flood]
<ox1eef>
i wouldn't be in favor of keeping behavior and data on the class.
<mooff>
i read it a long time ago, and read it quickly a few months ago when deciding whether to make a new lib
Tempesta has joined #ruby
Tempesta has quit [Changing host]
Tempesta has joined #ruby
Tempesta has quit [Excess Flood]
donofrio has joined #ruby
<ox1eef>
indeed, that'd be my first call too, if i were doing a irc lib id probably start with cinch if not fork it
<mooff>
different strokes for different folks :)
<ox1eef>
i was thinking the same :)
Tempesta has joined #ruby
Tempesta has quit [Changing host]
Tempesta has joined #ruby
Tempesta has quit [Excess Flood]
<ox1eef>
i think even cinch is somewhat class-based, as the DSL exists in that scope
<ox1eef>
even if the command itself gets run on an instance.
Tempesta has joined #ruby
Tempesta has quit [Changing host]
Tempesta has joined #ruby
Tempesta has quit [Excess Flood]
justAstache has quit [Read error: Connection reset by peer]
justAstache has joined #ruby
hololeap has quit [Remote host closed the connection]
Guest58 has joined #ruby
hololeap has joined #ruby
Guest9 has joined #ruby
Guest9 has quit [Client Quit]
Guest58 has quit [Quit: Client closed]
krishnac has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
polishdub has joined #ruby
libsys has quit [Read error: Connection reset by peer]
krishnac has quit [Remote host closed the connection]
libsys has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
donofrio has quit [Ping timeout: 272 seconds]
ur5us has joined #ruby
ur5us_ has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
libsys has quit [Read error: Connection reset by peer]
libsys has joined #ruby
bluedust has quit [Remote host closed the connection]
Tempesta has joined #ruby
Tempesta has quit [Changing host]
Tempesta has joined #ruby
ur5us_ has quit [Ping timeout: 272 seconds]
bluedust has joined #ruby
libsys has quit [Read error: Connection reset by peer]
libsys has joined #ruby
teclator has joined #ruby
ur5us_ has joined #ruby
infinityfye has joined #ruby
fercell has joined #ruby
Rounin has joined #ruby
ur5us_ has quit [Ping timeout: 256 seconds]
bluedust has quit [Remote host closed the connection]
jmcgnh has quit [Ping timeout: 250 seconds]
jmcgnh has joined #ruby
Jonopoly has joined #ruby
bluedust has joined #ruby
fef has joined #ruby
bluedust has quit [Remote host closed the connection]
perrierjouet has quit [Ping timeout: 256 seconds]
perrierjouet has joined #ruby
bluedust has joined #ruby
donofrio has joined #ruby
gr33n7007h has quit [Ping timeout: 240 seconds]
gr33n7007h has joined #ruby
taupiqueur has joined #ruby
Guest6792 has joined #ruby
nmollerup has joined #ruby
taupiqueur has quit [Quit: taupiqueur]
taupiqueur has joined #ruby
va5c0 has joined #ruby
va5c0 has quit [Ping timeout: 272 seconds]
markong has joined #ruby
va5c0 has joined #ruby
bluedust_ has joined #ruby
Hazey_Dream has joined #ruby
bluedust has quit [Ping timeout: 240 seconds]
mange has quit [Remote host closed the connection]
gr33n7007h has quit [Ping timeout: 240 seconds]
gr33n7007h has joined #ruby
dviola has joined #ruby
bluedust_ has quit [Remote host closed the connection]
bsliger has joined #ruby
RougeR has joined #ruby
va5c0 has quit [Ping timeout: 240 seconds]
gr33n7007h has quit [Ping timeout: 240 seconds]
gr33n7007h has joined #ruby
Tempesta has quit [Quit: See ya!]
Tempesta has joined #ruby
bluedust has joined #ruby
va5c0 has joined #ruby
goepsilongo has joined #ruby
TCZ has joined #ruby
roadie has joined #ruby
va5c0 has quit [Read error: Connection reset by peer]
shokohsc has quit [Quit: Ping timeout (120 seconds)]
shokohsc has joined #ruby
nyuszika7h has quit [Read error: Connection reset by peer]
<adam12>
There are so many gems.
shokohsc has quit [Quit: Ping timeout (120 seconds)]
<adam12>
I'm not sure I ever realized how many.
shokohsc has joined #ruby
<mooff>
there's gotta be at least, like.. dozens
RougeR has quit [Remote host closed the connection]
<mooff>
:: [RUBY_PLATFORM, RUBY_VERSION] # :)
<ruby-eval>
=> ["wasm32-wasi", "3.2.0"]
<kaleido>
:: puts "Hello, world!"
<ruby-eval>
Hello, world!
<ruby-eval>
=> nil
<kaleido>
\o/
<rapha>
y
<rapha>
y'all
<rapha>
why does .to_yaml , in the case of multi-line fields, sometimes render them as `key: "blah\nblah\nblah"` and sometimes as `key: |-` followed by an actual newline, then "blah", then another actual newline, then "blah", etc.?
<rapha>
like, complete mix ... can't even figure out a pattern for it
<leftylink>
what will happen in Ruby 3.2.0, I wonder... harder to get any info because usually the search results tell us about gems 3.2.0. at least https://github.com/ruby/ruby/blob/master/NEWS.md can tell us I guess
<rapha>
ah, so, the one is called a "double-quoted flow scalar" and the other is called a "literal, right-stripped block scalar" ... but why Psych would mix these with no discernable difference between the strings ... annoying for grepping, too
<rapha>
that's pretty involved for just different styles
<rapha>
thanks for finding this, mooff :=
<rapha>
:)
Awestone91 has quit [Client Quit]
<mooff>
y/w ;o
Awestone has quit [Ping timeout: 256 seconds]
postmodern has joined #ruby
<RedNifre>
Hello! A friend of mine, who is not a programmer, would like to program some tiny things. So far, he has only done some medium complex thing in Excel Visual Basic. Is there a simple small ruby book for absolute programming beginners you could recommend?
<RedNifre>
The plan is that I'll visit him, we'll do some Raspberry Pi programming to make some colored LEDs light up on specific dates and I would give him the book as a gift, maybe.
<apotheon>
There's also Chris Pine's book (no, not the actor).
<apotheon>
RedNifre: The best book I know for learning basic Ruby is Eloquent Ruby, but I'm not sure whether your friend needs a more-beginner book than that.
<RedNifre>
I'm looking for the most beginner friendly book possible.
<RedNifre>
He's smart, but he prefers writing while loops that manually increment a variable at the end to for loops, because the for construct is so abstract and obfuscates what's going on.
<apotheon>
Chris Pine's Learn To Program or why's Poignant Guide To Ruby, then.