<FromGitter>
<dotism> It's lovely to be ringing in the New Year whilst fiddling with Crystal code...
chachasmooth has quit [Ping timeout: 240 seconds]
chachasmooth has joined #crystal-lang
ur5us has quit [Ping timeout: 260 seconds]
ur5us has joined #crystal-lang
_whitelogger has joined #crystal-lang
_whitelogger has joined #crystal-lang
<FromGitter>
<ImAHopelessDev_gitlab> i just realized i could list out property names in one LINE, LOL! (`property x = 0, y = 0`)
_whitelogger has joined #crystal-lang
ur5us has quit [Ping timeout: 260 seconds]
ur5us has joined #crystal-lang
_whitelogger has joined #crystal-lang
return0e_ has joined #crystal-lang
return0e has quit [Ping timeout: 240 seconds]
return0e has joined #crystal-lang
return0e_ has quit [Ping timeout: 258 seconds]
dwdv has joined #crystal-lang
ur5us has quit [Ping timeout: 260 seconds]
JuanMiguel has joined #crystal-lang
JuanMiguel has quit [Quit: This computer has gone to sleep]
HumanGeek has joined #crystal-lang
HumanGeek has quit [Remote host closed the connection]
HumanGeek has joined #crystal-lang
Human_G33k has quit [Ping timeout: 268 seconds]
<FromGitter>
<btihen> @watzon - Record looks interesting - is it really just a different way to define a struct - are their reasons one would / should use one over the ⏎ other?
HumanG33k has joined #crystal-lang
HumanGeek has quit [Ping timeout: 268 seconds]
<Stephie>
@btihen it's really just a different way to define a struct
_whitelogger has joined #crystal-lang
JuanMiguel has joined #crystal-lang
Nicolab has joined #crystal-lang
SiinaCutie has joined #crystal-lang
<FromGitter>
<Nicolab> Happy New Year filled of Crystal
<FromGitter>
<Nicolab> and shards, and health
Nicolab has quit [Ping timeout: 265 seconds]
JuanMiguel has quit [Quit: This computer has gone to sleep]
JuanMiguel has joined #crystal-lang
JuanMiguel has quit [Client Quit]
<FromGitter>
<ImAHopelessDev_gitlab> Happy New Year!
gangstacat has quit [Quit: Ĝis!]
gangstacat has joined #crystal-lang
<FromGitter>
<btihen> @FromIRC - Thanks. Good to know.
JuanMiguel has joined #crystal-lang
JuanMiguel has quit [Quit: This computer has gone to sleep]
<FromGitter>
<grkek> @FromIRC shhhh shut the fuck up
<FromGitter>
<Blacksmoke16> wew finally think i landed in a good spot
<FromGitter>
<Blacksmoke16> for handling configuration within listeners
<FromGitter>
<Blacksmoke16> keeps the listener not directly coupled to how it gets the configuration, i.e. so much easier to test
<FromGitter>
<grkek> an example please ?
<FromGitter>
<grkek> @Blacksmoke16
<FromGitter>
<Blacksmoke16> example of what?
<FromGitter>
<grkek> also I am currently exploiting missconfigured routers, fiber networking is really interesting but scary once you fuck something up
vitallium has joined #crystal-lang
<FromGitter>
<grkek> more than 4k routers already
<FromGitter>
<grkek> :D
<FromGitter>
<grkek> example of what you did
<FromGitter>
<grkek> and how it helps you
<FromGitter>
<grkek> with something
<FromGitter>
<grkek> did it change the default way of defining things ?
<FromGitter>
<Blacksmoke16> the commit i linked has all the relevant code
<FromGitter>
<Blacksmoke16> essentially what i settled on is a YAML file that represents the configuration
<FromGitter>
<Blacksmoke16> that can be injected/used (like the link i posted)
<FromGitter>
<Blacksmoke16> so that in this case the listener doesnt have to fetch its configuration directly, which would be a nightmare to test
<FromGitter>
<Blacksmoke16> since it would be expecting it to come from a yaml file, where now i can just mock the `ConfigurationResolver` and make it return what i need for a given test
<FromGitter>
<Blacksmoke16> this is also a benefit of using interfaces versus concrete types in your type restrictions