RX14 changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.27.0 | Fund Crystal's development: http://is.gd/X7PRtI | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Gitter: https://gitter.im/crystal-lang/crystal
<FromGitter> <fridgerator> @girng make those elements draggable without jquery
Raimondi has quit [Read error: Connection reset by peer]
Raimondi has joined #crystal-lang
fanta7531 has joined #crystal-lang
Dreamer3 has joined #crystal-lang
fanta7531 has quit [Quit: ...]
bazaar_ has joined #crystal-lang
bazaar has quit [*.net *.split]
fanta7531 has joined #crystal-lang
Dreamer3 has quit [Quit: Leaving...]
DTZUZO has quit [Ping timeout: 268 seconds]
Raimondi has quit [Ping timeout: 240 seconds]
<FromGitter> <Blacksmoke16> `can't execute OpAssign in a macro` rip
DTZUZO has joined #crystal-lang
<FromGitter> <Blacksmoke16> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5c4001ce1cb70a372aef7548]
<FromGitter> <Blacksmoke16> @dscottboggs_gitlab
<FromGitter> <Blacksmoke16> `localhost:8888/test/ # => {"code": 400, "message": "Required query param 'bar' was not supplied."}`
<FromGitter> <Blacksmoke16> if it doesnt match its nil or the default value
<FromGitter> <Blacksmoke16> if the pattern is nil, there is no pattern
<FromGitter> <dscottboggs_gitlab> oh shit that's perfect, nice!
<FromGitter> <Blacksmoke16> functionaly it works yea, but still messing with the implementation details
<FromGitter> <Blacksmoke16> might refactor how im building out the params
<FromGitter> <Blacksmoke16> is getting a bit too complex now to keep everything in order
<FromGitter> <dscottboggs_gitlab> yeah working in macro land on something that complex can get super messy
<FromGitter> <Blacksmoke16> well that portion isnt really in macro land
<FromGitter> <Blacksmoke16> way things work atm the string params are added to an array
<FromGitter> <Blacksmoke16> but those params have to get added in right order to match the method params
<FromGitter> <Blacksmoke16> and the method params have to be in right order to match route params, request body, then query params
<FromGitter> <Blacksmoke16> its a catch 22
<FromGitter> <Blacksmoke16> i cant auto build out routes based on method arg names/types since i dont know where they go
<FromGitter> <Blacksmoke16> and i cant build out method params/names since i dont know the types
<FromGitter> <Blacksmoke16> would be nice if order of method params didnt matter, will have to see if i can think of something
<FromGitter> <dscottboggs_gitlab> wow that sounds tough
<FromGitter> <Blacksmoke16> :shrug: I have some ideas
<FromGitter> <Blacksmoke16> See how it goes :p
<FromGitter> <Blacksmoke16> Anyway, off to bed o/
<FromGitter> <dscottboggs_gitlab> sleep well
<FromGitter> <Blacksmoke16> Well going to write this in case I forget before I go to bed :p
<FromGitter> <dscottboggs_gitlab> yeah, famous last words
<FromGitter> <dscottboggs_gitlab> 3 hours later
<FromGitter> <dscottboggs_gitlab> 😆
<FromGitter> <Blacksmoke16> Think I can just use parameter name in route to match with method param names, would require route and action names to match, which is IMO a good thing
<FromGitter> <Blacksmoke16> And just always call the request body, body
<FromGitter> <Blacksmoke16> So then order you define parameters in doesn't matter
<FromGitter> <Blacksmoke16> Ok, night :p
<FromGitter> <dscottboggs_gitlab> good night, good luck!
laaron has joined #crystal-lang
_whitelogger has joined #crystal-lang
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
laaron has joined #crystal-lang
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Remote host closed the connection]
DTZUZO has quit [Ping timeout: 246 seconds]
DTZUZO has joined #crystal-lang
jemc has quit [Ping timeout: 268 seconds]
marmotini_ has joined #crystal-lang
marmotini has joined #crystal-lang
marmotini_ has quit [Client Quit]
fanta7531 has quit [Quit: ...]
zolbatar has joined #crystal-lang
zolbatar has quit [Client Quit]