01:29
soveran has joined #crystal-lang
01:34
Dreamer3 has joined #crystal-lang
01:34
soveran has quit [Ping timeout: 276 seconds]
01:50
Philpax has quit [Ping timeout: 244 seconds]
02:22
kulelu88 has quit [Quit: Leaving]
02:27
Oliphaunte has joined #crystal-lang
02:35
ponga has joined #crystal-lang
03:03
Philpax has joined #crystal-lang
03:07
Oliphaunte has quit [Read error: Connection reset by peer]
03:08
Philpax has quit [Ping timeout: 276 seconds]
03:11
Oliphaunte has joined #crystal-lang
03:13
Philpax has joined #crystal-lang
03:29
Oliphaunte has quit [Remote host closed the connection]
03:29
Oliphaunte has joined #crystal-lang
03:31
soveran has joined #crystal-lang
03:35
soveran has quit [Ping timeout: 244 seconds]
03:58
Oliphaunte has quit [Read error: Connection reset by peer]
04:04
pawnbox has joined #crystal-lang
04:04
Oliphaunte has joined #crystal-lang
04:32
soveran has joined #crystal-lang
04:32
xmgx has quit [Remote host closed the connection]
04:38
soveran has quit [Ping timeout: 264 seconds]
04:53
matp has joined #crystal-lang
05:05
Oliphaunte has quit [Remote host closed the connection]
05:51
soveran has joined #crystal-lang
05:51
soveran has quit [Changing host]
05:51
soveran has joined #crystal-lang
06:17
pabs has quit [Ping timeout: 240 seconds]
06:18
pabs has joined #crystal-lang
06:43
pawnbox has quit [Remote host closed the connection]
06:44
pawnbox has joined #crystal-lang
06:46
pawnbox has quit [Remote host closed the connection]
06:47
pawnbox has joined #crystal-lang
07:09
mark_66 has joined #crystal-lang
07:27
Philpax has quit [Ping timeout: 240 seconds]
07:29
bjz has joined #crystal-lang
07:44
pawnbox has quit [Ping timeout: 244 seconds]
07:45
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
07:53
pawnbox has joined #crystal-lang
07:57
pawnbox_ has joined #crystal-lang
07:58
pawnbox has quit [Ping timeout: 244 seconds]
08:01
bjz has joined #crystal-lang
08:10
onethirtyfive has joined #crystal-lang
08:12
onethirtyfive has quit [Remote host closed the connection]
08:12
onethirtyfive has joined #crystal-lang
08:14
pawnbox_ has quit [Ping timeout: 276 seconds]
08:14
pawnbox has joined #crystal-lang
08:18
ome has joined #crystal-lang
08:23
Philpax has joined #crystal-lang
08:24
Philpax has quit [Read error: Connection reset by peer]
08:35
pawnbox has quit [Ping timeout: 240 seconds]
08:36
pawnbox has joined #crystal-lang
08:40
pawnbox_ has joined #crystal-lang
08:42
pawnbox_ has quit [Read error: Connection reset by peer]
08:42
pawnbox_ has joined #crystal-lang
08:43
pawnbox has quit [Ping timeout: 265 seconds]
09:10
akwiatkowski has joined #crystal-lang
09:27
sheaned has joined #crystal-lang
09:32
sheaned has quit [Client Quit]
09:43
pawnbox_ has quit [Ping timeout: 250 seconds]
09:45
crystal-lang721 has joined #crystal-lang
09:53
crystal-lang721 has quit [Ping timeout: 264 seconds]
09:56
<
jhass >
RX14: thanks, should be fixed now and I put better monitoring in place until I have time to properly tackle the issue.
09:56
<
RX14 >
what happened?
10:07
pawnbox has joined #crystal-lang
10:18
soveran has quit [Remote host closed the connection]
10:27
pawnbox has quit [Read error: No route to host]
10:27
pawnbox has joined #crystal-lang
10:35
bjz_ has joined #crystal-lang
10:36
bjz has quit [Ping timeout: 244 seconds]
11:15
onethirtyfive has quit [Read error: Connection reset by peer]
11:15
onethirtyfive has joined #crystal-lang
11:18
soveran has joined #crystal-lang
11:18
soveran has quit [Changing host]
11:18
soveran has joined #crystal-lang
11:20
ome has quit [Quit: Connection closed for inactivity]
11:24
soveran has quit [Ping timeout: 276 seconds]
11:24
pawnbox has quit [Ping timeout: 276 seconds]
11:35
tomchapi_ has quit [Ping timeout: 258 seconds]
11:35
tomchapin has joined #crystal-lang
11:59
soveran has joined #crystal-lang
11:59
soveran has joined #crystal-lang
11:59
soveran has quit [Changing host]
12:41
badeball_ is now known as badeball
13:00
Oliphaunte has joined #crystal-lang
13:06
Oliphaunte has quit [Remote host closed the connection]
13:13
Oliphaunte has joined #crystal-lang
13:15
mkl0501 has joined #crystal-lang
13:18
Oliphaunte has quit [Remote host closed the connection]
13:28
Oliphaunte has joined #crystal-lang
13:40
matp has quit [Remote host closed the connection]
13:47
Oliphaunte has quit [Remote host closed the connection]
14:03
mkl0501 has joined #crystal-lang
14:13
matp has joined #crystal-lang
14:26
Oliphaunte has joined #crystal-lang
14:47
soveran has quit [Remote host closed the connection]
15:06
mkl0501 has joined #crystal-lang
15:43
soveran has joined #crystal-lang
15:47
soveran has quit [Remote host closed the connection]
15:48
soveran has joined #crystal-lang
15:50
soveran has quit [Remote host closed the connection]
16:03
endou_ has joined #crystal-lang
16:03
endou has quit [Ping timeout: 240 seconds]
16:04
jamie_ca has quit [Ping timeout: 240 seconds]
16:04
leafybasil has quit [Ping timeout: 240 seconds]
16:05
go|dfish has quit [Ping timeout: 240 seconds]
16:05
[spoiler] has quit [Ping timeout: 240 seconds]
16:05
leafybasi has joined #crystal-lang
16:06
[spoiler] has joined #crystal-lang
16:07
jamie_ca has joined #crystal-lang
16:13
go|dfish has joined #crystal-lang
16:13
soveran has joined #crystal-lang
16:19
mark_66 has quit [Remote host closed the connection]
16:24
soveran has quit [Remote host closed the connection]
16:29
soveran has joined #crystal-lang
16:29
soveran has quit [Changing host]
16:29
soveran has joined #crystal-lang
16:36
<
BlaXpirit >
I'm looking to parse Crystal code and extract documentation comments from it, along with their associated node. what should I look at?
16:37
soveran has quit [Remote host closed the connection]
17:00
ponga has quit [Quit: Connection closed for inactivity]
17:05
soveran has joined #crystal-lang
17:05
soveran has quit [Changing host]
17:05
soveran has joined #crystal-lang
17:28
akwiatkowski has quit [Ping timeout: 244 seconds]
18:08
soveran has quit [Remote host closed the connection]
18:25
<
FromGitter >
<mverzilli> it seems you need explicitly tell the parser that you want it to parse comments
18:25
<
FromGitter >
<mverzilli> maybe an optimization
18:25
<
FromGitter >
<mverzilli> (the above returns "M", I guess that's what you expected)
18:34
kulelu88 has joined #crystal-lang
18:36
<
BlaXpirit >
oh good. thank you!
18:40
<
FromGitter >
<mverzilli> yw!
18:56
xmgx has joined #crystal-lang
19:11
soveran has joined #crystal-lang
19:19
Ven has joined #crystal-lang
19:53
eirwin has joined #crystal-lang
19:54
<
eirwin >
What is the proper way to convert the following example into JSON response type?
19:55
<
eirwin >
obviously, specifying content-type, but Im new to Crystal and don't see how I am writing response out
20:04
soveran has quit [Remote host closed the connection]
20:04
<
RX14 >
eirwin, there are several ways, but for a first try you want something like `{message: "Hello World"}.to_json(context.response)`
20:05
soveran has joined #crystal-lang
20:05
<
RX14 >
in a big app you will probably want a JSON.mapping on your objects then call to_json
20:05
<
RX14 >
in a small example you can just use namedTuple
20:06
<
eirwin >
thanks, let me try this real quick...Im brand new to Crystal, so just trying to figure out whats available,syntax,etc
20:06
<
RX14 >
if you need really cusom json you can use the json builder stuff
20:06
<
RX14 >
but thats advaned
20:10
soveran has quit [Ping timeout: 265 seconds]
20:10
akwiatkowski has joined #crystal-lang
20:10
<
eirwin >
nice, this is exactly what I needed (it worked). In the future, once Im more familiar, I would def use a more robust way of doing this, but this is perfect for now
20:19
<
eirwin >
is there a recommended API framework for building REST API endpoints, binding models,etc? I haven't really seen anything, but haven't looked too hard
20:21
<
RX14 >
and thats basically the only ORM around at the moment
20:21
<
RX14 >
the rest you can either use kemal, or build your own
20:21
<
RX14 >
using crystal's http server then a routing library
20:22
<
eirwin >
right, I figured that was probably the best route, I was just having a hard time finding good (Robust) examples of the http server and routing library
20:26
onethirtyfive has quit [Remote host closed the connection]
20:39
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:45
Ven has joined #crystal-lang
20:46
Ven has quit [Client Quit]
20:49
soveran has joined #crystal-lang
20:49
soveran has joined #crystal-lang
20:49
soveran has quit [Changing host]
21:08
<
RX14 >
eirwin, if you want something more traditional you can try crouter
21:10
soveran has quit [Remote host closed the connection]
21:12
pawnbox has joined #crystal-lang
21:13
soveran has joined #crystal-lang
21:38
pawnbox has quit [Read error: Connection reset by peer]
22:08
eirwin has quit [Ping timeout: 264 seconds]
22:09
Oliphaunte has quit [Remote host closed the connection]
22:11
bjz_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
22:19
tomchapi_ has joined #crystal-lang
22:30
bjz has joined #crystal-lang
22:37
<
jeromegn >
I guess we now have 2 protobuf shards :shrug:
22:45
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
22:48
soveran has quit [Remote host closed the connection]
22:54
Oliphaunte has joined #crystal-lang
22:57
Oliphaunte has quit [Remote host closed the connection]
23:16
<
RX14 >
jeromegn, pinch all the things it does better :)
23:16
<
RX14 >
like having types actually be PascalCase
23:17
<
RX14 >
i mean if required is a macro you don't even need it to be a symbol
23:17
<
jeromegn >
is that better? I can’t tell. It deviates from how the protocol names them
23:19
<
jeromegn >
it’s more crystalesque, but then again, symbols that look like constants?
23:19
<
RX14 >
i mean they are technically types
23:19
<
RX14 >
just not crystal ones
23:20
<
jeromegn >
I guess it could accept the types as pascalcased constants
23:20
<
RX14 >
i really like having the visual difference between the names and the types
23:20
<
jeromegn >
but I fear it could be confusing
23:20
<
RX14 >
because currently i just see symbols
23:21
<
RX14 >
at least in protokol they're PascalCase so there's some difference
23:21
<
jeromegn >
how do you feel about using PascalCase and no symbol `:` ?
23:21
<
jeromegn >
confusing? since those won’t actually exist.
23:22
<
RX14 >
i already said i like that
23:22
<
jeromegn >
oh sorry, missed it!
23:22
<
RX14 >
it gives them the colouring of types in the IDE
23:23
<
RX14 >
so it distinguishes them
23:24
akwiatkowski has quit [Ping timeout: 244 seconds]