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: 250 seconds]
ur5us has joined #crystal-lang
Sankalp has quit [Ping timeout: 246 seconds]
Sankalp has joined #crystal-lang
maxpowa has quit [*.net *.split]
ur5us has quit [Ping timeout: 250 seconds]
ur5us has joined #crystal-lang
ur5us has quit [Ping timeout: 252 seconds]
analogsalad has joined #crystal-lang
analogsalad has quit [Client Quit]
analogsalad has joined #crystal-lang
ur5us has joined #crystal-lang
ur5us has quit [Ping timeout: 248 seconds]
jmdaemon has quit [Ping timeout: 248 seconds]
<frojnd> Hi there.
<frojnd> As my codebase is growing. Using kemal framework, currently inside src/routes/v1/main.cr I have there post "upload" do ... where should I put my "helper" methods or classess? So I can make my code more clear?
analogsalad has quit [Quit: bye]
<FromGitter> <moe:busyloop.net> something like `helpers.cr`?
<FromGitter> <moe:busyloop.net> i don't know if there's an official convention
<frojnd> @moe yeah, where would I put helpers.cr ?
<FromGitter> <Blacksmoke16> prob just in `src/`
<FromGitter> <moe:busyloop.net> yup
<FromGitter> <moe:busyloop.net> phew, i almost made an orm today. but then some regex saved me https://carc.in/#/r/d5em
<FromGitter> <Blacksmoke16> good ol'regex
<FromGitter> <Blacksmoke16> wouldnt it be easier to just leverage the existing `DB::Serializable`?
<FromGitter> <moe:busyloop.net> might be, but ultimately probably doesn't make the regexes much simpler, would just write different strings
<FromGitter> <Blacksmoke16> was thinking you could use the `record` or another macro to just define a struct that includes the module and then see what happens
<FromGitter> <Blacksmoke16> tho guess that wouldnt error when you go to run the SQL, but on when it tries to apply the data to the struct
<FromGitter> <moe:busyloop.net> yea not sure. i like how this one works so far. unless i bump into issues in usage i'll prob not touch it again :P
<FromGitter> <Blacksmoke16> :P fair enough
<FromGitter> <Blacksmoke16> guess its PG only?
<FromGitter> <moe:busyloop.net> my main goal is to refactor the sql when needed without having to worry about patching up other stuff
<FromGitter> <moe:busyloop.net> PG is the only database worth using 🤷
sorcus has quit [Quit: WeeChat 3.5]
analogsalad has joined #crystal-lang
jmdaemon has joined #crystal-lang
analogsalad has quit [Quit: bye]
casionaut has joined #crystal-lang
casionaut has quit [Quit: Client closed]
ua_ has quit [Ping timeout: 256 seconds]
ur5us has joined #crystal-lang
ua_ has joined #crystal-lang
sorcus has joined #crystal-lang
ua_ has quit [Read error: Connection reset by peer]
ua__ has joined #crystal-lang
jmd_ has joined #crystal-lang
jmdaemon has quit [Ping timeout: 240 seconds]
ua__ has quit [Read error: Connection reset by peer]
ua_ has joined #crystal-lang
jmdaemon has joined #crystal-lang
jmd_ has quit [Ping timeout: 246 seconds]