ChanServ changed the topic of #crystal-lang to: The Crystal programming language | | Fund Crystal's development: | GH: | Docs: | Gitter:
okcan_ has quit [Ping timeout: 252 seconds]
<FromGitter> <Dan-Do> +1 :vote: for libmdbx
<FromGitter> <> Is there some way to pass a generic keyword->someType hash? Like in ruby I'd just do ⏎ ⏎ ```... ⏎ end ⏎ myMethod key: "test", otherkey: 1``` []
taupiqueur has joined #crystal-lang
<FromGitter> <> I hoped to not having to specify them but I can work with that
<FromGitter> <> bc. like this i cant just switch case on the provided ones and instead have to check for each if its default or provided
Stephie- is now known as Stephie
<FromGitter> <paulocoghi> Super newbie question: Trying to install as a shard, and after creating: ⏎ ⏎ ```code paste, see link``` []
<FromGitter> <Dan-Do> You missed the `name` at beginning like this
<FromGitter> <paulocoghi> :facepalm: Thanks
taupiqueur has quit [Quit: taupiqueur]
walez has joined #crystal-lang
<walez> hey togehter, did someone use Neovim/Nvim for Crystal development and can tell me some good plugins or settings for nvim.
<FromGitter> <Blacksmoke16> there is but idk anything about it. like if it still works etc
<walez> @Blacksmoke16: Thanks for the link, that is a good point to start with, i will check it.
<walez> @Blacksomke16: ok with this vim Plugin I have better Synatax highlighting now. Thanks :D
<FromGitter> <Blacksmoke16> 👍 nice
<riza> it works well, I use it
<spuun> same here
<riza> it's not perfect but it does fine
<walez> @roza and @ spuun: did you have run a lsp in Neovim too? i only find scry but i dont know if its support by nvim-lspconfig
<riza> I do run an lsp, but I'm using gvim not nvim
<walez> @rizza: i will check it and if its work well i can post the nvim config for the lsp part.
walez has quit [Quit: Leaving]
sagax has quit [Ping timeout: 252 seconds]
<SamantazFox_> How can I access a method's Annotation outside of said method?
<FromGitter> <Blacksmoke16>
<FromGitter> <Blacksmoke16> OR better yet
<FromGitter> <Blacksmoke16> you can use `#find` (or `#select`) to the method(s) with the annotation
<FromGitter> <Blacksmoke16>
<FromGitter> <Blacksmoke16> depends on what you're wanting to do exactly id say
<SamantazFox_> The goal would be to have a module, with multiple methods in it, and each of those methods have annotations that stores metadata
<SamantazFox_> It's for the different rouotes of invidious ^^
<FromGitter> <Blacksmoke16> coughswitchtoathenacough
<SamantazFox_> haha xD
<SamantazFox_> not that easy
<FromGitter> <Blacksmoke16> neither is maintaining the current version 😉, could do it over time as you could run both at once
<SamantazFox_> We're currently cleaning the code
<SamantazFox_> that's a prerequisite before moving anywhere
<FromGitter> <Blacksmoke16> nice, how would this module with annotations work? like they're class methods that map to a route?
<SamantazFox_> currently, we have the following things:
<FromGitter> <Blacksmoke16> be pretty easy to build that out with a macro, just need to move some of the data into the annotation
<SamantazFox_> 2*
<SamantazFox_> and finally, the methods themselves, store in modules
<SamantazFox_> <Blacksmoke16> "be pretty easy to build that out with a macro" <- yep, that's the idea
<FromGitter> <Blacksmoke16> ahh where #2 generates kemal based routing stuff?
<SamantazFox_> yes
<SamantazFox_> that's something that was initiated by Matthew McGarvey, one of the Lucky devs
<SamantazFox_> And I'd like to improve it a bit in order to deduplicate authentication code, e.g
<SamantazFox_> (Though, currently I'm working on rewriting the database code, and this kind of improvements will be for the future)
<FromGitter> <Blacksmoke16> i think i'd be easier if you used classes with a parent type, or included another module into the controllers
<FromGitter> <paulocoghi> 😄 😄 😄 😄
<FromGitter> <Blacksmoke16>
<FromGitter> <Blacksmoke16> should be enough to get you started
<FromGitter> <Blacksmoke16> ofc could have diff annotations for each method or whatever :shrug: