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
markong has quit [Ping timeout: 255 seconds]
ur5us has quit [Ping timeout: 255 seconds]
ur5us has joined #ruby
Rounin has quit [Ping timeout: 256 seconds]
RickHull has quit [Ping timeout: 256 seconds]
TrufflePump has joined #ruby
TrufflePump has quit [Ping timeout: 256 seconds]
RickHull has joined #ruby
cocalero has joined #ruby
kaivai has quit [Quit: ZNC - https://znc.in]
kaivai has joined #ruby
sw1tch has quit [Ping timeout: 260 seconds]
cocalero has quit [Quit: Going offline, see ya! (www.adiirc.com)]
John_Ivan has quit [Ping timeout: 256 seconds]
RickHull has quit [Ping timeout: 244 seconds]
John_Ivan has joined #ruby
John_Ivan has quit [Read error: Connection reset by peer]
TrufflePump has joined #ruby
TrufflePump has quit [Ping timeout: 256 seconds]
Pipip has joined #ruby
mooff has quit [Read error: Connection reset by peer]
fef has joined #ruby
Pipip has quit [Ping timeout: 255 seconds]
mooff has joined #ruby
Pipip has joined #ruby
EternalSunshine has joined #ruby
EternalSunshine has quit [Changing host]
EternalSunshine has joined #ruby
EternalSunshine has quit [Quit: WeeChat 3.5]
Andrevan has joined #ruby
TrufflePump has joined #ruby
Andrevan is now known as EternalSunshine
EternalSunshine has joined #ruby
EternalSunshine has quit [Changing host]
Ziyan has joined #ruby
fef has quit [Remote host closed the connection]
fef has joined #ruby
TrufflePump has quit [Ping timeout: 240 seconds]
TrufflePump has joined #ruby
Guest34 has joined #ruby
Guest34 has quit [Client Quit]
Guest34 has joined #ruby
ur5us has quit [Ping timeout: 252 seconds]
Guest18 has joined #ruby
fef has quit [Quit: Killer]
Guest18 has quit [Ping timeout: 252 seconds]
Guest34 has quit [Quit: Client closed]
wand has quit [Ping timeout: 240 seconds]
donofrio__ has joined #ruby
donofrio_ has quit [Ping timeout: 244 seconds]
Ziyan has quit [Ping timeout: 255 seconds]
rvalue has quit [Ping timeout: 244 seconds]
Pipip has quit [Remote host closed the connection]
rvalue has joined #ruby
Rounin has joined #ruby
wand has joined #ruby
Arno3 has joined #ruby
Arno3 has quit [Client Quit]
chap8 has joined #ruby
chap8_IYR has joined #ruby
TrufflePump has quit [Ping timeout: 276 seconds]
chap8 has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
EternalSunshine has quit [Ping timeout: 246 seconds]
TrufflePump has joined #ruby
sagax has joined #ruby
jpn has joined #ruby
EternalSunshine has joined #ruby
jpn has quit [Quit: Lost terminal]
dionysus69 has joined #ruby
chap8_IYR has quit [Remote host closed the connection]
jpn has joined #ruby
gproto23 has joined #ruby
Ziyan has joined #ruby
___nick___ has joined #ruby
donofrio__ has quit [Quit: Leaving]
donofrio__ has joined #ruby
donofrio__ has quit [Client Quit]
donofrio__ has joined #ruby
donofrio__ is now known as donofrio
donofrio_ has joined #ruby
donofrio_ has quit [Remote host closed the connection]
donofrio has quit [Ping timeout: 255 seconds]
Guest18 has joined #ruby
donofrio has joined #ruby
Guest18 has quit [Quit: Client closed]
Guest18 has joined #ruby
Guest18 has quit [Client Quit]
jpn has quit [Ping timeout: 258 seconds]
jpn has joined #ruby
markong has joined #ruby
jpn has quit [Ping timeout: 256 seconds]
s-liao-2000 has joined #ruby
jpn has joined #ruby
ur5us has quit [Ping timeout: 250 seconds]
s-liao-2000 has quit [Ping timeout: 252 seconds]
jpn has quit [Quit: Lost terminal]
jpn has joined #ruby
wand has quit [Remote host closed the connection]
wand has joined #ruby
Ziyan_ has joined #ruby
Ziyan has quit [Ping timeout: 258 seconds]
TrufflePump has quit [Ping timeout: 276 seconds]
EternalSunshine has quit [Ping timeout: 256 seconds]
dionysus69 has quit [Ping timeout: 250 seconds]
dionysus69 has joined #ruby
Ziyan_ has quit [Quit: Textual IRC Client: www.textualapp.com]
TrufflePump has joined #ruby
TrufflePump has quit [Ping timeout: 276 seconds]
Starfoxxes has quit [Ping timeout: 260 seconds]
s-liao-2000 has joined #ruby
Starfoxxes has joined #ruby
donofrio_ has joined #ruby
kaivai has quit [Quit: ZNC - https://znc.in]
donofrio has quit [Ping timeout: 256 seconds]
kaivai has joined #ruby
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
Ziyan has joined #ruby
<dionysus69> anyone looking for a rails job? you could work remotely or relocate to Vienna <3
TrufflePump has joined #ruby
Exuma has joined #ruby
TrufflePump has quit [Ping timeout: 276 seconds]
reset has quit [Quit: reset]
bit4bit has joined #ruby
dionysus69 has quit [Ping timeout: 250 seconds]
Ziyan has quit [Ping timeout: 255 seconds]
Ziyan has joined #ruby
dynab has quit [Ping timeout: 255 seconds]
bit4bit has quit [Ping timeout: 246 seconds]
TrufflePump has joined #ruby
TrufflePump has quit [Ping timeout: 240 seconds]
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
s-liao-2000 has quit [Quit: Client closed]
szkl has joined #ruby
Ziyan has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Ziyan has joined #ruby
jpn has quit [Quit: Lost terminal]
John_Ivan has joined #ruby
Andrevan has joined #ruby
Andrevan is now known as EternalSunshine
EternalSunshine has joined #ruby
EternalSunshine has quit [Changing host]
TrufflePump has joined #ruby
<John_Ivan> does ruby support signature definitions for the purpose of readability?
<John_Ivan> e.g how in C you do
<John_Ivan> myFunction(arg);
<John_Ivan> at the top in a .h file
_ht has joined #ruby
<John_Ivan> while the myFunction(arg) { ... } implementation is in a .c file
TrufflePump has quit [Ping timeout: 248 seconds]
<adam12> John_Ivan: No.
<adam12> John_Ivan: Tho the new RBS support is kind of close.
<John_Ivan> adam12, I see. well, I managed to do a "hack"
<John_Ivan> since it's a scripting language I can do:
<John_Ivan> that.
<John_Ivan> and it works. they get overriden.
<adam12> That works, tho I'm not sure it's something I've seen with much frequency.
<adam12> It's usually a sign that you don't have enough classes.
<adam12> You could probably have borrowed the rbs syntax here as a comment. # def downloadSet: (actress_url: String, dir_actress_name: String) -> void
<adam12> It might have allowed you to move to something else in the future.
<adam12> It does feel like you're missing classes. Like Actress, and Download
EternalSunshine has quit [Quit: WeeChat 3.5]
<John_Ivan> adam12, this is a spider
<John_Ivan> it just scrapes data
<John_Ivan> actress is a name. a string
<John_Ivan> adam12, yeah, well, I do tend to write unconventional code so yeah :)
<adam12> Well an Actress has a name, and a URL, and maybe even a directory.
<adam12> At least that's what I surmise from the code example.
<adam12> and a Download might have a destination, a website, and perhaps accepts an Actress? I'm not sure.
<John_Ivan> adam12, it does but no functionality that I'll ever "add" to the Actress class, if it was one, would ever be cohesive enough for me to create a class.
<John_Ivan> indeed an actress has a name and url. but it ends there. the directory is optional.
<John_Ivan> adam12, here's the full code.
<John_Ivan> adam12, https://pastebin.com/wf58fpqm
<John_Ivan> adam12, it's my spider for collecting japanese adult actresses from JavHD.pics
<John_Ivan> 1st image is slightly NSFW.
<John_Ivan> this one's NSFW.
<adam12> Yeah, don't link that in here.
_root has quit [Ping timeout: 244 seconds]
<John_Ivan> adam12, sure. the rest are SFW. just showing what the spider is capable of.
<adam12> There's no confusion about what it does, at least from my point of view.
<John_Ivan> I mass downloaded TBs of data thanks to this little crawler I made :)
<John_Ivan> ok
<adam12> Let's say you have a module Spider.
<adam12> Then in that module Spider, you have a CLI class, an Actress class, and maybe a Download class.
<adam12> CLI class has 2 methods (help and running). Actress class has 2 methods. Download class has 2 plus some private methods.
<adam12> If you broke it up with that, even if it was a single file, I think you could work around not having the method definitions at the top of the file.
<adam12> Having them usually indicates the file is too large and not enough class organization. At least from my POV.
<John_Ivan> adam12, I suppose. but a list of definitions is what I generally look for when I open up any source code file.
<John_Ivan> regardless if stuff is organized or not.
<adam12> I guess it's more relevant for C files, but dealing with objects and classes means that I only care about a class and it's immediate collaborators.
<adam12> If I'm looking at the Actress class, and it only has 2 methods, did I really need that described at the top of the file? Likely not. They probably fit in ~ 20 lines.
<John_Ivan> I'm generally a C person. I care about classes to the point of merely having them cohesive with functions, but in the end, it's functions I truly care about.
<adam12> Anyways, no point in beating on it.
<John_Ivan> adam12, I accept and appreciate your advice :)
<adam12> John_Ivan: Cheers.
_root has joined #ruby
TrufflePump has joined #ruby
Ziyan_ has joined #ruby
Ziyan has quit [Ping timeout: 255 seconds]
dionysus69 has joined #ruby
markong has quit [Ping timeout: 256 seconds]
<John_Ivan> adam12, a good song :)
TrufflePump has quit [Ping timeout: 240 seconds]
Sankalp has quit [Ping timeout: 246 seconds]
Sankalp has joined #ruby
TrufflePump has joined #ruby
AMPed has joined #ruby
AMPed has left #ruby [#ruby]
dynab has joined #ruby
Thanzex has quit [Remote host closed the connection]
szkl has quit [Quit: Connection closed for inactivity]
Guest56 has joined #ruby
Guest56 has quit [Client Quit]
TrufflePump has quit [Ping timeout: 240 seconds]
Guest56 has joined #ruby
<Guest56> hello rubyists,  I was wondering why certain ruby version patches are not available, for example I am trying to install version 2.7.3p183
<adam12> Guest56: Install how?
<Guest56> through rvm?
<Guest56> i am trying to match the version of ruby my ubuntu server uses
<adam12> Guest56: If you just install 2.7.3, do you not get p183? Ruby has dropped patch levels, but I can't remember if it's on 2.7 or if it's later.
kiki_lamb has quit [Remote host closed the connection]
<Guest56> just tried it and no, it just installed 2.7.3
<havenwood> Guest56: Patch levels aren't included in the Ruby version anymore.
<havenwood> They're still there though, just a count of patches since the MAJOR release.
<havenwood> Just ignore the patch level. Ruby 2.7.3 is *always* the same patch level.
TrufflePump has joined #ruby
<Guest56> ahh good to know, thanks you guys for the help!
micah has left #ruby [#ruby]
Guest56 has quit [Quit: Client closed]
<dorian> hey does anybody know of an example of a rake task passing an argument to extconf.rb?
Guest56 has joined #ruby
Guest56 has quit [Client Quit]
<dorian> ahaaa rake compile -- --whatever-thing
<adam12> I'm guessing this is specific to the rake-compiler project.
<dorian> yeh i just stumbled across the doc
_ht has quit [Remote host closed the connection]
<dorian> i have inherited this: https://rubygems.org/gems/lmdb
___nick___ has quit [Ping timeout: 255 seconds]
<dorian> and recently fixed a few bugs and migrated the bundled lmdb to a git submodule instead of just some random subset of the source
<dorian> so was just trying to make sure i didn't ruin anybody's day
<dorian> (ie, i didn't make any of the build tooling and have no idea what i'm doing etc etc)
<adam12> Nice.
<adam12> The mailing list has had an excessive amount of poor emails lately. I wonder if it's time to unsubscribe.
<legit> Agree
TrufflePump has quit [Ping timeout: 240 seconds]
gproto23 has quit [Remote host closed the connection]
dangerousdave has joined #ruby
TrufflePump has joined #ruby
worldly2 has joined #ruby
rapha has quit [Ping timeout: 260 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
worldly2 has quit [Remote host closed the connection]
worldly2 has joined #ruby
Ziyan_ has quit [Quit: Textual IRC Client: www.textualapp.com]
worldly2 has quit [Ping timeout: 258 seconds]
emcb547 has joined #ruby
emcb54 has quit [Ping timeout: 255 seconds]
emcb547 is now known as emcb54
dangerousdave has joined #ruby
ur5us has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby
markong has joined #ruby
Aminda has quit [Remote host closed the connection]
Aminda has joined #ruby
TrufflePump has quit [Ping timeout: 258 seconds]
gschanuel2 has joined #ruby
TrufflePump has joined #ruby
gschanuel has quit [Ping timeout: 276 seconds]
gschanuel2 is now known as gschanuel
floss-jas has quit [Remote host closed the connection]
duds- has quit [Remote host closed the connection]
duds- has joined #ruby
Guest75 has joined #ruby
Guest75 has quit [Client Quit]
cocalero has joined #ruby
Aminda has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Ping timeout: 248 seconds]
Aminda has joined #ruby
cocalero has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<ox1eef> adam12: poor in what sense, and is this the ruby-talk ML?
<leah2> i remember when it was good :p
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
RickHull has joined #ruby
<John_Ivan> :)
<John_Ivan> good song.
floss-jas has joined #ruby
markong has quit [Ping timeout: 244 seconds]
ur5us has quit [Quit: Leaving]