ChanServ changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Fund Crystal's development: https://crystal-lang.org/sponsors | GH: https://github.com/crystal-lang/crystal | Docs: https://crystal-lang.org/docs | Gitter: https://gitter.im/crystal-lang/crystal
ur5us has quit [Ping timeout: 240 seconds]
<FromGitter> <moe:busyloop.net> i'm afraid for absolute beginners js & python are still the easiest. that's also the reason why these plagues just won't go away. i used to argue that ruby is "just as easy" and cleaner than python - but from observation it seems the awkward asymmetry of python is indeed easier on newbies because it allows them to go a long way w/o understanding OO (`len(foo)` vs `foo.length`, also in ruby you are
<FromGitter> ... confronted with blocks very early on)
adam12 has joined #crystal-lang
<mikko> python is also a solid choice but it won't teach many of the concepts you need in crystal.. js on the other hand, absolutely terrible choice for a first language because it lets you get away with all kinds of bad habits
<FromGitter> <moe:busyloop.net> yup, but that's also the reason why it feels "easy". and of course it's also the one with the fastest rewards as you can do visual things with it in the browser. it's a honeypot :(
ur5us has joined #crystal-lang
ur5us has quit [Ping timeout: 240 seconds]
notzmv has quit [Ping timeout: 268 seconds]
notzmv has joined #crystal-lang
ur5us has joined #crystal-lang
ur5us has quit [Ping timeout: 240 seconds]
_whitelogger has joined #crystal-lang
mikko has joined #crystal-lang
antoszka has quit [Ping timeout: 250 seconds]
antoszka has joined #crystal-lang
pusewic|away__ has joined #crystal-lang
HumanG33k has quit [Ping timeout: 250 seconds]
pusewic|away_ has quit [Ping timeout: 250 seconds]
HumanG33k has joined #crystal-lang
Gink has joined #crystal-lang
Gink has quit [Quit: Client closed]
Gink has joined #crystal-lang
Gink10 has joined #crystal-lang
Gink10 has quit [Client Quit]
Gink has quit [Quit: Client closed]
Gink has joined #crystal-lang
xiamx has quit [Quit: Bridge terminating on SIGTERM]
fifr[m] has quit [Quit: Bridge terminating on SIGTERM]
jhass[m] has quit [Quit: Bridge terminating on SIGTERM]
jhass[m] has joined #crystal-lang
jhass[m] has quit [Remote host closed the connection]
jhass[m] has joined #crystal-lang
jhass[m] has quit [Remote host closed the connection]
jhass[m] has joined #crystal-lang
fifr[m] has joined #crystal-lang
xiamx has joined #crystal-lang
Gink has quit [Ping timeout: 256 seconds]
jhass[m] has quit [Quit: Client limit exceeded: 20000]
fifr[m] has quit [Quit: Client limit exceeded: 20000]
xiamx has quit [Quit: Client limit exceeded: 20000]
<FromGitter> <RespiteSage> There's no way to get the list of modules included/extended in a `TypeNode`, right? ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=61f9706d5ee4df335a12ce43]
<FromGitter> <RespiteSage> @Blacksmoke16, if you're around, this seems like something you'd know.
<FromGitter> <Blacksmoke16> you can deff get directly included modules tho
<FromGitter> <RespiteSage> I think that's the inverse of what I'm asking for, though.
<FromGitter> <Blacksmoke16> well by that i mean, like `Foo.includers` which would be all the types that you explicitly did `include Foo` in, but afaik there isnt a way to say like `Bar.included_modules` or something
<FromGitter> <RespiteSage> Yeah, that's what I thought. Thank you. :)
<FromGitter> <Blacksmoke16> well hold on
<FromGitter> <Blacksmoke16> sec
<FromGitter> <Blacksmoke16> https://play.crystal-lang.org/#/r/cowg
<FromGitter> <Blacksmoke16> BUT im sure this is a bit of a naive approach and might be some cases it doesnt handle?
<FromGitter> <Blacksmoke16> https://play.crystal-lang.org/#/r/cowj :shrug: seems pretty good
<FromGitter> <RespiteSage> Thanks! I'm asking on behalf of a colleague who isn't involved in the Gitter or forum, so I don't know if either of those solve his issue, but I'll pass them on. :)
<FromGitter> <Blacksmoke16> 👍
<FromGitter> <RespiteSage> Weird that it doesn't work for `extend`, though: https://carc.in/#/r/cowo
<FromGitter> <RespiteSage> Do you think that's a bug or a choice based on the intended semantics of `extend`?
<FromGitter> <Blacksmoke16> extend adds the type to the metaclasses' hierarchy, so would need to check that instead of the instance type. E.g. `@type.class.ancestors.select &.module?`
<FromGitter> <Blacksmoke16> i.e. `@type.class` instead of just `@type`
<FromGitter> <RespiteSage> Ah, perfect. I had just come to the point of wondering about that, so I appreciate the confirmation.
<FromGitter> <RespiteSage> https://carc.in/#/r/cowu
<FromGitter> <RespiteSage> There's the final code, for any other interested readers.
<FromGitter> <RespiteSage> I think that's exactly what my coworker was looking for. Thank you as always for your macro expertise.
<FromGitter> <Blacksmoke16> 👍
<FromGitter> <oz:matrix.org> Ah, another reason to love MySQL. :D https://en.wikipedia.org/wiki/UTF-8#MySQL_utf8mb3
<FromGitter> <moe:busyloop.net> it is beyond me why people still use that. but then again, i also don't understand why people still voluntarily pick go-lang over crystal...
ur5us has joined #crystal-lang
sagax has quit [Ping timeout: 260 seconds]
brw has quit [Read error: Connection reset by peer]
brw has joined #crystal-lang