00:24
markong has quit [Ping timeout: 255 seconds]
00:40
ur5us has quit [Ping timeout: 255 seconds]
01:00
ur5us has joined #ruby
01:11
Rounin has quit [Ping timeout: 256 seconds]
01:26
RickHull has quit [Ping timeout: 256 seconds]
01:33
TrufflePump has joined #ruby
01:38
TrufflePump has quit [Ping timeout: 256 seconds]
01:53
RickHull has joined #ruby
01:54
cocalero has joined #ruby
01:57
kaivai has joined #ruby
02:00
sw1tch has quit [Ping timeout: 260 seconds]
02:31
John_Ivan has quit [Ping timeout: 256 seconds]
02:47
RickHull has quit [Ping timeout: 244 seconds]
02:57
John_Ivan has joined #ruby
03:12
John_Ivan has quit [Read error: Connection reset by peer]
03:35
TrufflePump has joined #ruby
03:40
TrufflePump has quit [Ping timeout: 256 seconds]
03:47
Pipip has joined #ruby
04:00
mooff has quit [Read error: Connection reset by peer]
04:01
fef has joined #ruby
04:03
Pipip has quit [Ping timeout: 255 seconds]
04:03
mooff has joined #ruby
04:03
Pipip has joined #ruby
04:07
EternalSunshine has joined #ruby
04:17
EternalSunshine has quit [Changing host]
04:17
EternalSunshine has joined #ruby
04:21
EternalSunshine has quit [Quit: WeeChat 3.5]
04:24
Andrevan has joined #ruby
04:25
TrufflePump has joined #ruby
04:25
Andrevan is now known as EternalSunshine
04:25
EternalSunshine has joined #ruby
04:25
EternalSunshine has quit [Changing host]
04:28
Ziyan has joined #ruby
05:06
fef has quit [Remote host closed the connection]
05:07
fef has joined #ruby
05:44
TrufflePump has quit [Ping timeout: 240 seconds]
05:44
TrufflePump has joined #ruby
05:52
Guest34 has joined #ruby
05:54
Guest34 has quit [Client Quit]
05:57
Guest34 has joined #ruby
05:58
ur5us has quit [Ping timeout: 252 seconds]
06:06
Guest18 has joined #ruby
06:20
fef has quit [Quit: Killer]
06:24
Guest18 has quit [Ping timeout: 252 seconds]
06:30
Guest34 has quit [Quit: Client closed]
06:35
wand has quit [Ping timeout: 240 seconds]
06:45
donofrio__ has joined #ruby
06:49
donofrio_ has quit [Ping timeout: 244 seconds]
06:55
Ziyan has quit [Ping timeout: 255 seconds]
06:57
rvalue has quit [Ping timeout: 244 seconds]
06:58
Pipip has quit [Remote host closed the connection]
07:22
rvalue has joined #ruby
07:23
Rounin has joined #ruby
07:34
wand has joined #ruby
07:40
Arno3 has joined #ruby
07:41
Arno3 has quit [Client Quit]
07:44
chap8 has joined #ruby
07:49
chap8_IYR has joined #ruby
07:51
TrufflePump has quit [Ping timeout: 276 seconds]
07:53
chap8 has quit [Ping timeout: 260 seconds]
08:23
ur5us has joined #ruby
08:37
EternalSunshine has quit [Ping timeout: 246 seconds]
08:38
TrufflePump has joined #ruby
08:39
sagax has joined #ruby
08:48
jpn has joined #ruby
08:51
EternalSunshine has joined #ruby
08:55
jpn has quit [Quit: Lost terminal]
08:58
dionysus69 has joined #ruby
09:01
chap8_IYR has quit [Remote host closed the connection]
09:04
jpn has joined #ruby
09:15
gproto23 has joined #ruby
09:17
Ziyan has joined #ruby
09:20
___nick___ has joined #ruby
09:20
donofrio__ has quit [Quit: Leaving]
09:21
donofrio__ has joined #ruby
09:23
donofrio__ has quit [Client Quit]
09:23
donofrio__ has joined #ruby
09:23
donofrio__ is now known as donofrio
09:30
donofrio_ has joined #ruby
09:31
donofrio_ has quit [Remote host closed the connection]
09:33
donofrio has quit [Ping timeout: 255 seconds]
10:10
Guest18 has joined #ruby
10:11
donofrio has joined #ruby
10:17
Guest18 has quit [Quit: Client closed]
10:24
Guest18 has joined #ruby
10:24
Guest18 has quit [Client Quit]
10:41
jpn has quit [Ping timeout: 258 seconds]
10:42
jpn has joined #ruby
10:43
markong has joined #ruby
10:47
jpn has quit [Ping timeout: 256 seconds]
10:53
s-liao-2000 has joined #ruby
10:58
jpn has joined #ruby
11:06
ur5us has quit [Ping timeout: 250 seconds]
11:09
s-liao-2000 has quit [Ping timeout: 252 seconds]
11:15
jpn has quit [Quit: Lost terminal]
11:15
jpn has joined #ruby
11:18
wand has quit [Remote host closed the connection]
11:23
wand has joined #ruby
11:27
Ziyan_ has joined #ruby
11:29
Ziyan has quit [Ping timeout: 258 seconds]
11:39
TrufflePump has quit [Ping timeout: 276 seconds]
11:46
EternalSunshine has quit [Ping timeout: 256 seconds]
11:53
dionysus69 has quit [Ping timeout: 250 seconds]
12:00
dionysus69 has joined #ruby
12:35
TrufflePump has joined #ruby
12:41
TrufflePump has quit [Ping timeout: 276 seconds]
12:58
Starfoxxes has quit [Ping timeout: 260 seconds]
13:10
s-liao-2000 has joined #ruby
13:11
Starfoxxes has joined #ruby
13:12
donofrio_ has joined #ruby
13:16
donofrio has quit [Ping timeout: 256 seconds]
13:17
kaivai has joined #ruby
13:18
rvalue has quit [Read error: Connection reset by peer]
13:18
rvalue has joined #ruby
13:19
Ziyan has joined #ruby
13:25
<
dionysus69 >
anyone looking for a rails job? you could work remotely or relocate to Vienna <3
13:36
TrufflePump has joined #ruby
13:39
Exuma has joined #ruby
13:42
TrufflePump has quit [Ping timeout: 276 seconds]
13:51
reset has quit [Quit: reset]
14:05
bit4bit has joined #ruby
14:06
dionysus69 has quit [Ping timeout: 250 seconds]
14:08
Ziyan has quit [Ping timeout: 255 seconds]
14:09
Ziyan has joined #ruby
14:14
dynab has quit [Ping timeout: 255 seconds]
14:16
bit4bit has quit [Ping timeout: 246 seconds]
14:36
TrufflePump has joined #ruby
14:40
TrufflePump has quit [Ping timeout: 240 seconds]
15:02
s-liao-2000 has quit [Quit: Client closed]
15:11
szkl has joined #ruby
15:12
Ziyan has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
15:18
Ziyan has joined #ruby
15:20
jpn has quit [Quit: Lost terminal]
15:24
John_Ivan has joined #ruby
15:27
Andrevan has joined #ruby
15:28
Andrevan is now known as EternalSunshine
15:28
EternalSunshine has joined #ruby
15:28
EternalSunshine has quit [Changing host]
15:35
TrufflePump has joined #ruby
15:38
<
John_Ivan >
does ruby support signature definitions for the purpose of readability?
15:38
<
John_Ivan >
e.g how in C you do
15:38
<
John_Ivan >
myFunction(arg);
15:38
<
John_Ivan >
at the top in a .h file
15:38
_ht has joined #ruby
15:38
<
John_Ivan >
while the myFunction(arg) { ... } implementation is in a .c file
15:42
TrufflePump has quit [Ping timeout: 248 seconds]
15:44
<
adam12 >
John_Ivan: No.
15:44
<
adam12 >
John_Ivan: Tho the new RBS support is kind of close.
15:45
<
John_Ivan >
adam12, I see. well, I managed to do a "hack"
15:45
<
John_Ivan >
since it's a scripting language I can do:
15:46
<
John_Ivan >
and it works. they get overriden.
15:46
<
adam12 >
That works, tho I'm not sure it's something I've seen with much frequency.
15:46
<
adam12 >
It's usually a sign that you don't have enough classes.
15:48
<
adam12 >
You could probably have borrowed the rbs syntax here as a comment. # def downloadSet: (actress_url: String, dir_actress_name: String) -> void
15:48
<
adam12 >
It might have allowed you to move to something else in the future.
15:49
<
adam12 >
It does feel like you're missing classes. Like Actress, and Download
15:55
EternalSunshine has quit [Quit: WeeChat 3.5]
15:55
<
John_Ivan >
adam12, this is a spider
15:55
<
John_Ivan >
it just scrapes data
15:55
<
John_Ivan >
actress is a name. a string
15:55
<
John_Ivan >
adam12, yeah, well, I do tend to write unconventional code so yeah :)
15:56
<
adam12 >
Well an Actress has a name, and a URL, and maybe even a directory.
15:56
<
adam12 >
At least that's what I surmise from the code example.
15:56
<
adam12 >
and a Download might have a destination, a website, and perhaps accepts an Actress? I'm not sure.
15:57
<
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.
15:57
<
John_Ivan >
indeed an actress has a name and url. but it ends there. the directory is optional.
15:57
<
John_Ivan >
adam12, here's the full code.
15:59
<
John_Ivan >
adam12, it's my spider for collecting japanese adult actresses from JavHD.pics
15:59
<
John_Ivan >
1st image is slightly NSFW.
16:00
<
John_Ivan >
this one's NSFW.
16:00
<
adam12 >
Yeah, don't link that in here.
16:00
_root has quit [Ping timeout: 244 seconds]
16:00
<
John_Ivan >
adam12, sure. the rest are SFW. just showing what the spider is capable of.
16:00
<
adam12 >
There's no confusion about what it does, at least from my point of view.
16:00
<
John_Ivan >
I mass downloaded TBs of data thanks to this little crawler I made :)
16:01
<
adam12 >
Let's say you have a module Spider.
16:01
<
adam12 >
Then in that module Spider, you have a CLI class, an Actress class, and maybe a Download class.
16:02
<
adam12 >
CLI class has 2 methods (help and running). Actress class has 2 methods. Download class has 2 plus some private methods.
16:02
<
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.
16:02
<
adam12 >
Having them usually indicates the file is too large and not enough class organization. At least from my POV.
16:02
<
John_Ivan >
adam12, I suppose. but a list of definitions is what I generally look for when I open up any source code file.
16:03
<
John_Ivan >
regardless if stuff is organized or not.
16:03
<
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.
16:03
<
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.
16:04
<
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.
16:04
<
adam12 >
Anyways, no point in beating on it.
16:05
<
John_Ivan >
adam12, I accept and appreciate your advice :)
16:05
<
adam12 >
John_Ivan: Cheers.
16:08
_root has joined #ruby
16:14
TrufflePump has joined #ruby
16:19
Ziyan_ has joined #ruby
16:20
Ziyan has quit [Ping timeout: 255 seconds]
16:33
dionysus69 has joined #ruby
17:10
markong has quit [Ping timeout: 256 seconds]
17:13
<
John_Ivan >
adam12, a good song :)
17:17
TrufflePump has quit [Ping timeout: 240 seconds]
17:20
Sankalp has quit [Ping timeout: 246 seconds]
17:21
Sankalp has joined #ruby
17:31
TrufflePump has joined #ruby
17:43
AMPed has joined #ruby
17:47
AMPed has left #ruby [#ruby]
18:00
dynab has joined #ruby
18:05
Thanzex has quit [Remote host closed the connection]
18:21
szkl has quit [Quit: Connection closed for inactivity]
18:48
Guest56 has joined #ruby
18:48
Guest56 has quit [Client Quit]
18:58
TrufflePump has quit [Ping timeout: 240 seconds]
19:03
Guest56 has joined #ruby
19:04
<
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
19:15
<
adam12 >
Guest56: Install how?
19:16
<
Guest56 >
through rvm?
19:16
<
Guest56 >
i am trying to match the version of ruby my ubuntu server uses
19:18
<
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.
19:20
kiki_lamb has quit [Remote host closed the connection]
19:23
<
Guest56 >
just tried it and no, it just installed 2.7.3
19:25
<
havenwood >
Guest56: Patch levels aren't included in the Ruby version anymore.
19:25
<
havenwood >
They're still there though, just a count of patches since the MAJOR release.
19:26
<
havenwood >
Just ignore the patch level. Ruby 2.7.3 is
*always* the same patch level.
19:26
TrufflePump has joined #ruby
19:29
<
Guest56 >
ahh good to know, thanks you guys for the help!
19:36
micah has left #ruby [#ruby]
19:45
Guest56 has quit [Quit: Client closed]
19:46
<
dorian >
hey does anybody know of an example of a rake task passing an argument to extconf.rb?
19:47
Guest56 has joined #ruby
19:47
Guest56 has quit [Client Quit]
19:51
<
dorian >
ahaaa rake compile -- --whatever-thing
19:56
<
adam12 >
I'm guessing this is specific to the rake-compiler project.
20:01
<
dorian >
yeh i just stumbled across the doc
20:02
_ht has quit [Remote host closed the connection]
20:04
___nick___ has quit [Ping timeout: 255 seconds]
20:04
<
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
20:04
<
dorian >
so was just trying to make sure i didn't ruin anybody's day
20:05
<
dorian >
(ie, i didn't make any of the build tooling and have no idea what i'm doing etc etc)
20:09
<
adam12 >
The mailing list has had an excessive amount of poor emails lately. I wonder if it's time to unsubscribe.
20:12
TrufflePump has quit [Ping timeout: 240 seconds]
20:14
gproto23 has quit [Remote host closed the connection]
20:18
dangerousdave has joined #ruby
20:29
TrufflePump has joined #ruby
20:45
worldly2 has joined #ruby
20:47
rapha has quit [Ping timeout: 260 seconds]
20:54
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:56
worldly2 has quit [Remote host closed the connection]
20:56
worldly2 has joined #ruby
21:01
worldly2 has quit [Ping timeout: 258 seconds]
21:01
emcb547 has joined #ruby
21:04
emcb54 has quit [Ping timeout: 255 seconds]
21:04
emcb547 is now known as emcb54
21:14
dangerousdave has joined #ruby
21:22
ur5us has joined #ruby
21:25
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:25
dangerousdave has joined #ruby
21:27
markong has joined #ruby
21:39
Aminda has quit [Remote host closed the connection]
21:40
Aminda has joined #ruby
21:45
TrufflePump has quit [Ping timeout: 258 seconds]
21:51
gschanuel2 has joined #ruby
21:53
TrufflePump has joined #ruby
21:54
gschanuel has quit [Ping timeout: 276 seconds]
21:54
gschanuel2 is now known as gschanuel
22:05
floss-jas has quit [Remote host closed the connection]
22:05
duds- has quit [Remote host closed the connection]
22:08
duds- has joined #ruby
22:09
Guest75 has joined #ruby
22:10
Guest75 has quit [Client Quit]
22:13
cocalero has joined #ruby
22:18
Aminda has quit [Ping timeout: 240 seconds]
22:18
dionysus69 has quit [Ping timeout: 248 seconds]
22:18
Aminda has joined #ruby
23:09
<
ox1eef >
adam12: poor in what sense, and is this the ruby-talk ML?
23:11
<
leah2 >
i remember when it was good :p
23:25
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:35
RickHull has joined #ruby
23:43
<
John_Ivan >
good song.
23:51
floss-jas has joined #ruby
23:56
markong has quit [Ping timeout: 244 seconds]
23:56
ur5us has quit [Quit: Leaving]