<FromGitter>
<tenebrousedge> I don't know whether your model is good or bad, just the question was asking for something that is better handled at the data layer with other tools
* raz
had macro-time and runtime mixed up, as usual
<oprypin>
raz, wee
<raz>
:)
<repo>
heya
<repo>
anyone here use ale in vim? i wonder if there's a way to circumvent the problem of getting errors for every file that doesn't explicitly require all the files that define the constants that are referenced there?
<oprypin>
repo, the solution: require all the files that define the constants that are referenced there
<repo>
yeah i do that for my own code but unfortunately none of the frameworks do this
<repo>
it'd be nice if it would be somehow possible to configure ale to prepend the file with a custom line before checking it
<watzon>
Does ale work with Crystal?
<repo>
yeah
<repo>
very well
<watzon>
Hmm nice
<repo>
but only if the file you're writing will compile
<repo>
or
<repo>
i mean it also works if it doesn't comile
<repo>
compile
<repo>
you will get the compiler error for the line which fails
<repo>
but the problem with frameworks is that they never require anything in generated files
<watzon>
Right and none after
<watzon>
That's the usual issue
<repo>
none after?
<repo>
so basically i was thinking if i could tell ale to add a `require "src/app"` or something as the first line of each file, it should work
<watzon>
I mean it shows the line that breaks, but if there are other things broken elsewhere it won't. At least that's what the case usually is, just because of the way it does error checking.
<watzon>
We'll get a real working language server for crystal eventually though
<repo>
oh, yeah sure
<repo>
a working language server would be awesome!
<oprypin>
repo, do any other people know that it's crystal + ale is a good combination? would be nice to publicize otherwise
<repo>
apparently not :D
<deavmi>
Anyebody done Socket programming incrystal as of recently? I have everything setup , AF type, socket type and protocol but on receviing into a buffer I get Unsupported family type
<deavmi>
Which is strange
<deavmi>
Maybe my crystal is out of date but I could have sworn last year when I tried it it, worked out :thincc:
<repo>
so instead of getting Error: undefined constant BaseModel i get Error: undefined constant Task::BaseQuery
ur5us has joined #crystal-lang
<repo>
content of ale-prelude.cr is just:
<repo>
require "prelude"
<repo>
require "./src/app
<repo>
*"
<repo>
it's weird because the app builds fine
<repo>
maybe i'm not getting prelude
<oprypin>
repo, to reproduce, try adding `require
<oprypin>
repo, to reproduce, try adding `require "../../src/app"` to the top of src/models/task.cr
<repo>
good idea
<oprypin>
then run src/models/task.cr . are you getting the same issue?
<repo>
nope
<repo>
ah sorry
<repo>
wrong file
<repo>
sec
<oprypin>
i think it's a problem with circular imports. something in ../../src/app/* relies on src/models/task.cr but it's already in the process of being imported
_ht has quit [Quit: _ht]
<repo>
yeah that fails
<repo>
yup seems so
<repo>
damn
<oprypin>
but that's weird
<oprypin>
*why* do you need the file of the third party framework to be compilable
<oprypin>
oh are you contributing to it?
<repo>
no
<repo>
i'm just using it
<repo>
but for ale to work properly each individual file needs to compile
<oprypin>
it should definitely abstract away third party code
<repo>
so i was messing around with prelude to see if i could hack together a prelude that would enable me to compile any file from the project
<repo>
it's not "third party code" it's generated
<oprypin>
oh duh
<oprypin>
fix that framework :>
<repo>
(this is lucky)
<repo>
i have other grudges with it as well
<oprypin>
`crystal build --prelude ../../ale-prelude -o /dev/null your_own_project.cr` would work even if your_own_project requires a file of a third party library which is not compilable by itself
<repo>
like defining everything in global namespace..
<repo>
but it does many things very well
<oprypin>
when i looked at Lucky i was just like 😱
<repo>
at the code?
<repo>
or the docs?
<oprypin>
but that's just me using microframeworks all my life
<repo>
yeah i get that
<oprypin>
repo, the OOP shall we say
<repo>
yeah
<repo>
it's very rails-like
<repo>
well i gave it a shot. time to ditch it agian
<repo>
again
<repo>
i'll put something together with athena agian
<repo>
again
sz0 has quit []
sz0 has joined #crystal-lang
<FromGitter>
<Blacksmoke16> 💯
<FromGitter>
<Blacksmoke16> :p
<FromGitter>
<randiaz95> :P
<FromGitter>
<randiaz95> Athenation
<FromGitter>
<randiaz95> Yo @Blacksmoke16
<FromGitter>
<randiaz95> Do you know if i can use built in serialization of objects in crystal?
* FromGitter
* hugopl nice when you start writing a bug report about the type inference and in the middle you notice you were wrong and the type inference right...
<FromGitter>
<randiaz95> How can a full stack developer be 60k salary?
<FromGitter>
<randiaz95> if a backend developer is 60k and front end developer is 60k
<FromGitter>
<Blacksmoke16> xD
<FromGitter>
<randiaz95> What type of math did they do?!
<FromGitter>
<Blacksmoke16> prob is assuming you sacrifice depth for broadness
<FromGitter>
<randiaz95> Bruh..
<FromGitter>
<randiaz95> they will pay double the salary anyways because they will take more than double the time
<FromGitter>
<Blacksmoke16> :shrug:
<FromGitter>
<randiaz95> 6 months for simple app where as a front end and a back end can do it in 3 months or les
<FromGitter>
<randiaz95> They forgot about the salary time continuum
<FromGitter>
<randiaz95> Also full stack developers will leave as soon as they master all of the pieces.
<FromGitter>
<randiaz95> why not develop apps for himself?\
<FromGitter>
<randiaz95> Why suffer for another person when they can have the equity
lvmbdv7 has joined #crystal-lang
lvmbdv7 is now known as lvmbdv
lvmbdv has quit [Client Quit]
lvmbdv has joined #crystal-lang
<FromGitter>
<tenebrousedge> 60k sounds pretty low for anyone who's not just graduating from a coding bootcamp