havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.1, 3.0.3, 2.7.5: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
<John_Ivan> it's flexible, yes.
<John_Ivan> how odd. my `elseif` isn't getting caught.
<ox1eef> it is elsif in ruby
<John_Ivan> oh
<John_Ivan> thanks mate.
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
weaksauce has joined #ruby
<John_Ivan> ox1eef, I suppose to the lexical analysis people, elsif is easier to detect than provide two extra state machines to detect what's an else if on it's own :P
<John_Ivan> \grammar people
<ox1eef> i think it is a perlism
<ox1eef> like many things in ruby
<John_Ivan> I sure do miss my brackets tho
<John_Ivan> at least I can do File.open(..) do { | fhandle| fhandle.write(...) }
oxfuxxx has joined #ruby
gr33n7007h has quit [Ping timeout: 240 seconds]
Synthead has joined #ruby
oxfuxxx has quit [Ping timeout: 252 seconds]
<Synthead> I have a rails app I'm running in development mode. When I attempt to load a page locally in a browser (from rails s, puma), I get a 404 on my css:
<Synthead> ActionController::RoutingError (No route matches [GET] "/assets/application-e2086e7131a4274bb31552c356e4258029bcd14fdb61d04c33c225fffadcdb8a.css"):
<Synthead> I'm not sure why this is attempting to serve a compiled asset
<Synthead> what's going on here?
<Synthead> this seems to be coming from: <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
<ox1eef> John_Ivan: for that case there's File.write :) but yeah blocks are great
<havenwood> John_Ivan: Really do just use File.write when it's fine to all be in memory or you'll have it all in memory anyways.
constxd has quit [Ping timeout: 250 seconds]
<John_Ivan> havenwood, ?
<mooff> John_Ivan: he's recommending File.write(path, contents) over File.open(path) { f.write(contents) } when you can get away with it
<John_Ivan> mooff, ah. well, yeah. makes sense. I generally end up relying on a buffer if my data in memory is bigger than 25MB
<John_Ivan> otherwise, load it all up without worries
<mooff> we don't got all this ram for nothin :)
<mooff> i think you'd like http://shoesrb.com/
<John_Ivan> mooff, I know of it, and I do :)
<John_Ivan> mooff, but normally I interop when it comes to complex gui projects
<John_Ivan> I mock the GUI in the most RAD possible framework (such as QTCreator, VCL, WinForms/WPF or NetBeans)
<John_Ivan> mooff, and just open a pipe for it. Or hook the widgets to fork() calls which executes ruby or something else.
<John_Ivan> mooff, it's not worth making GUI in other languages. it isn't mature enough.
<John_Ivan> so I'd end up having a C# gui talking to or calling python scripts or C binaries
<John_Ivan> or a Java gui calling... linux binaries
<mooff> ;)
lucerne has quit [Read error: Connection reset by peer]
lucerne has joined #ruby
Synthead has quit [Quit: Leaving]
ox is now known as oz
roadie has joined #ruby
roadie` has joined #ruby
roadie` has quit [Remote host closed the connection]
roadie has quit [Ping timeout: 250 seconds]
roadie has joined #ruby
gr33n7007h has joined #ruby
lucerne has quit [Remote host closed the connection]
lucerne has joined #ruby
roadie has quit [Ping timeout: 250 seconds]
roadie has joined #ruby
roadie has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
RedNifre has quit [Ping timeout: 272 seconds]
Rounin has quit [Ping timeout: 256 seconds]
RedNifre has joined #ruby
sagax has quit [Quit: Konversation terminated!]
Neopolitan has quit [Quit: The Lounge - https://thelounge.chat]
Neopolitan has joined #ruby
hanzo has joined #ruby
lucerne has quit [Remote host closed the connection]
lucerne has joined #ruby
infinityfye has joined #ruby
gr33n7007h has quit [Ping timeout: 250 seconds]
gr33n7007h has joined #ruby
_ht has joined #ruby
teclator has joined #ruby
hanzo has quit [Quit: Connection closed for inactivity]
___nick___ has joined #ruby
wand_ has joined #ruby
wand has quit [Ping timeout: 240 seconds]
yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
yxhuvud has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Rounin has joined #ruby
lucerne has quit [Read error: Connection reset by peer]
gproto23 has joined #ruby
constxd has joined #ruby
roadie has joined #ruby
Tasi has joined #ruby
danjo0 has quit [Quit: danjo0]
danjo0 has joined #ruby
perrierjouet has quit [Quit: WeeChat 3.4]
perrierjouet has joined #ruby
lucerne has joined #ruby
kaivai has quit [Quit: ZNC - https://znc.in]
kaivai has joined #ruby
Tasi_ has joined #ruby
Tasi has quit [Ping timeout: 250 seconds]
duds- has quit [Remote host closed the connection]
duds- has joined #ruby
roadie has quit [Ping timeout: 252 seconds]
oxfuxxx has joined #ruby
robotmay has quit [Quit: Be excellent to each other]
robotmay has joined #ruby
oxfuxxx has quit [Ping timeout: 256 seconds]
goepsilongo has joined #ruby
Tasi__ has joined #ruby
fowl has quit [Quit: cya pals]
lucerne has quit [Remote host closed the connection]
Tasi_ has quit [Ping timeout: 250 seconds]
lucerne has joined #ruby
ollysmith_ has quit [Ping timeout: 250 seconds]
fowl has joined #ruby
roadie has joined #ruby
ollysmith has joined #ruby
roadie has quit [Ping timeout: 252 seconds]
wand_ has quit [Remote host closed the connection]
<nakilon> I feel like I've found a bug _<> didn't fully localize if it yet but when you do ".map.with_index{ |(_, *), i| " the _ isn't shadowed but permanently overwrites the higher definition
<nakilon> from 2.3.8 to 3.0.2
wand has joined #ruby
roadie has joined #ruby
<ox1eef> nakilon: please provide a working example of the bug, i didn't quite get it
<nakilon> _ = 1
<nakilon> [[2]].map. tap{ p _ }.
<nakilon> with_index{ |(_),| _ }.tap{ p _ }
<nakilon> you'll see that _ became 2; either change |(_),|_ with |(x),|x or replace _ with x everywhere and the issue is gone
<nakilon> or if you remove the (_) splatting; so I suppose the bug is there
<nakilon> shorter example: _ = 1; [[2]].tap{ p _ }.map{ |(_)| _ }.tap{ p _ }
<ox1eef> yeah, looks like a bug to me.
<ox1eef> i reproduced here too
Exuma has joined #ruby
<nakilon> _ = 1; [[2]].each{ |(_)| }; p _
Tasi_ has joined #ruby
<leah2> is there a version of ruby-mode that can indent case..in?
Tasi__ has quit [Ping timeout: 240 seconds]
CrazyEddy has quit [Ping timeout: 240 seconds]
CrazyEddy has joined #ruby
<ox1eef> nakilon: are you going to report it?
<ox1eef> nakilon: i reproduced on 3.1.0
Exuma has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Exuma has joined #ruby
ua_ has quit [Ping timeout: 256 seconds]
infinityfye has quit [Quit: Leaving]
Exuma has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bluedust has joined #ruby
runlab has joined #ruby
bluedust has quit [Ping timeout: 256 seconds]
perrierjouet has quit [Quit: WeeChat 3.4]
Tasi__ has joined #ruby
perrierjouet has joined #ruby
Exuma has joined #ruby
Tasi__ has quit [Client Quit]
Exuma has quit [Client Quit]
Tasi has joined #ruby
Tasi_ has quit [Ping timeout: 252 seconds]
gproto23 has quit [Ping timeout: 252 seconds]
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
Tasi_ has joined #ruby
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
Tasi__ has joined #ruby
___nick___ has joined #ruby
Tasi has quit [Ping timeout: 240 seconds]
Tasi_ has quit [Ping timeout: 250 seconds]
_whitelogger_ has joined #ruby
<mooff> also happens for _vars_like_this
ua_ has joined #ruby
Tasi_ has joined #ruby
Tasi__ has quit [Ping timeout: 250 seconds]
reset has joined #ruby
Tasi__ has joined #ruby
Tasi_ has quit [Ping timeout: 250 seconds]
Tasi_ has joined #ruby
Tasi__ has quit [Ping timeout: 256 seconds]
Tasi_ is now known as Tasi
Tasi_ has joined #ruby
Tasi__ has joined #ruby
Tasi has quit [Ping timeout: 250 seconds]
gfawcett has quit [Quit: Ping timeout (120 seconds)]
Tasi_ has quit [Ping timeout: 250 seconds]
gfawcett has joined #ruby
Thom2503 has joined #ruby
Thom2503 has quit [Quit: Leaving...]
cocalero has quit [Quit: Going offline, see ya! (www.adiirc.com)]
gproto23 has joined #ruby
Tasi__ has quit [Read error: Connection reset by peer]
Tasi__ has joined #ruby
<John_Ivan> what's the standard goto logger for ruby?
<John_Ivan> gem wise
<John_Ivan> unless it's in the STL
<nakilon> it's in
John_Ivan_ has joined #ruby
John_Ivan has quit [Ping timeout: 252 seconds]
ur5us has joined #ruby
<havenwood> John_Ivan_: Logger in the stdlib.
<John_Ivan_> thakns
_ht has quit [Remote host closed the connection]
Tasi__ has quit [Read error: Connection reset by peer]
Tasi__ has joined #ruby
gproto23 has quit [Remote host closed the connection]
Tasi__ has quit [Read error: Connection reset by peer]
Tasi__ has joined #ruby
___nick___ has quit [Ping timeout: 240 seconds]
libsys has quit [Ping timeout: 256 seconds]
libsys has joined #ruby
oxfuxxx has joined #ruby
John_Ivan__ has joined #ruby
Tasi__ has quit [Quit: Leaving]
John_Ivan_ has quit [Ping timeout: 272 seconds]
ur5us has quit [Read error: Connection reset by peer]
ur5us_ has joined #ruby
oxfuxxx has quit [Ping timeout: 272 seconds]
oxfuxxx has joined #ruby
szkl has joined #ruby
vit has joined #ruby
vit is now known as Guest8508
Guest8508 has quit [Client Quit]
vit has joined #ruby
vit is now known as Guest7375
Exuma has joined #ruby
eddof13 has joined #ruby
Guest7375 is now known as freeworld
eddof13 has quit [Client Quit]
ur5us_ has quit [Ping timeout: 240 seconds]
freeworld is now known as Guest7375
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
ur5us_ has joined #ruby