ChanServ changed the topic of #crystal-lang to: The Crystal programming language | | Fund Crystal's development: | GH: | Docs: | Gitter:
avane has quit [Ping timeout: 240 seconds]
avane has joined #crystal-lang
ur5us_ has quit [Ping timeout: 240 seconds]
ur5us_ has joined #crystal-lang
notzmv has quit [Ping timeout: 268 seconds]
notzmv has joined #crystal-lang
sagax has joined #crystal-lang
ur5us_ has quit [Ping timeout: 252 seconds]
darwillim86d has quit [Quit: Connection closed for inactivity]
hightower3 has joined #crystal-lang
ur5us_ has joined #crystal-lang
ur5us_ has quit [Ping timeout: 268 seconds]
sorcus has quit [Quit: WeeChat 3.2]
yxhuvud has quit [Remote host closed the connection]
yxhuvud has joined #crystal-lang
sorcus has joined #crystal-lang
sorcus has quit [Quit: WeeChat 3.2.1]
sorcus has joined #crystal-lang
hightower3 has quit [Ping timeout: 252 seconds]
<FromGitter> <> @Blacksmoke16: like what?
<FromGitter> <Blacksmoke16> ```code paste, see link``` []
<FromGitter> <Blacksmoke16> is possible things aren't required in the right order
<FromGitter> <Blacksmoke16> if you just arbitrarily require a file like that
<FromGitter> <> not sure to follow. If we want to test a file, the related spec will require it
<FromGitter> <Blacksmoke16> oh really? I always just required everything into `spec_helper` then require that
<FromGitter> <Blacksmoke16> seemed to be the easier way as theres only 1 place to update
<FromGitter> <> I don't like to require the world just to test a single, isolated piece inside my app/library :)
<FromGitter> <> Plus doesn't that also increase compilation time?
<FromGitter> <> of course it is easy to just miss a necessary require inside this very source file if we are nearly always using just `crystal spec`
<FromGitter> <> it may, but only noticeable for huge code bases, like the Crystal stdlib
<FromGitter> <> @Blacksmoke16: for me it helps when I refactor, or some other major changes due the language or library. I test & modify only one module of my codebase at a time, instead of having lots of spec failing or worse, not compiling at all
<FromGitter> <> e.g. with crystalizer, each format spec require its `src`
<FromGitter> <Blacksmoke16> is it not easier to just do like `crystal spec spec/file/i/want/to/run` or add `focus: true`?
<FromGitter> <> add focus is less practical, and if every spec file require the world, then the whole src should compile
<FromGitter> <> that's the biggest reason in fact
<FromGitter> <Blacksmoke16> my assumption was crystal only compiles what's being used even if the code is required
<FromGitter> <Blacksmoke16> so by virtue of only running a single spec id expect that to only compile what's needed for that spec
<FromGitter> <> ha right yes
<FromGitter> <> unless there is a syntax error ;)
<FromGitter> <> due to macro-fu, or WIP work
f1refly has quit [Ping timeout: 256 seconds]
f1refly has joined #crystal-lang
ur5us_ has joined #crystal-lang
[R] has quit [Ping timeout: 252 seconds]
[R] has joined #crystal-lang