🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). Log available at irclogs.raku.org/raku/live.html . If you're a beginner, you can also check out the #raku-beginner channel! Set by lizmat on 6 September 2022. |
|||
00:05
librasteve_ left
00:21
yewscion joined
00:26
yewscion left
00:51
cm_ joined
00:53
cm left,
cm_ is now known as cm,
cm left
00:54
yewscion joined
00:58
cm joined
00:59
arkiuat left,
yewscion left
01:10
yewscion joined
01:20
cm left
01:21
yewscion left
01:25
cm joined
01:30
stanrifkin joined
01:32
yewscion joined
01:37
yewscion left,
yewscion joined
01:42
yewscion left
01:52
kylese left,
kylese joined
01:58
yewscion joined
02:03
yewscion left
02:05
stanrifkin left
02:15
kylese left,
kylese joined
02:20
yewscion joined
02:25
yewscion left
02:36
yewscion joined
02:46
yewscion left
03:03
yewscion joined
03:08
yewscion left
03:45
kylese left
03:47
kylese joined
03:51
yewscion joined
03:57
yewscion left
03:58
yewscion joined
04:03
yewscion left
04:04
silug left,
Aedil joined
04:05
silug joined
04:20
yewscion joined
04:25
yewscion left
04:35
melezhik joined
04:41
kst`` left
04:46
kst`` joined
04:55
yewscion joined
04:56
kst`` left
05:00
yewscion left
05:14
topnep left
05:20
yewscion joined
05:25
yewscion left
05:42
yewscion joined,
topnep joined
05:53
yewscion left
06:03
abraxxa-home joined
06:05
abraxxa-home left
06:26
yewscion joined
06:32
yewscion left
06:33
yewscion joined
06:38
yewscion left
06:49
yewscion joined
06:54
yewscion left
06:57
yewscion joined
07:02
yewscion left
07:04
yewscion joined
07:11
yewscion left
07:18
yewscion joined
07:19
sorenson left
07:22
merp left,
yewscion left
07:34
yewscion joined
07:36
Sgeo left
07:37
sorenson joined
07:39
yewscion left
07:41
yewscion joined
07:44
Aedil left
07:46
yewscion left
07:53
euandreh joined
08:07
yewscion joined
08:13
yewscion left
08:21
merp joined
08:30
yewscion joined
08:35
yewscion left
08:37
yewscion joined
08:42
yewscion left
08:54
melezhik left
08:57
lichtkind joined
09:00
yewscion joined
09:05
yewscion left
09:16
yewscion joined
09:20
yewscion left
09:22
yewscion joined
09:27
yewscion left
09:39
yewscion joined
09:43
yewscion left
09:46
yewscion joined
09:51
yewscion left
09:52
topnep left
09:53
topnep joined
09:55
melezhik joined
09:57
yewscion joined
10:02
yewscion left
11:11
yewscion joined
11:16
yewscion left
11:19
yewscion joined
11:24
yewscion left
11:34
euandreh left,
yewscion joined
11:36
euandreh joined
11:39
yewscion left
11:42
yewscion joined
11:47
yewscion left
12:27
abraxxa-home joined
12:51
yewscion joined
13:14
melezhik left
13:21
leah2 left
13:34
leah2 joined
14:00
melezhik joined
14:03
topnep left
14:05
topnep joined
14:20
abraxxa-home left
14:28
euandreh left
14:35
sorenson left
14:37
sorenson joined
15:17
Guest70 joined
15:27
Guest70 left
15:46
Aedil joined
16:09
topnep left
16:10
topnep joined
16:32
vrurg left
16:33
vrurg joined
16:40
leah2 left
17:11
stanrifkin joined
17:21
gabiruh left
17:22
leah2 joined
17:24
yewscion left
17:33
yewscion joined
17:58
Sgeo joined
18:57
gabiruh joined
19:10
apac joined
19:11
abraxxa-home joined
19:52
leah2 left
20:06
leah2 joined
20:15
abraxxa-home left
20:19
topnep left
20:22
topnep joined
20:44
Aedil left
20:49
melezhik left
21:10
apac left
21:17
yewscion left
21:18
yewscion joined
|
|||
SmokeMachine | Voldenet: I was wondering... I'm thinking in adding a `import-module` function... that way one could have a module `class MyDepsModule does Deps::Module { method register { injectable 42 } }`, then on your code, it could be used like: `deps { import-module MyDepsModule; injected my Int $a }` also, instead of using the function, it could also be like: `deps :import[MyDepsModule], { injected my Int $a }` | 21:27 | |
Voldenet | but if MyDepsModule has register method, couldn't it simply export the sub that'd accept parameter? | 21:30 | |
`sub use-my-deps($deps = $*deps) { .register 42 }; deps { use-my-deps; }` | 21:31 | ||
SmokeMachine | it wouldn't even need to receive a parameter... it could just use the injected/injectable function... you are correct... I made a class/method to be able to use a role... but I think you are correct... | 21:32 | |
sub use-my-deps { injectable 42 }; deps { use-my-deps; } | 21:34 | ||
Voldenet | I try to use "magic is optional" way | 21:37 | |
I'd prefer to avoid dynamic variables completely and then add it as an option | |||
21:37
leah2 left
|
|||
SmokeMachine | you can always use the "low level methods"... register/get... | 21:39 | |
Voldenet | I see dynamic variables as big hash being passed around in "$context" parameter | ||
they're useful, but you suddenly end up with methods not having clear dependencies | 21:45 | ||
21:50
leah2 joined
|
|||
SmokeMachine | you can always do something like: `deps -> $deps { do whatever you want with $deps }` | 21:57 | |
Voldenet | true | 22:00 | |
either way, the DI composition roots classes kinda make sense in java | 22:01 | ||
there could be some profits from those being classes - they can theoretically define more parameters or maybe namespaces | 22:03 | ||
SmokeMachine | With the original option of having classes to import, that could be an instance storing data… but that also can be done with functions… so, that’s ok… | 22:24 | |
22:26
topnep left
22:27
topnep joined
22:44
abraxxa-home joined
23:18
lichtkind left
23:27
stanrifkin left
|