<postmodern>
oprypin, ugh yeah, it seems awkward to have to define a constant so your data doesn't get duplicated on each call, but more weird to have to also define a class_getter
<postmodern>
although it appears that crystal's class variables are slightly better than ruby's. in crystal the class-variable is bound to the meta-class to the base class
<postmodern>
question, what is an app wrt `crystal init app ...`?
<postmodern>
is it supposed to be a CLI util or a server?
<oprypin>
postmodern, the distinction is "lib" (made to be a source dependency for other project) and "app" (made to be compiled to an executable)
dwdv has quit [Ping timeout: 265 seconds]
<postmodern>
oprypin, hmm weird that apps don't have a bin/<name>.cr file or bin/ dir
<oprypin>
postmodern, they do after `shards build`
<postmodern>
ah ha
<postmodern>
oprypin, is it possible for a crystal project to be both? seems like the init command needs options for --lib and --app
<oprypin>
postmodern, i have no known cases
<oprypin>
i think any boilerplate is a failing so i start from scratch anyway
<postmodern>
i'd rather not waste time writing a README or editing an existing one.
<postmodern>
it's been a huge productivity benefit to me to just hit the ground running
<oprypin>
glad to hear :>
<postmodern>
problem is you need to draw out the use-cases for a generator. if you're not generating a CLI app, then you don't need a Usage/Synopsis
return0e has quit [Remote host closed the connection]
return0e has joined #crystal-lang
return0e has quit [Read error: Connection reset by peer]
return0e has joined #crystal-lang
<postmodern>
so basically you can't use generic types in constants or class methods in an abstract class, because the type isn't known yet
MasterdonX has quit [Read error: Connection reset by peer]
MasterdonX has joined #crystal-lang
ur5us has quit [Ping timeout: 240 seconds]
darkstardevx has joined #crystal-lang
hsh has joined #crystal-lang
<hsh>
I haven't used Crystal for a year or so and I assume many things changed :). IIUC `JSON.mapping` is to be replaced with `JSON::Serializable`. Does this mean `JSON.mapping` is deprecated?
dwdv has joined #crystal-lang
_ht has joined #crystal-lang
darkstardevx has quit [Ping timeout: 240 seconds]
darkstardev13 has quit [Ping timeout: 240 seconds]
darkstarx has joined #crystal-lang
ravenx has joined #crystal-lang
<Andriamanitra>
do you guys use something similar to nodemon when doing web stuff with crystal? a quick google search found a crystal tool called guardian but that didn't seem to work
<repo>
Andriamanitra: yeah guardian, sentry, paladin, you name it
<Andriamanitra>
repo: what's paladin (google is unsurprisingly unhelpful)? guardian i couldn't get to work at all on my system, and sentry doesn't seem to be quite what i'm looking for
Human_G33k has joined #crystal-lang
HumanG33k has quit [Ping timeout: 260 seconds]
DTZUZU2 has joined #crystal-lang
DTZUZU has quit [Ping timeout: 272 seconds]
sorcus has quit [Quit: WeeChat 2.7.1]
<yxhuvud>
oprypin: was it you or RX14 that was doing the gitter bridge? It seems down..
<Stephie>
it was oprypin iirc
gangstacat has quit [Quit: Δis!]
juanfra_ has quit [Ping timeout: 240 seconds]
sz0 has quit [Quit: Connection closed for inactivity]
sz0 has joined #crystal-lang
juanfra_ has joined #crystal-lang
gangstacat has joined #crystal-lang
sorcus has joined #crystal-lang
FromGitter has joined #crystal-lang
<oprypin>
did crystal change to forcibly buffer stdout even if it's not in a tty -_-
<oprypin>
or stderr
<FromGitter>
<Blacksmoke16> could prob do like `STDERR.sync = false`
<oprypin>
yea but why
<oprypin>
wait, what i said makes no sense
<oprypin>
what i'm getting at is, previously the logs that i was seeing in systemd were not buffered, and now they are
<oprypin>
and buffered means i get the log lines in batches with wrong timestamps
<oprypin>
and yes, the IRC<->Gitter bridge has been down. sorry about that :(
<FromGitter>
<dscottboggs_gitlab> so it looks like @Blacksmoke16 is right (well, backwards, but he had the right idea lol). You need `STDOUT.sync = true`
<oprypin>
i wish `flush_on_newline` was still a thing
<oprypin>
i think `flush_on_newline` would be much more performant than `sync`
<FromGitter>
<dscottboggs_gitlab> that change happened in 0.28.0 FYI
<FromGitter>
<dscottboggs_gitlab> hm. I'm sure it wouldn't be too hard to reimplement `flush_on_newline`, why was it removed?
<FromGitter>
<asterite> ugh, stodut sync change strikes again
DTZUZU2 has quit [Ping timeout: 260 seconds]
DTZUZU2 has joined #crystal-lang
DTZUZU2 has quit [Ping timeout: 240 seconds]
DTZUZU2 has joined #crystal-lang
<FromGitter>
<smalls12> I'm building an app, which uses a shard which has an object sitting under the src folder but I can't seem to include it for some reason