rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
Linux_Kerio has joined #ruby
shiboka- has joined #ruby
wyclif has joined #ruby
bastelfreak has left #ruby [WeeChat 4.1.0]
sagax has quit [Quit: Konversation terminated!]
shiboka- has quit [Remote host closed the connection]
shiboka has joined #ruby
shiboka has quit [Remote host closed the connection]
shiboka has joined #ruby
Inline has quit [Quit: Leaving]
Inline has joined #ruby
hightower2 has joined #ruby
grenierm has quit [Ping timeout: 250 seconds]
ih8u1 has joined #ruby
ih8u has quit [Ping timeout: 264 seconds]
ih8u1 is now known as ih8u
Guest89 has joined #ruby
<Guest89>
Hello how do I push media to consle
<Guest89>
ruby[bot] how do I route pages to urls
Guest89 has quit [Client Quit]
cappy has quit [Quit: Leaving]
reset has joined #ruby
osc4rpt has joined #ruby
TomyLobo has joined #ruby
wyclif has quit [Read error: Connection reset by peer]
wyclif has joined #ruby
trnzecs has joined #ruby
shiboka has quit [Remote host closed the connection]
trnzecs has quit [Remote host closed the connection]
brokkoli_origina has quit [Ping timeout: 256 seconds]
MalusVulgaris has joined #ruby
brokkoli_origin has joined #ruby
bhaak_ is now known as bhaak
osc4rpt has quit [Ping timeout: 240 seconds]
xdminsy has quit [Quit: Konversation terminated!]
xdminsy has joined #ruby
osc4rpt has joined #ruby
sagax has joined #ruby
gr33n7007h has quit [Quit: WeeChat 4.2.2]
MalusVulgaris has quit [Quit: MalusVulgaris]
jaredce has joined #ruby
jaredce has quit [Ping timeout: 264 seconds]
xdminsy has quit [Read error: Connection reset by peer]
xdminsy has joined #ruby
orbyt_v10 has joined #ruby
passbe has joined #ruby
cappy has joined #ruby
sagax has quit [Quit: Konversation terminated!]
Guest67 has joined #ruby
Guest67 has quit [Client Quit]
passbe has quit [Ping timeout: 240 seconds]
passbe has joined #ruby
orbyt_v10 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
user71 has joined #ruby
sagax has joined #ruby
user71 has quit [Quit: Leaving]
phryk_ is now known as phryk
bhaak has quit [Changing host]
bhaak has joined #ruby
<caleb>
if I was going to build a TUI with ruby, is there a defacto library I should use? When I was app Shopify we had lots of internal tooling using CLI-UI, but it's not quite what I'm after. Looking more for a library for writing a terminal IRC client for example, with nicklist and channel panes.
<adam12>
caleb: I was just looking into this again recently and termbox2 seems like a decent alternative to ncurses.
<shiboka>
i recently ordered the book "Eloquent Ruby", i heard it was good but it's quite old. has anyone read it? is the information still relevant? i think it uses ruby 2.0
Starfoxxes has quit [Ping timeout: 246 seconds]
Starfoxxes has joined #ruby
<weaksauce>
shiboka yeah i love that book
<weaksauce>
it's still very relevant sans a few new tricks that have been added
<weaksauce>
you can now do single line defs
<weaksauce>
the way kwargs are handled is slightly different
<weaksauce>
you can pass all params via ... now instead of enumerating them if you don't need to
<weaksauce>
but everything else is pretty relevant still and valid
<shiboka>
good to hear, as long as most of it still applies i'm happy.
<shiboka>
can't wait to read it :)
orbyt_v10 has joined #ruby
<weaksauce>
the format really jived with me
orbyt_v10 has quit [Client Quit]
<weaksauce>
take a concept and explain it through some contrived examples and then show it in the real world via some open source code
<weaksauce>
each chapter is fairly short and well explained
<shiboka>
that was one of the biggest selling points for me, it's not too long and seems easy to get into. seemed like a good book to start with. i have experience with other languages but i'm new to ruby.
<weaksauce>
perfect
<weaksauce>
that's a great amount of knowledge to have for that book
<weaksauce>
doesn't waste too much time on explaining the absolute basics
<weaksauce>
the one weird thing you might need to know before reading it is the case of ruby symbols
<weaksauce>
a symbol is a string that is only created once and is used all over the place as ids of sorts
<weaksauce>
:some_symbol
<weaksauce>
for all intents and purposes it's a string
Pixi__ has quit [Quit: Leaving]
Pixi has joined #ruby
cappy has quit [Quit: Leaving]
<shiboka>
that was something i was a bit confused about with ruby, i have basically just been using them as ids as you say haha. so they are just special strings.
<shiboka>
for the most part ruby has been pretty easy to grasp so far though, and it's a lot of fun :)
<weaksauce>
the other odd things is that every statement returns the last line implicitly and `do end` is an anonymous function that gets passed into the method.
<weaksauce>
same with `{ }`
<shiboka>
the returning aspect is a bit odd compared to something like C but it wasn't too hard to get used to. i'm used to anonymous functions in js so do end made sense to me. something that i found to be odd/unique is class-level variables, that took a bit to wrap my head around haha.
osc4rpt has quit [Quit: leaving]
<weaksauce>
the good thing is that class variables should be avoided generally... though they do have a time and place
<shiboka>
ruby is exactly what a i was looking for though. i wanted a general purpose scripting language that i could also use for web development and ruby fit the bill perfectly. python was another other choice but ruby appealed to me more :P
<weaksauce>
oh and there's one more thing... classes aren't special
<weaksauce>
you can write any arbitrary ruby inside it
<weaksauce>
which differs from a lot of languages
<weaksauce>
it also enables the way rails can do a lot of things that just look like magic but are just simple method calls
<weaksauce>
class Foo; puts "hi from class foo"; end is very valid and will print that string when the class is read from disk
<shiboka>
oh i see, that's very interesting. that does explain some of the rails magic.
<weaksauce>
shiboka i suggest reading through the enumerable module as that's where a lot of great things hide https://rubyapi.org/3.3/o/enumerable
<weaksauce>
and you can include that into your own class and provide an each method that goes through whatever collection you have and it will give you all those methods for free
konsolebox_ has quit [Quit: .]
<shiboka>
that sounds very powerful! i will definitely read through that.
reffle has quit [Read error: Connection reset by peer]
reffle has joined #ruby
Paris has joined #ruby
Paris has quit [Changing host]
Paris has joined #ruby
Linux_Kerio has quit [Ping timeout: 260 seconds]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
<havenwood>
shiboka: I'd recommend Polished Ruby Programming by Jeremy Evans.
<havenwood>
Eloquent Ruby isn't too dated to be useful.
user71 has quit [Quit: Leaving]
pookie has quit [Ping timeout: 255 seconds]
<shiboka>
that looks like a great book, thanks for the recommendation.
<shiboka>
i would like to get the pickaxe book too, it seems to be highly recommended everywhere i look.
olspookishmagus has joined #ruby
<weaksauce>
i never understood the love that that book gets
<weaksauce>
800 pages long and half of it is a reference to the stdlib
<leah2>
idk it was great for learning ruby in the early 2000s
<leah2>
probably less thick back then
<weaksauce>
bit too slow for my tastes too... takes like 80 pages to get to the concept of an if statement
Paris has quit [Quit: quit]
<shiboka>
it is quite long... it's hard to know what books to get, i don't want to get too many off the bat. Eloquent Ruby was cheap and seems to focus on what's important to me so it was an easy pick. Polished Ruby looks like a solid choice.
<weaksauce>
yeah polished ruby is a solid choice
<weaksauce>
the sandi metz stuff is classic
graywolf has quit [Quit: WeeChat 4.2.2]
grenierm has joined #ruby
brokkoli_origin has quit [Remote host closed the connection]
brokkoli_origin has joined #ruby
TomyLobo has quit [Ping timeout: 240 seconds]
<adam12>
I bought the updated Pickaxe to support them
<adam12>
I have the original around somewhere. I should do a comparison on thickness :P
<adam12>
Polished was good but I _loathe_ the editing of Packt.