<FromGitter>
<Blacksmoke16> `UserController.test_action action parameter 'id' is not defined in route or query parameters.` better
<FromGitter>
<Blacksmoke16> includes controller/action name now
DTZUZO_ has quit [Ping timeout: 244 seconds]
jemc has joined #crystal-lang
<FromGitter>
<Blacksmoke16> `UserController.test_action has 2 parameters defined, while there are 3 route and query parameters defined. Did you forget to add one?`
<FromGitter>
<Blacksmoke16> also did that for if there are more than 2 route/query params defined and less action params
<FromGitter>
<dscottboggs_gitlab> also, @codenoid, write me some go as pretty as that βοΈ
fanta7531 has joined #crystal-lang
<FromGitter>
<dscottboggs_gitlab> the block ensures that `usb0#close` is called. also, I just tried it, and you can do `Bytes [ 5, 0x40, 0x10, 8, 0xA3 ]`
spacemanspam has joined #crystal-lang
baweaver has quit [Ping timeout: 264 seconds]
marmotini has joined #crystal-lang
<FromGitter>
<proyb6> Q
spacemanspam has quit [Read error: Connection reset by peer]
_whitelogger has joined #crystal-lang
<FromGitter>
<girng> Q
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
<FromGitter>
<bew> R
<FromGitter>
<girng> hi @bew
<FromGitter>
<bew> @girng what @codenoid says about beautiful crystal code has nothing to do with formatting, it's about the actual code!.. @codenoid I suggest you to read the code of the stdlib and part of the compiler, it inspired me in many cases :)
<FromGitter>
<j8r> That's the `if *var = @nillable*var` nil checks that pass by value instead reference
<FromGitter>
<j8r> logic
<FromGitter>
<j8r> it modifies the reference
mps has quit [Read error: error:1408F10B:SSL routines:ssl3_get_record:wrong version number]
laaron has quit [Remote host closed the connection]
<FromGitter>
<bew> oooh..
devil_tux has quit [Ping timeout: 244 seconds]
<FromGitter>
<bew> @j8r I think this might be good to open an issue, I think it may be related to #3073, or more specifically to the root cause of that issue: being that doing `a = b.c` gets you a copy when we're talking about structs..
<FromGitter>
<bew> Ahah well i don't think it'll ever be done since as rx14 said it's way way way too magic ^^
jemc has quit [Quit: WeeChat 2.2]
jemc has joined #crystal-lang
marmotini has joined #crystal-lang
marmotini_ has quit [Remote host closed the connection]
<FromGitter>
<j8r> I'm for using structs wherever possible, allocating memory to the heap with `class` isn't cheap; it's welcomed to avoid that
marmotini has quit [Ping timeout: 246 seconds]
spacemanspam has joined #crystal-lang
marmotini has joined #crystal-lang
return0e_ has quit []
return0e has joined #crystal-lang
marmotini has quit [Ping timeout: 240 seconds]
marmotini has joined #crystal-lang
marmotini has quit [Ping timeout: 244 seconds]
jemc has quit [Ping timeout: 250 seconds]
<FromGitter>
<drum445> If anyone considers using cassandra; don't
<FromGitter>
<j8r> @drum445 doesn't surprise me - what's your experience?
jemc has joined #crystal-lang
Yxhuvud has joined #crystal-lang
<z64>
well, generally speaking, cassandra is most effective at very, very large scale. for most things, better off sticking with something more practical
spacemanspam has quit [Read error: Connection reset by peer]
<FromGitter>
<drum445> We've got a table that is 100gb
<FromGitter>
<drum445> It's still worse than sql server would be
<FromGitter>
<drum445> The querying is just hurrendous, I struggle to find a use case that isn't just a log store. @j8r our use case is trying to filter on timeuuids
<FromGitter>
<drum445> But because the table was setup without this in mind, the sort part of the primary key is causing us issues. TLDR: Stick to a proper db
<FromGitter>
<j8r> i've touched TiDB recently
jemc has quit [Ping timeout: 240 seconds]
Raimondi has quit [Ping timeout: 240 seconds]
marmotini_ has joined #crystal-lang
baweaver has joined #crystal-lang
marmotini has joined #crystal-lang
marmotini_ has quit [Ping timeout: 246 seconds]
spacemanspam has joined #crystal-lang
moei has joined #crystal-lang
<FromGitter>
<matthewmcgarvey> If I have an absolute path to a file, and a relative path to another file from that file, is there an easier way to resolve the path to the relative file than: β β ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5c421bbe746d4a677ad3acc8]
fanta7531 has quit [Quit: ...]
Raimondi has joined #crystal-lang
<oprypin>
matthewmcgarvey, dont need the join, can use the two arg version of `expand_path`
spacemanspam has quit [Read error: Connection reset by peer]
<FromGitter>
<drum445> This is true, but there are very few companies out there that need that kind of storage
<FromGitter>
<drum445> I'd wager < 1%. People seem to be obsessed with copying what the "big boys" are doing, without realising it will hurt you
spacemanspam has joined #crystal-lang
<FromGitter>
<drum445> @z64 thanks for that article, was an interesting ready
<FromGitter>
<drum445> I do appreciate when big companies release blog posts like that. One of my favourites was the gitlab one when they deleted their prod db
<z64>
welcome. yeah its great; they have a few others up of similar quality and detail too about their backend and frontend experiences. and yeah, i remember that GL one.. aha
sagax has joined #crystal-lang
spacemanspam has quit [Read error: Connection reset by peer]
spacemanspam has joined #crystal-lang
<FromGitter>
<j8r> Using dynamic/bytecode interpreted languages costs a lot at scale
<FromGitter>
<j8r> And unpredictable performance hurts
<FromGitter>
<drum445> It sure can, if I see another type error sneak its way into pre-prod I might cry
<FromGitter>
<j8r> You don't why a X time everything was so slow β and after hours of investigation, this was a full GC
<FromGitter>
<drum445> Indeed mate, Elasticsearch's GC was hideous at one point. Although I guess that is to be expected, it does run on a JVM after all.