00:00
cliluw has joined #ruby
00:02
pelegreno has joined #ruby
00:03
pelegreno has quit [Remote host closed the connection]
00:09
skryking has quit [Ping timeout: 268 seconds]
00:10
skryking has joined #ruby
00:13
matti has joined #ruby
00:15
comet23 has joined #ruby
00:15
<
comet23 >
how do you pass in multiple procs into a function?
00:16
<
havenwood >
comet23: you just do!
00:16
<
comet23 >
i'm trying def my_func(val, &prc1, &prc2) end
00:16
<
comet23 >
it's raising an error
00:16
<
havenwood >
comet23: you can only pass one block
00:16
<
havenwood >
comet23: you can pass multiple procs as arguments
00:16
<
havenwood >
comet23: my_func(val, prc1, prc2)
00:17
<
comet23 >
thank you so much!! :D
00:17
<
havenwood >
comet23: if it makes sense, you could pass
*one* as the block
00:17
<
havenwood >
comet23: no prob!
00:19
pelegreno has joined #ruby
00:22
brandoncc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:22
graft has joined #ruby
00:25
lucasb has quit [Quit: Connection closed for inactivity]
00:29
pebble2016 has quit [Quit: Connection closed for inactivity]
00:31
orbyt_ has joined #ruby
00:31
joast has quit [Quit: Leaving.]
00:33
SeepingN has quit [Quit: The system is going down for reboot NOW!]
00:38
matheusmoreira has quit [Ping timeout: 252 seconds]
00:39
matheusmoreira has joined #ruby
00:42
esp32_prog has joined #ruby
00:44
graft has quit [Ping timeout: 268 seconds]
00:46
esp32_prog has quit [Ping timeout: 246 seconds]
00:47
shortCircuit__ has joined #ruby
00:49
bairyn is now known as ByronJohnson
00:52
shortCircuit__ has quit [Ping timeout: 248 seconds]
00:57
wald0 has quit [Read error: No route to host]
00:58
troulouliou_div2 has quit [Remote host closed the connection]
01:01
bambanx has joined #ruby
01:04
<
comet23 >
hey havenwood i'm a bit confused why &prc is even an option
01:05
<
comet23 >
passing it as a normal param seems better?
01:05
<
havenwood >
comet23: a proc is an object, which takes space in memory
01:05
<
comet23 >
aren't parameters objects too?
01:05
<
havenwood >
comet23: you're right that procs alone would suffice
01:05
<
havenwood >
comet23: blocks have various efficiencies, and the common pattern of one important proc justifies the savings
01:06
leitz has quit [Quit: Leaving]
01:06
brandoncc has joined #ruby
01:06
<
comet23 >
what's the "correct" use case for the ampersand?
01:06
<
havenwood >
comet23: it's for passing a block. the block doesn't get an object allocated. it's an efficiency.
01:07
<
havenwood >
comet23: & calls #to_proc and passes that proc as a block
01:07
<
comet23 >
so can it be thought of as an expression?
01:07
<
comet23 >
like 2 + 2
01:07
<
comet23 >
it gets executed and immediately discarded
01:07
<
havenwood >
comet23: yeah, i think that's fair
01:07
<
comet23 >
that clears things up, thank you for your time :)
01:08
<
havenwood >
comet23: if it weren't for optimizations, we could just use a single proc as an additional argument in place of a block
01:08
<
havenwood >
comet23: there's no case where you couldn't substitute a proc argument for a block
01:10
arahael1 has joined #ruby
01:10
Arahael has quit [Ping timeout: 248 seconds]
01:11
Leopere has joined #ruby
01:11
pebble2016 has joined #ruby
01:12
octos has quit [Read error: Connection reset by peer]
01:12
octos has joined #ruby
01:13
<
comet23 >
ruby is really cool... i'm going to try to build a simple 2 player chess game for a challenge
01:13
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:13
<
havenwood >
comet23: that's good fun
01:15
<
al2o3-cr >
comet23: blocks are just closures
01:15
<
baweaver >
comet23: What exactly are you trying to do that a function needs two blocks?
01:17
<
comet23 >
i'm just learning ruby by doing coding challenges baweaver
01:18
<
baweaver >
I get that, but what problem and why do you want to do that specifically to solve it?
01:18
<
al2o3-cr >
say lua e.g: function foo(n) return function() n * 2 end
01:18
<
havenwood >
comet23: i had that same question, and also implemented a chess game as a challenge :)
01:20
<
al2o3-cr >
say lua e.g: function foo(n) return function() return * 2 end end; foo(42)()
01:21
<
comet23 >
because of your wonderful explanation i got the test cases to pass :)
01:22
<
al2o3-cr >
comet23: it stops execution of the current thread
01:23
<
comet23 >
al2o3-cr: that's way over my head at this point haha, but i'll try to memorize that phrase and hopefully it will click when i finally make that mistake and it will be an AHA! moment
01:25
<
baweaver >
comet23: closures
01:25
<
baweaver >
Do you know what those are yet?
01:25
<
baweaver >
A function remembers the context in which it was defined
01:26
<
baweaver >
&>> def adds(n) -> v { n + v } end; (1..5).map(&adds(5))
01:26
<
comet23 >
i think so (but i'm not very confident at this point), i think a closure is a function within a function where the code is "hidden" from the global scope
01:26
<
baweaver >
How does `adds` remember what `n` is?
01:27
<
baweaver >
because of the context it was defined in, which was when the `adds` function was called
01:27
<
baweaver >
So it sees `n` when it creates that proc, and remembers that value
01:27
<
baweaver >
&>> def adds(n) -> v { n + v } end; (1..5).map(&adds(5))
01:27
<
baweaver >
There it goes
01:27
<
comet23 >
really cool!
01:28
<
comet23 >
you're opening my brain, i'm feeling elated right now :D
01:28
graft has joined #ruby
01:28
graft has quit [Changing host]
01:28
graft has joined #ruby
01:30
<
al2o3-cr >
ruby as block/proc/lambdas because it's not a functional ... what baweaver said.
01:30
<
baweaver >
Eh, depends on what people mean by functional
01:31
<
baweaver >
If you have a lambda or function construct that you can pass as an argument a language is sufficiently functional in a manner of speaking
01:31
<
baweaver >
Doesn't mean it'll necessarily be pleasant though, which is where languages like Haskell tend to win out for having first class language-level support for functional pattersn
01:31
<
baweaver >
namely things like Functors, Applicatives, Monoids, Groups, and other concepts in that vein
01:31
<
Eiam >
whats with the stabby operater there
01:32
<
baweaver >
Like it has operators defined explicitly for interacting with those
01:32
<
baweaver >
-> x { x } == lambda { |x| x }
01:32
<
comet23 >
you guys are awesome, like all of you :D
01:33
<
al2o3-cr >
baweaver: that's why constucts exist
01:33
<
Eiam >
oh cause you wanted it to be callable via &adds later on
01:33
<
baweaver >
Just saying it depends on how pedantic one wants to be on the terminology
01:33
<
baweaver >
bingo, closures
01:33
<
al2o3-cr >
pedantic?
01:34
<
baweaver >
If I went into a Haskell channel and said Java is a functional language because it has lambdas they'd lose their minds
01:34
<
al2o3-cr >
blocks are closures. nothing more, nothing less.
01:34
<
comet23 >
how is that not a true statement baweaver?
01:34
<
baweaver >
I suppose a more apt term would be ability to express concepts native to functional programming
01:35
<
baweaver >
In terms of actual support for high-level functional expressions Java is low on the list, whereas languages like Haskell and OCaml are high
01:36
budonyc has joined #ruby
01:37
orbyt_ has joined #ruby
01:38
<
al2o3-cr >
baweaver: what a closure in python|lua|php etc...
01:38
<
baweaver >
Not entirely sure we're tracking on the same discussion
01:39
<
baweaver >
My vantage was that you'd mentioned Ruby wasn't functional
01:39
<
al2o3-cr >
are blocks closures?
01:39
graft has quit [Ping timeout: 248 seconds]
01:40
<
al2o3-cr >
baweaver: are blocks closures?
01:40
<
Eiam >
javascript is a functional language, change my mind!
01:40
<
brool >
i'd call blocks anonymous functions
01:40
<
al2o3-cr >
brool: they're closures
01:41
<
Eiam >
baweaver: I understand the nuance you are drawing bu tonly cause I used to be in #haskell =)
01:41
<
al2o3-cr >
like any other language
01:42
<
brool >
eiam: i tried dropping the java line in #haskell just now but they must be on to me, nobody took the bait
01:45
<
al2o3-cr >
function add(a, b) return function(a,b) return a+b end end; is the same as def add(a, b) yield/&block.call
01:46
<
brool >
well it was fun while it lasted
01:47
budonyc has quit [Quit: Leaving]
01:48
<
al2o3-cr >
[1,2,3].select { |n| n.even? }
01:48
jenrzzz has quit [Ping timeout: 272 seconds]
01:48
<
al2o3-cr >
closure!!
01:50
<
baweaver >
al2o3-cr: (+ 1 1)
01:50
<
baweaver >
clojure!
01:50
<
al2o3-cr >
baweaver: :P
01:51
<
al2o3-cr >
blocks are the shit of ruby
01:52
<
al2o3-cr >
but many people don't understand them
01:54
ixti has joined #ruby
01:55
<
al2o3-cr >
all they are is closures
01:59
AJA4350 has quit [Quit: AJA4350]
01:59
<
comet23 >
have a great night everyone!
01:59
<
al2o3-cr >
comet23: u 2
02:00
<
al2o3-cr >
good band that
02:00
<
al2o3-cr >
trust ruby is shit hot
02:06
<
al2o3-cr >
brool: exactly that
02:09
<
al2o3-cr >
you can't return a symbol or nil
02:10
<
al2o3-cr >
method -> closure -> end of method
02:13
teeigeryuh has quit [Ping timeout: 258 seconds]
02:18
<
al2o3-cr >
&>> def foo(n) yield(n * 2) end; foo(42) { |n| n }
02:18
<
al2o3-cr >
fuck blocks
02:19
<
al2o3-cr >
use &blocks if need to pass around; otherwise use yield
02:22
brandoncc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:26
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:29
<
al2o3-cr >
b.call(n * 2) that's where people get confused
02:29
<
al2o3-cr >
passing &b in the method
02:30
esp32_prog has joined #ruby
02:30
duderonomy has joined #ruby
02:35
esp32_prog has quit [Ping timeout: 245 seconds]
02:39
_whitelogger has joined #ruby
02:46
joast has joined #ruby
03:05
braincrash has quit [Quit: bye bye]
03:10
brool has quit [Ping timeout: 257 seconds]
03:10
braincrash has joined #ruby
03:13
haxx0r has quit [Ping timeout: 258 seconds]
03:19
pebble2016 has quit [Quit: Connection closed for inactivity]
03:48
bambanx has quit [Quit: Leaving]
04:05
jenrzzz has joined #ruby
04:18
brandoncc has joined #ruby
04:18
esp32_prog has joined #ruby
04:20
nowhere_man has joined #ruby
04:23
weteamsteve1 has joined #ruby
04:23
esp32_prog has quit [Ping timeout: 258 seconds]
04:24
nowhereman has quit [Ping timeout: 248 seconds]
04:25
comet23 has quit [Quit: Connection closed for inactivity]
04:26
weteamsteve has quit [Ping timeout: 250 seconds]
04:35
apg has quit [Remote host closed the connection]
04:37
KramerC has quit [Remote host closed the connection]
04:37
MuffinPimp has quit [Quit: Goodbye.]
04:37
KramerC has joined #ruby
04:37
MuffinPimp_ has joined #ruby
04:38
haxx0r has joined #ruby
04:38
MuffinPimp_ is now known as MuffinPimp
04:43
jcalla has joined #ruby
04:48
shortCircuit__ has joined #ruby
04:49
salerace has quit [Read error: Connection reset by peer]
04:50
weteamsteve2 has joined #ruby
04:50
salerace has joined #ruby
04:52
shortCircuit__ has quit [Ping timeout: 248 seconds]
04:53
weteamsteve1 has quit [Ping timeout: 258 seconds]
04:54
weteamsteve has joined #ruby
04:56
weteamsteve2 has quit [Ping timeout: 258 seconds]
04:59
dellavg_ has joined #ruby
05:06
weteamsteve1 has joined #ruby
05:08
weteamsteve2 has joined #ruby
05:09
kyrylo has joined #ruby
05:10
weteamsteve has quit [Ping timeout: 250 seconds]
05:11
weteamsteve1 has quit [Ping timeout: 248 seconds]
05:24
weteamsteve2 has quit [Ping timeout: 244 seconds]
05:34
fphilipe has joined #ruby
05:39
plujon has quit [Quit: ERC (IRC client for Emacs 25.2.2)]
05:44
duderonomy has joined #ruby
05:46
duderonomy has quit [Client Quit]
05:46
duderonomy has joined #ruby
05:48
ur5us has quit [Remote host closed the connection]
05:49
ur5us has joined #ruby
05:50
tdy has quit [Ping timeout: 258 seconds]
05:50
nwradio878887987 has quit [Ping timeout: 252 seconds]
05:50
shortCircuit__ has joined #ruby
05:52
nwradio878887987 has joined #ruby
05:53
ur5us has quit [Ping timeout: 246 seconds]
06:06
esp32_prog has joined #ruby
06:12
esp32_prog has quit [Ping timeout: 272 seconds]
06:26
jenrzzz has quit [Ping timeout: 258 seconds]
06:27
andikr has joined #ruby
06:36
jenrzzz has joined #ruby
06:36
andikr has quit [Remote host closed the connection]
06:45
<
Net >
How should I handle creating private helper methods in a subclass that don't override private methods of the same name in the parent class?
06:48
jenrzzz has quit [Ping timeout: 244 seconds]
06:51
shortCircuit__ has quit [Ping timeout: 268 seconds]
06:58
brandoncc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
07:01
dbugger has joined #ruby
07:02
<
phaul >
Net do you have a code example?
07:02
jefffrails35 has joined #ruby
07:03
<
phaul >
I dont fully understand what is the aim here
07:04
<
Net >
phaul: I have running into naming collisions with a subclass' parent
07:04
<
Net >
*I am running into
07:05
<
Net >
where the parent has some private methods defined with a common name
07:05
<
Net >
I could just name the subclass's methods something else
07:05
<
Net >
but the parent class has a lot of methods
07:06
<
Net >
and I would rather just have a more reliable solution
07:06
<
Net >
to what seems like should be a fairly common problem
07:06
xco has joined #ruby
07:07
<
phaul >
well.. good designs tend to have small classes with few methods which seems to be violated by the superclass
07:07
<
Net >
phaul: agreed
07:07
jenrzzz has joined #ruby
07:07
<
ruby[bot] >
xco: I don't know anything about log
07:07
<
Net >
phaul: unfortunately, "good design" is not the description I would use for this project :)
07:08
<
phaul >
if you don't own/want to touch the superclass, everything in the subclass will have a hacky feel to it
07:08
<
xco >
phaul: how do you get the log of the convos? :D
07:11
<
phaul >
Net: for methods that are not instance methods in the sense that they dont reference instance variables I would move them into a Module maybe nested in the class. for methods that touch instance variables, it's a bit tricky
07:12
schne1der has joined #ruby
07:16
<
phaul >
another thing to try is not to inherit, but delegate to an instance var of the superclass type
07:17
<
phaul >
that way you don't inherit the large interface, so your (subclass's) clients wont see any of it, so it stops the propagation of badness
07:18
<
Net >
phaul: thanks!
07:18
<
Net >
phaul: what do you think of just prefixing method names?
07:19
<
phaul >
Im not big fan.
07:19
<
Net >
I can imagine why
07:32
<
xco >
General question: Are there any methods in Ruby that were “copied” from Rails? I’m very curious.
07:35
dionysus69 has joined #ruby
07:35
<
leftylink >
I don't know if &. was also in this category
07:35
conta has joined #ruby
07:41
jenrzzz has quit [Ping timeout: 244 seconds]
07:42
bougyman has quit [Read error: Connection reset by peer]
07:42
bougyman_ has joined #ruby
07:45
deepreds1 has quit [Ping timeout: 272 seconds]
07:45
esp32_prog has joined #ruby
07:48
ur5us has joined #ruby
07:56
sameerynho has joined #ruby
07:56
marz_d`ghostman has joined #ruby
07:56
<
marz_d`ghostman >
In minitest, is there a like after(:all) testwide function? like I want to invoke a method after all tests/* is run
08:05
fphilipe has quit [Ping timeout: 258 seconds]
08:13
fphilipe has joined #ruby
08:13
jenrzzz has joined #ruby
08:14
alem0lars has joined #ruby
08:15
deepreds1 has joined #ruby
08:19
nowhere_man has quit [Ping timeout: 268 seconds]
08:45
Jonopoly has joined #ruby
08:46
cd has quit [Quit: cd]
08:47
jenrzzz has quit [Ping timeout: 248 seconds]
08:49
esp32_prog has quit [Ping timeout: 245 seconds]
08:50
ngw has joined #ruby
08:54
planigan has quit [Ping timeout: 272 seconds]
08:55
fphilipe has quit [Read error: Connection reset by peer]
08:55
blackmesa has joined #ruby
08:58
fphilipe has joined #ruby
08:58
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:00
planigan has joined #ruby
09:01
dhollin3 has joined #ruby
09:03
mikecmpbll has quit [Quit: inabit. zz.]
09:04
evdubs has quit [Remote host closed the connection]
09:04
evdubs has joined #ruby
09:04
dhollinger has quit [Ping timeout: 272 seconds]
09:10
blackmesa has quit [Quit: WeeChat 2.4]
09:13
jenrzzz has joined #ruby
09:20
mikecmpbll has joined #ruby
09:37
alem0lars_ has joined #ruby
09:39
alem0lars has quit [Ping timeout: 244 seconds]
09:39
esp32_prog has joined #ruby
09:39
r3m_ has joined #ruby
09:40
r3m has quit [Disconnected by services]
09:40
r3m_ is now known as r3m
09:47
jenrzzz has quit [Ping timeout: 248 seconds]
09:49
esp32_prog has quit [Ping timeout: 268 seconds]
09:55
chichou has joined #ruby
09:56
conta has quit [Quit: conta]
10:04
paraxial has joined #ruby
10:07
blackmesa has joined #ruby
10:08
ams__ has joined #ruby
10:14
jenrzzz has joined #ruby
10:14
alem0lars_ has quit [Remote host closed the connection]
10:16
blackmesa has quit [Ping timeout: 250 seconds]
10:18
shortCircuit__ has joined #ruby
10:26
shortCircuit__ has quit [Ping timeout: 246 seconds]
10:33
deathwishdave has joined #ruby
10:35
gregf_ has joined #ruby
10:43
nowhere_man has joined #ruby
10:45
ur5us has quit [Remote host closed the connection]
10:45
ur5us has joined #ruby
10:45
salerace has quit [Ping timeout: 248 seconds]
10:48
jenrzzz has quit [Ping timeout: 248 seconds]
10:49
ur5us has quit [Read error: Connection reset by peer]
10:50
nowhere_man has quit [Ping timeout: 272 seconds]
10:51
ur5us has joined #ruby
10:52
ur5us has quit [Remote host closed the connection]
10:53
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
10:53
ur5us has joined #ruby
10:54
ur5us has quit [Remote host closed the connection]
10:54
ur5us has joined #ruby
10:55
ur5us has quit [Remote host closed the connection]
10:55
ur5us has joined #ruby
10:55
ur5us has quit [Write error: Connection reset by peer]
11:05
ur5us has joined #ruby
11:06
ur5us has quit [Remote host closed the connection]
11:07
chichou has quit [Quit: WeeChat 2.4]
11:07
fphilipe has quit [Ping timeout: 252 seconds]
11:08
ur5us has joined #ruby
11:09
ur5us has quit [Read error: Connection reset by peer]
11:09
ur5us has joined #ruby
11:09
ur5us has quit [Read error: Connection reset by peer]
11:19
arahael1 is now known as Arahael
11:19
ur5us has joined #ruby
11:19
ur5us has quit [Read error: Connection reset by peer]
11:20
ur5us has joined #ruby
11:20
ur5us has quit [Remote host closed the connection]
11:21
Ai9zO5AP has joined #ruby
11:22
AJA4350 has joined #ruby
11:22
jenrzzz has joined #ruby
11:23
ur5us has joined #ruby
11:24
ur5us has quit [Remote host closed the connection]
11:24
ur5us has joined #ruby
11:24
kyrylo has joined #ruby
11:24
wald0 has joined #ruby
11:24
ur5us has quit [Remote host closed the connection]
11:33
esp32_prog has joined #ruby
11:34
ur5us has joined #ruby
11:34
ur5us has quit [Remote host closed the connection]
11:38
esp32_prog has quit [Ping timeout: 250 seconds]
11:39
ur5us has joined #ruby
11:40
ur5us has quit [Remote host closed the connection]
11:40
ur5us has joined #ruby
11:41
ur5us has quit [Remote host closed the connection]
11:41
ur5us has joined #ruby
11:41
ur5us has quit [Remote host closed the connection]
11:43
Jonopoly has quit [Ping timeout: 264 seconds]
11:45
laaron has joined #ruby
11:46
ur5us has joined #ruby
11:46
ur5us has quit [Remote host closed the connection]
11:46
ur5us has joined #ruby
11:47
ur5us has quit [Remote host closed the connection]
11:48
Jonopoly has joined #ruby
11:49
ngw has quit [Ping timeout: 272 seconds]
11:50
conta has joined #ruby
11:51
ur5us has joined #ruby
11:51
<
havenwood >
xco: Yes, more than a few.
11:52
<
xco >
any comes to mind?
11:52
bijan_ has joined #ruby
11:52
ur5us has quit [Remote host closed the connection]
11:52
<
havenwood >
xco: #transform_keys, #transform_values
11:52
<
havenwood >
xco: activesupport features make it into Ruby from time to time
11:53
<
xco >
yeah i know that. just wanted to create a list of those and observe them, turn them to a blog post for my futureself
11:54
<
havenwood >
marz_d`ghostman: after_run
11:55
ur5us has joined #ruby
11:56
ur5us has quit [Remote host closed the connection]
11:56
ur5us has joined #ruby
11:56
ur5us has quit [Read error: Connection reset by peer]
11:57
ur5us has joined #ruby
11:57
ur5us has quit [Remote host closed the connection]
11:57
<
havenwood >
xco: #try is another example
11:58
alotofnoodles has joined #ruby
11:58
<
xco >
Ruby has try? I thought that version was changed ti &.
11:58
ngw has joined #ruby
11:58
<
xco >
safe navigation
11:58
<
havenwood >
xco: yeah, you're right
11:58
<
alotofnoodles >
exit
11:59
<
havenwood >
xco: #sum
11:59
alotofnoodles has quit [Quit: ERC (IRC client for Emacs 26.2)]
11:59
<
xco >
didn’t know “sum” was stolen
12:00
alotofnoodles has joined #ruby
12:01
fphilipe has joined #ruby
12:01
<
marz_d`ghostman >
havenwood: yeah thanks, I just needed to place it under test_helper. I was using it but was placing it under a specific test file, silly me. :)
12:05
alotofnoodles has quit [Quit: ERC (IRC client for Emacs 26.2)]
12:06
haxx0r has quit [Remote host closed the connection]
12:07
ur5us has joined #ruby
12:07
ur5us has quit [Remote host closed the connection]
12:10
ur5us has joined #ruby
12:10
ur5us has quit [Remote host closed the connection]
12:10
sylario has joined #ruby
12:10
ur5us has joined #ruby
12:10
Guest42 has joined #ruby
12:11
ur5us has quit [Remote host closed the connection]
12:11
ur5us has joined #ruby
12:11
blackmesa has joined #ruby
12:11
ur5us has quit [Remote host closed the connection]
12:13
kookoop has joined #ruby
12:15
kookoop has left #ruby [#ruby]
12:19
bijan_ has quit [Remote host closed the connection]
12:21
k_ has joined #ruby
12:21
bijan_ has joined #ruby
12:21
ur5us has joined #ruby
12:22
ur5us has quit [Remote host closed the connection]
12:22
mkaito has joined #ruby
12:22
mkaito has quit [Changing host]
12:22
mkaito has joined #ruby
12:22
jenrzzz has quit [Ping timeout: 268 seconds]
12:22
[spoiler] has quit [Ping timeout: 257 seconds]
12:23
kevinsjoberg_ has joined #ruby
12:23
jnix has quit [Ping timeout: 264 seconds]
12:23
arooni has quit [Ping timeout: 246 seconds]
12:23
raggi__ has joined #ruby
12:23
catsed has joined #ruby
12:23
laaron- has joined #ruby
12:23
peteretep_ has joined #ruby
12:23
rann_ has joined #ruby
12:23
pwillard_ has joined #ruby
12:23
gajus_ has joined #ruby
12:24
ammar has quit [Ping timeout: 258 seconds]
12:24
gmcintire has quit [Ping timeout: 264 seconds]
12:24
timeless_ has joined #ruby
12:24
mclee has quit [Ping timeout: 252 seconds]
12:24
arooni has joined #ruby
12:24
nixy0 has joined #ruby
12:24
Junaos has quit [Remote host closed the connection]
12:24
lucas has quit [Ping timeout: 252 seconds]
12:24
laaron has quit [Ping timeout: 256 seconds]
12:24
rprimus has quit [Ping timeout: 245 seconds]
12:24
Spitfire has quit [Ping timeout: 257 seconds]
12:24
EvilJStoker has quit [Ping timeout: 257 seconds]
12:24
Junaos has joined #ruby
12:25
russt has quit [Ping timeout: 252 seconds]
12:25
kookoop has joined #ruby
12:25
jmcgnh has quit [Quit: Bye for now!]
12:25
nixy has quit [Read error: Connection reset by peer]
12:25
canton7 has quit [Ping timeout: 252 seconds]
12:25
alem0lars has joined #ruby
12:25
Jello_Raptor has quit [Ping timeout: 258 seconds]
12:25
Soulcutter has quit [Ping timeout: 268 seconds]
12:25
haylon_ has joined #ruby
12:25
mclee has joined #ruby
12:25
miah has quit [Ping timeout: 258 seconds]
12:25
ammar has joined #ruby
12:25
k_ has quit [Read error: Connection reset by peer]
12:25
kenichi has quit [Ping timeout: 244 seconds]
12:25
timeless has quit [Ping timeout: 252 seconds]
12:25
rann has quit [Ping timeout: 252 seconds]
12:25
cats has quit [Ping timeout: 252 seconds]
12:25
gajus has quit [Ping timeout: 252 seconds]
12:25
kevinsjoberg has quit [Ping timeout: 252 seconds]
12:25
peteretep has quit [Ping timeout: 252 seconds]
12:25
pwillard has quit [Ping timeout: 252 seconds]
12:25
jp has quit [Ping timeout: 252 seconds]
12:25
raggi has quit [Ping timeout: 252 seconds]
12:25
haylon has quit [Ping timeout: 252 seconds]
12:25
jtperreault has quit [Ping timeout: 252 seconds]
12:25
mahlon has quit [Read error: Connection reset by peer]
12:25
jp has joined #ruby
12:25
gajus_ is now known as gajus
12:25
rann_ is now known as rann
12:25
peteretep_ is now known as peteretep
12:25
kevinsjoberg_ is now known as kevinsjoberg
12:25
raggi__ is now known as raggi
12:25
catsed is now known as cats
12:25
mahlon_ has joined #ruby
12:25
go|dfish has quit [Ping timeout: 252 seconds]
12:25
Mon_Ouie has quit [Ping timeout: 252 seconds]
12:25
pwillard_ is now known as pwillard
12:25
Alison`8 has quit [Ping timeout: 268 seconds]
12:25
EvilJStoker has joined #ruby
12:26
EvilJStoker has quit [Changing host]
12:26
EvilJStoker has joined #ruby
12:26
lucas has joined #ruby
12:26
bijan_ has quit [Ping timeout: 248 seconds]
12:26
SolarAquarion has quit [Read error: Connection reset by peer]
12:26
gmcintire has joined #ruby
12:26
bijan_ has joined #ruby
12:26
[spoiler] has joined #ruby
12:26
russt has joined #ruby
12:26
canton7 has joined #ruby
12:26
Jello_Raptor has joined #ruby
12:26
Guest50634 has joined #ruby
12:26
jnix has joined #ruby
12:26
Soulcutter has joined #ruby
12:26
Alison`8 has joined #ruby
12:26
kenichi has joined #ruby
12:27
timeless_ is now known as timeless
12:27
k_ has joined #ruby
12:27
cjohnson has quit [Remote host closed the connection]
12:27
cjohnson has joined #ruby
12:27
Mon_Ouie has joined #ruby
12:27
jtperreault has joined #ruby
12:28
jhill has quit [Ping timeout: 248 seconds]
12:28
AJA4350 has quit [Remote host closed the connection]
12:28
AJA4350 has joined #ruby
12:28
kookoop has left #ruby ["ERC (IRC client for Emacs 26.2)"]
12:29
jhill has joined #ruby
12:30
bijan_ has quit [Read error: Connection reset by peer]
12:30
bijan_ has joined #ruby
12:31
rprimus has joined #ruby
12:31
miah has joined #ruby
12:34
bijan__ has joined #ruby
12:36
bijan_ has quit [Ping timeout: 264 seconds]
12:36
haxx0r has joined #ruby
12:38
bijan_ has joined #ruby
12:39
bijan__ has quit [Ping timeout: 248 seconds]
12:40
bijan_ has quit [Read error: Connection reset by peer]
12:40
bijan_ has joined #ruby
12:48
jenrzzz has joined #ruby
12:52
alem0lars has quit [Remote host closed the connection]
12:53
go|dfish has joined #ruby
12:55
blackmesa has quit [Quit: WeeChat 2.4]
12:57
ams__ has quit [Quit: Connection closed for inactivity]
12:59
deathwishdave has joined #ruby
13:00
SolarAquarion has joined #ruby
13:01
deathwishdave has quit [Client Quit]
13:07
Guest7 has joined #ruby
13:07
Guest7 is now known as Jitterbug
13:08
<
Jitterbug >
puts 'greetings, #ruby'
13:08
<
havenwood >
&>> 'helloooooo'.squeeze 'o'
13:09
Guest42 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:11
Spitfire has joined #ruby
13:11
Spitfire has quit [Changing host]
13:11
Spitfire has joined #ruby
13:11
<
Jitterbug >
jitterbug has created a monster w/ kafka + racecar --- any others into event streaming?
13:14
mkaito has joined #ruby
13:14
mkaito has joined #ruby
13:14
mkaito has quit [Changing host]
13:16
mkaito has quit [Client Quit]
13:17
ngw has quit [Read error: Connection reset by peer]
13:18
mkaito has joined #ruby
13:18
mkaito has quit [Changing host]
13:18
mkaito has joined #ruby
13:20
ngw has joined #ruby
13:21
esp32_prog has joined #ruby
13:22
jenrzzz has quit [Ping timeout: 245 seconds]
13:23
octos has quit [Ping timeout: 258 seconds]
13:25
RedSnarf has joined #ruby
13:25
Swyper has joined #ruby
13:26
esp32_prog has quit [Ping timeout: 245 seconds]
13:26
ricekrispie2 has quit [Ping timeout: 248 seconds]
13:28
Swyper has quit [Remote host closed the connection]
13:31
octos has joined #ruby
13:32
k_ has quit [Ping timeout: 246 seconds]
13:39
dbugger has quit [Quit: Leaving]
13:45
reber has joined #ruby
13:46
Swyper has joined #ruby
13:50
Sina has joined #ruby
13:50
jenrzzz has joined #ruby
14:03
ngw has quit [Quit: WeeChat 2.4]
14:04
TimApple has joined #ruby
14:14
rippa has joined #ruby
14:14
jenrzzz has quit [Ping timeout: 248 seconds]
14:16
TimApple has quit [Quit: Gone.]
14:16
TimApple has joined #ruby
14:17
ljarvis has quit [Quit: WeeChat 2.4]
14:18
TimApple has quit [Client Quit]
14:19
brandoncc has joined #ruby
14:19
brandoncc has quit [Client Quit]
14:20
brandoncc has joined #ruby
14:29
dhollin3 is now known as dhollinger
14:39
FrankDW2 has quit [Changing host]
14:39
FrankDW2 has joined #ruby
14:51
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
14:59
s3nd1v0g1us has joined #ruby
15:00
salerace has joined #ruby
15:03
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:03
ixti has quit [Quit: WeeChat 2.3]
15:10
esp32_prog has joined #ruby
15:14
esp32_prog has quit [Ping timeout: 248 seconds]
15:16
jeremycw has joined #ruby
15:22
brandoncc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:26
salerace has quit [Ping timeout: 248 seconds]
15:28
sphenxes has joined #ruby
15:30
cthulchu_ has joined #ruby
15:31
yasumi2136 has joined #ruby
15:34
polishdub has joined #ruby
15:35
doodlebug has joined #ruby
15:35
AndreYuhai has quit [Remote host closed the connection]
15:35
AndreYuhai has joined #ruby
15:37
moei has joined #ruby
15:37
AndreYuhai has quit [Remote host closed the connection]
15:42
bijan_ has joined #ruby
15:43
kyrylo has joined #ruby
15:46
gmatutecr has quit [Quit: WeeChat 1.9.1]
15:50
laaron has joined #ruby
15:51
fphilipe has quit [Ping timeout: 268 seconds]
15:51
bijan_ has quit [Remote host closed the connection]
15:52
sagax has quit [Remote host closed the connection]
15:52
yqt has joined #ruby
15:52
sagax has joined #ruby
15:52
bijan_ has joined #ruby
15:54
mikecmpbll has quit [Quit: inabit. zz.]
15:55
graft has joined #ruby
15:55
fphilipe has joined #ruby
15:56
bijan__ has joined #ruby
15:56
mikecmpbll has joined #ruby
15:57
bijan_ has quit [Ping timeout: 258 seconds]
15:59
bijan__ has quit [Read error: Connection reset by peer]
16:00
bijan_ has joined #ruby
16:00
fphilipe has quit [Ping timeout: 258 seconds]
16:00
tdy has joined #ruby
16:01
weteamsteve has joined #ruby
16:02
n13z has quit [Ping timeout: 245 seconds]
16:04
bijan__ has joined #ruby
16:04
wald0 has quit [Quit: Lost terminal]
16:04
bijan_ has quit [Ping timeout: 258 seconds]
16:07
mikecmpbll has quit [Quit: inabit. zz.]
16:09
bijan__ has quit [Ping timeout: 252 seconds]
16:09
bijan_ has joined #ruby
16:11
codefriar has joined #ruby
16:13
bijan__ has joined #ruby
16:14
bijan_ has quit [Ping timeout: 258 seconds]
16:15
sagax has quit [Quit: Konversation terminated!]
16:17
Jonopoly has quit [Quit: WeeChat 2.4]
16:17
bijan__ has quit [Read error: Connection reset by peer]
16:18
bijan_ has joined #ruby
16:19
weteamsteve1 has joined #ruby
16:20
Swyper has quit [Remote host closed the connection]
16:20
deepreds1 has quit [Ping timeout: 246 seconds]
16:21
weteamsteve has quit [Ping timeout: 252 seconds]
16:21
weteamsteve2 has joined #ruby
16:22
bijan_ has quit [Ping timeout: 245 seconds]
16:22
bijan__ has joined #ruby
16:25
weteamsteve1 has quit [Ping timeout: 250 seconds]
16:26
bijan_ has joined #ruby
16:27
bijan__ has quit [Ping timeout: 272 seconds]
16:30
bijan__ has joined #ruby
16:30
bijan_ has quit [Ping timeout: 252 seconds]
16:33
bijan__ has quit [Read error: Connection reset by peer]
16:34
Swyper has joined #ruby
16:34
bijan_ has joined #ruby
16:37
brandoncc has joined #ruby
16:37
bijan_ has quit [Read error: Connection reset by peer]
16:38
bijan_ has joined #ruby
16:38
weteamsteve2 has quit [Ping timeout: 250 seconds]
16:39
weteamsteve has joined #ruby
16:39
bijan_ has quit [Read error: Connection reset by peer]
16:40
bijan_ has joined #ruby
16:44
bijan_ has quit [Read error: Connection reset by peer]
16:44
bijan_ has joined #ruby
16:45
weteamsteve1 has joined #ruby
16:45
weteamsteve has quit [Ping timeout: 258 seconds]
16:47
jenrzzz has joined #ruby
16:47
Swyper has quit [Remote host closed the connection]
16:48
bijan_ has quit [Read error: Connection reset by peer]
16:48
bijan_ has joined #ruby
16:50
weteamsteve1 has quit [Ping timeout: 246 seconds]
16:51
weteamsteve has joined #ruby
16:52
bijan__ has joined #ruby
16:52
bijan_ has quit [Ping timeout: 245 seconds]
16:54
jenrzzz has quit [Ping timeout: 245 seconds]
16:54
jenrzzz has joined #ruby
16:55
graft has quit [Ping timeout: 258 seconds]
16:56
bijan__ has quit [Read error: Connection reset by peer]
16:56
Nikhil_Singhal has joined #ruby
16:56
bijan_ has joined #ruby
16:58
esp32_prog has joined #ruby
16:58
Iarfen has joined #ruby
17:00
bijan_ has quit [Read error: Connection reset by peer]
17:00
bijan_ has joined #ruby
17:02
glik22 has joined #ruby
17:02
esp32_prog has quit [Ping timeout: 248 seconds]
17:03
<
glik22 >
i get a LoadError when trying to run bundle install. i'm pretty sure i installed ruby via homebrew
17:03
Nikhil_Singhal has quit [Quit: Quit]
17:04
bijan_ has quit [Read error: Connection reset by peer]
17:04
bijan_ has joined #ruby
17:05
<
havenwood >
glik22: On the current Ruby, have you run? gem install bundler
17:05
<
havenwood >
glik22: check the Ruby and Bundler that you're using.
17:05
<
havenwood >
glik22: which ruby
17:05
<
havenwood >
glik22: which bundle
17:06
<
havenwood >
glik22: gem which bundler
17:06
<
glik22 >
havenwood: both are /usr/local/bin
17:06
Ltem has joined #ruby
17:07
<
havenwood >
glik22: and? gem which bundler
17:07
oz has quit [Quit: EOF]
17:08
<
glik22 >
oh sorry, missed that. /usr/local/Cellar/ruby/2.6.3/lib/ruby/2.6.0/bundler.rb
17:08
<
havenwood >
glik22: yeah, looks like Homebrew Ruby
17:08
<
havenwood >
glik22: show the error you're getting?
17:09
bijan_ has quit [Read error: Connection reset by peer]
17:09
<
glik22 >
/usr/local/bin/bundle:23:in `load': cannot load such file -- /usr/local/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/exe/bundle (LoadError)
17:09
bijan_ has joined #ruby
17:09
<
havenwood >
glik22: sanity check one more thing? head -n1 "$(which bundle)"
17:10
<
glik22 >
havenwood: actually i think i got it. instead of running "bundle install" i tried "bundler install"
17:10
<
glik22 >
which errored but gave a command to update bundle
17:10
<
glik22 >
havenwood: #!/usr/local/opt/ruby/bin/ruby
17:12
oz has joined #ruby
17:12
bijan_ has quit [Read error: Connection reset by peer]
17:12
duderonomy has joined #ruby
17:13
bijan_ has joined #ruby
17:17
bijan_ has quit [Read error: Connection reset by peer]
17:17
<
leftylink >
I guess I understand why you'd say that if you're combining two things, but if you're combining two things into one (as opposed to many things into one) it doesn't seem to buy a lot to use inject/reduce. how about if I say that as a human, the way I would do that is "first I have monday. I look at _from and _to for monday. next I have tuesday. I look at _from and _to for tuesday, and so on for the other
17:18
bijan_ has joined #ruby
17:21
<
havenwood >
&>> >> {"mon_from"=>"14:00", "mon_to"=>"16:00", "tue_from"=>"12:00", "tue_to"=>"19:00"}.group_by { |day_range, _| day_range[0..2] }.map { |day, a| "#{day} #{a.map(&:last).join('-')}" }
17:21
<
havenwood >
#=> ["mon 14:00-16:00", "tue 12:00-19:00"]
17:21
<
havenwood >
xco: that's ^ one way
17:21
jenrzzz has quit [Ping timeout: 246 seconds]
17:21
bijan_ has quit [Read error: Connection reset by peer]
17:22
bijan_ has joined #ruby
17:22
<
havenwood >
&>> {"mon_from"=>"14:00", "mon_to"=>"16:00", "tue_from"=>"12:00", "tue_to"=>"19:00"}.each_slice(2).map { |from, to| "#{from.first[0..2]} #{from.last}-#{to.last}" }
17:22
<
havenwood >
xco: or another ^
17:23
kaleido has quit [Quit: out]
17:24
kaleido has joined #ruby
17:24
ams__ has joined #ruby
17:25
bijan_ has quit [Read error: Connection reset by peer]
17:26
bijan_ has joined #ruby
17:26
<
xco >
havenwood: oh thanks. from this i can learn that anything i do each_slice(n) the number of variable should match “n” so it’ll be like naming the elements, correct?
17:27
<
havenwood >
xco: each_slice(2) just groups by two, which works since your keys are in order
17:27
<
havenwood >
xco: group_by or chomp are other options
17:29
<
xco >
awesome! thanks :)
17:29
<
havenwood >
xco: Hashes are ordered by key insertion in Ruby. Some folk consider it an anti-pattern to rely on that. I think it's actually fine.
17:30
bijan_ has quit [Read error: Connection reset by peer]
17:30
<
havenwood >
xco: group_by is one that doesn't rely on that order
17:30
<
havenwood >
xco: chomp or each_slice do
17:30
bijan_ has joined #ruby
17:30
<
xco >
so a safer bet would be group_by i guess
17:31
<
xco >
but it’s fine if i trust the order of my hash
17:31
<
xco >
or even the keys in them are unique
17:32
dbugger has joined #ruby
17:34
bijan__ has joined #ruby
17:35
bijan_ has quit [Ping timeout: 258 seconds]
17:36
doodleb83 has joined #ruby
17:37
<
havenwood >
xco: you might consider changing the structure of the Hash
17:37
gix has joined #ruby
17:37
<
xco >
hmm, what does that mean?
17:38
<
havenwood >
xco: {mon: "14:00".."16:00", tue: "12:00".."19:00"}
17:38
<
xco >
by that do you mean the “strings” as keys?
17:38
bijan__ has quit [Read error: Connection reset by peer]
17:38
Nikhil_Singhal has joined #ruby
17:38
bijan_ has joined #ruby
17:39
<
xco >
isn’t that a range as values?
17:39
<
xco >
range on strings?
17:39
<
havenwood >
&>> {mon: "14:00".."16:00", tue: "12:00".."19:00"}.map { |k, v| "#{k} #{v.min}-#{v.max}" }
17:40
<
havenwood >
xco: I showed Symbol keys with Range values.
17:40
jenrzzz has joined #ruby
17:40
doodlebug has quit [Ping timeout: 252 seconds]
17:40
<
xco >
oh interesting and cool!
17:40
<
xco >
that’s way easier to deal with!
17:41
<
xco >
havenwood: BUT is there any added advantage to make the values a range?
17:42
<
xco >
i’m guessing just so we could check if some time falls withing the range
17:43
bijan__ has joined #ruby
17:43
bijan_ has quit [Ping timeout: 258 seconds]
17:44
<
havenwood >
xco: when you model it as simply as possible, with aligned meaning, it just tends to be much easier to use
17:45
bijan__ has quit [Read error: Connection reset by peer]
17:45
<
havenwood >
xco: it's also easy to read: mon: '14:00'..'16:00'
17:46
<
xco >
you’re right, makes sense
17:46
<
havenwood >
&>> {mon: '14:00'..'16:00', tue: '12:00'..'19:00'}[:mon].cover? '15:00'
17:46
<
xco >
yeah and that too, that’s what i thought for the first benefit of making the values a range
17:46
<
havenwood >
&>> {mon: '14:00'..'16:00', tue: '12:00'..'19:00'}[:mon].begin
17:47
<
havenwood >
xco: it also just reads nice ^
17:47
<
havenwood >
&>> {mon: '14:00'..'16:00', tue: '12:00'..'19:00'}[:mon].end
17:47
* leftylink
looks for a time-of-day in ruby stdlib
17:48
<
leftylink >
hmmmmmmmmmmmmm
17:48
<
leftylink >
guess it is not in stdlib
17:48
<
leftylink >
too bad
17:49
Eiam has quit [Ping timeout: 250 seconds]
17:49
<
leftylink >
because then the unfortunate thing is then I might have shit like
17:49
<
leftylink >
&>> ("14:00".."23:00").cover?("1:33")
17:50
<
havenwood >
leftylink: gotta use leading zeros :P
17:50
<
havenwood >
&>> ("14:00".."23:00").cover?("01:33")
17:50
<
leftylink >
better hope so
17:51
jenrzzz has quit [Ping timeout: 248 seconds]
17:51
jenrzzz has joined #ruby
17:52
budonyc has joined #ruby
17:55
<
xco >
is it fair to say Enumerable is the most valuable module in Ruby? by that i mean it’s ubiquitous in almost every useful application!
17:56
fphilipe has joined #ruby
17:56
Nikhil_Singhal has left #ruby ["Leaving"]
17:58
<
havenwood >
xco: There are so many important modules, it's hard to say. It's certainly one of the most commonly mixed in modules.
18:00
Nikhil_Singhal has joined #ruby
18:00
<
havenwood >
xco: Kernel is pretty important :P
18:00
<
baweaver >
havenwood: There's a Kernel of truth to that
18:00
fphilipe has quit [Ping timeout: 250 seconds]
18:01
<
baweaver >
IO is pretty high up there as well
18:01
<
xco >
also i guess it depends on the application at hand
18:01
<
Nikhil_Singhal >
Guys? I strated learning ruby 10-15 days but i m not able to the things in ruby way
18:01
<
Nikhil_Singhal >
How can i improve?
18:01
<
havenwood >
Nikhil_Singhal: show us some code you've been writing, and we can suggest improvement
18:02
<
Nikhil_Singhal >
Okay
18:02
<
havenwood >
Nikhil_Singhal: reading code is a good way to get ideas too
18:04
<
xco >
Nikhil_Singhal: you can also work your way up codewars, best part of that is after you solve a problem, they show you yet a better way to do it, that way you learn more and discover more “ruby ways”
18:06
<
havenwood >
baweaver: Ah shucks, it's a-maize-ing hominy corn puns you ear cobbled around this channel.
18:07
schne1der has quit [Ping timeout: 244 seconds]
18:07
ricekrispie has joined #ruby
18:10
<
Nikhil_Singhal >
havenwood: i don't have any cide right now as im on phone but im sure i always chose a long way to a task instead of doing in in small way
18:11
Sina has quit [Quit: Connection closed for inactivity]
18:13
conta has quit [Quit: conta]
18:15
weteamsteve1 has joined #ruby
18:18
weteamsteve has quit [Ping timeout: 250 seconds]
18:18
ravenous_ has joined #ruby
18:19
weteamsteve2 has joined #ruby
18:19
kyrylo has joined #ruby
18:22
weteamsteve1 has quit [Ping timeout: 250 seconds]
18:22
weteamsteve2 has quit [Client Quit]
18:23
Eiam has joined #ruby
18:26
glik22 has quit [Ping timeout: 268 seconds]
18:28
glik22 has joined #ruby
18:30
budonyc has quit [Ping timeout: 244 seconds]
18:31
sauvin has quit [Ping timeout: 272 seconds]
18:33
glik22 has quit [Ping timeout: 248 seconds]
18:34
VeryBewitching has joined #ruby
18:34
glik22 has joined #ruby
18:36
exmortus has quit [Remote host closed the connection]
18:36
exmortus has joined #ruby
18:40
codefriar has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:41
jenrzzz has quit [Ping timeout: 252 seconds]
18:46
esp32_prog has joined #ruby
18:48
glik22 has left #ruby ["WeeChat 2.4"]
18:51
esp32_prog has quit [Ping timeout: 248 seconds]
19:03
jenrzzz has joined #ruby
19:03
tdy1 has joined #ruby
19:07
tdy has quit [Ping timeout: 268 seconds]
19:16
cd has joined #ruby
19:20
codefriar has joined #ruby
19:24
shortCircuit__ has joined #ruby
19:24
endorama has quit [Ping timeout: 250 seconds]
19:28
shortCircuit__ has quit [Ping timeout: 248 seconds]
19:31
bijan_ has joined #ruby
19:34
gix has quit [Disconnected by services]
19:34
gix- has joined #ruby
19:41
dellavg_ has quit [Ping timeout: 246 seconds]
19:43
ams__ has quit [Quit: Connection closed for inactivity]
19:47
SeepingN has joined #ruby
19:47
graft has joined #ruby
19:47
graft has joined #ruby
19:47
graft has quit [Changing host]
19:47
yqt has quit [Ping timeout: 244 seconds]
19:49
Jitterbug has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:52
salerace has joined #ruby
19:55
doodleb83 has quit [Read error: Connection reset by peer]
19:55
AlHafoudh has joined #ruby
19:56
fphilipe has joined #ruby
19:57
Ltem has quit [Quit: bbl]
20:00
Iarfen has quit [Remote host closed the connection]
20:01
fphilipe has quit [Ping timeout: 250 seconds]
20:01
doodlebug has joined #ruby
20:01
doodlebug has quit [Max SendQ exceeded]
20:07
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:07
deepreds1 has joined #ruby
20:10
budonyc has joined #ruby
20:24
_whitelogger has joined #ruby
20:25
doodlebug has joined #ruby
20:33
salerace has quit [Ping timeout: 246 seconds]
20:34
esp32_prog has joined #ruby
20:38
djdduty_ is now known as djdduty
20:38
deepredsky has joined #ruby
20:39
esp32_prog has quit [Ping timeout: 244 seconds]
20:40
deepreds1 has quit [Ping timeout: 252 seconds]
20:41
ravenous_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:43
houhoulis has joined #ruby
20:46
Ltem has joined #ruby
20:47
deepredsky has quit [Ping timeout: 252 seconds]
20:47
yasumi2136 has quit [Quit: Konversation terminated!]
20:48
ravenousmoose has joined #ruby
20:48
deepredsky has joined #ruby
20:50
jeremycw has quit [Ping timeout: 258 seconds]
20:50
sagax has joined #ruby
20:53
Swyper has joined #ruby
20:54
Swyper has quit [Remote host closed the connection]
20:56
<
teardown >
i want to master fp but i think i need to dig into oo
20:57
<
teardown >
i mean, oo first
20:59
nowhere_man has joined #ruby
21:00
laaron has joined #ruby
21:04
<
phaul >
I disagree. you can master each paradigm for their own sake. the mantra of this decade seems to be that fp is the real deal, and ppl start believing that it's something more that the other paradigm are building simply up to. Actually fp was first, and for a long time ppl were thinking the exact reverse. Imho the comparison or the merges of these paradigms are not that useful. Spending time in each is
21:05
<
phaul >
but each decade bring it own new set of buzzwords and craze
21:05
octos has quit [Ping timeout: 258 seconds]
21:05
<
teardown >
I see what your point. Yes I just feel i could be missing out on useful parts of the language, since i lack a good grasp on oo concepts, while i'm using a lot of fp
21:06
<
teardown >
i think you nailed it when you said 'spending time with each is'
21:06
<
phaul >
for oo I recommend look into smalltalk
21:07
<
phaul >
or these days pharo
21:07
<
phaul >
which is smalltalk relly
21:07
<
teardown >
nice. i have the smalltalk book
21:07
laaron has joined #ruby
21:07
<
teardown >
maybe i spend a few weeks working through it
21:07
<
phaul >
ruby is good too but way too much fluff to see the concepts
21:09
<
phaul >
beauty of pharo/smalltalk is that the language itself fits on a postcard
21:09
<
teardown >
that is appealing af
21:09
<
teardown >
does it have a massive std library then
21:10
<
phaul >
it's a bit weird, unique in terms of environment
21:10
<
teardown >
it seems like ruby will be most useful after spending some time in c, scheme, and i guess also smalltalk
21:11
<
phaul >
it's a graphical integrated ui that you "boot into" and then you can start programm it
21:12
<
phaul >
ruby is nice but massively multi paradigm. you can do literally everything in any way in ruby
21:14
jenrzzz has quit [Ping timeout: 248 seconds]
21:15
Swyper has joined #ruby
21:18
reber has quit [Remote host closed the connection]
21:21
AJA4350 has quit [Ping timeout: 246 seconds]
21:22
dbugger has quit [Ping timeout: 252 seconds]
21:23
nowhere_man has quit [Ping timeout: 258 seconds]
21:23
Swyper has quit [Remote host closed the connection]
21:24
jeremycw has joined #ruby
21:26
ravenousmoose has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:29
jeremycw has quit [Ping timeout: 248 seconds]
21:31
weteamsteve has joined #ruby
21:34
sphenxes has quit [Remote host closed the connection]
21:35
jefffrails35 has quit [Remote host closed the connection]
21:41
Mia has quit [Read error: Connection reset by peer]
21:44
weteamsteve has quit [Ping timeout: 252 seconds]
21:45
jenrzzz has joined #ruby
21:51
salerace has joined #ruby
21:53
VeryBewitching has quit [Quit: Konversation terminated!]
21:54
ricekrispie has quit [Quit: YEET]
21:55
weteamsteve has joined #ruby
21:56
fphilipe has joined #ruby
22:00
laaron has quit [Remote host closed the connection]
22:00
laaron has joined #ruby
22:01
agent_white has joined #ruby
22:01
agent_white has quit [Changing host]
22:01
agent_white has joined #ruby
22:01
fphilipe has quit [Ping timeout: 252 seconds]
22:01
megalul has joined #ruby
22:03
megalul has quit [Client Quit]
22:03
jeremycw has joined #ruby
22:04
agent_white has quit [Client Quit]
22:04
agent_white has joined #ruby
22:07
AJA4350 has joined #ruby
22:08
jeremycw has quit [Ping timeout: 248 seconds]
22:12
jenrzzz has quit [Ping timeout: 244 seconds]
22:14
schne1der has joined #ruby
22:15
weteamsteve has quit [Ping timeout: 246 seconds]
22:17
weteamsteve has joined #ruby
22:20
graft has quit [Ping timeout: 246 seconds]
22:20
jenrzzz has joined #ruby
22:21
Guest7 has joined #ruby
22:22
esp32_prog has joined #ruby
22:23
shortCircuit__ has joined #ruby
22:24
codefriar has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:25
sameerynho has quit [Ping timeout: 258 seconds]
22:26
jenrzzz has quit [Ping timeout: 248 seconds]
22:27
esp32_prog has quit [Ping timeout: 248 seconds]
22:28
shortCircuit__ has quit [Ping timeout: 245 seconds]
22:28
Guest7 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:31
weteamsteve1 has joined #ruby
22:31
salerace has quit [Ping timeout: 272 seconds]
22:31
fphilipe has joined #ruby
22:34
polishdub has quit [Quit: leaving]
22:35
weteamsteve has quit [Ping timeout: 250 seconds]
22:35
dostoyevsky has quit [Quit: leaving]
22:36
fphilipe has quit [Ping timeout: 252 seconds]
22:37
dostoyevsky has joined #ruby
22:37
jeremycw has joined #ruby
22:41
jeremycw has quit [Ping timeout: 272 seconds]
22:44
codefriar has joined #ruby
22:47
Ltem has quit [Quit: bye]
22:49
jenrzzz has joined #ruby
22:56
zapata has quit [Read error: Connection reset by peer]
22:56
zapata has joined #ruby
23:05
salerace has joined #ruby
23:09
budonyc has quit [Quit: Leaving]
23:11
weteamsteve has joined #ruby
23:14
weteamsteve1 has quit [Ping timeout: 250 seconds]
23:14
salerace has quit [Ping timeout: 246 seconds]
23:16
haxx0r has quit [Ping timeout: 246 seconds]
23:19
weteamsteve1 has joined #ruby
23:21
weteamsteve has quit [Ping timeout: 252 seconds]
23:27
bambanx has joined #ruby
23:33
s3nd1v0g1us has quit [Quit: WeeChat 2.4]
23:37
salerace has joined #ruby
23:39
jeremycw has joined #ruby
23:41
nwradio878887987 has joined #ruby
23:44
jeremycw has quit [Ping timeout: 272 seconds]
23:47
brool has joined #ruby
23:48
jcalla has quit [Ping timeout: 258 seconds]
23:50
doodleb4 has joined #ruby
23:51
doodlebug has quit [Ping timeout: 246 seconds]
23:54
brandoncc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:54
SeepingN has quit [Ping timeout: 248 seconds]
23:58
comet23 has joined #ruby
23:58
agent_white has quit [Ping timeout: 245 seconds]
23:58
brool has quit [Read error: Connection reset by peer]
23:59
codefriar has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]