<havenwood>
I can't speak to what IEEE Std 1003.1-2008 calls for there.
<Iambchop>
:-)
BSaboia has joined #ruby
BSaboia has quit [Client Quit]
rippa has joined #ruby
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tpanarch1st has joined #ruby
rose_nd_ash has quit [Remote host closed the connection]
SeepingN has joined #ruby
leitz has joined #ruby
lxsameer has joined #ruby
tpanarch1st_ has joined #ruby
beanie__ has joined #ruby
tpanarch1st_ has quit [Remote host closed the connection]
beanie__ has quit [Remote host closed the connection]
markoong has joined #ruby
rose_nd_ash has joined #ruby
rose_nd_ash has quit [Remote host closed the connection]
rose_nd_ash has joined #ruby
adu has joined #ruby
SeepingN has quit [Ping timeout: 256 seconds]
cthu| has joined #ruby
<pavelz>
hi, what do second parametesr mean here? class_eval <<-RUBY, __FILE__, __LINE__ + 1
<pavelz>
in heredoc pass
Technodrome has quit [Ping timeout: 246 seconds]
ruurd has joined #ruby
laball70 has joined #ruby
<pavelz>
ok figured it out. its for .method(:foo).source so you can get at code from debuger.
<havenwood>
pavelz: "The optional filename and lineno parameters set the text for error messages."
<pavelz>
havenwood: that too thanks for the add and formal def
<IsoLinCHiP>
havenwood: oh, didnt even think to check if it was ruby source. Thanks for the pointer. Then it is indeed doing what it 'should', just not what I expected of it. :)
BSaboia has joined #ruby
BSaboia has quit [Client Quit]
rmnull has joined #ruby
rmnull has quit [Client Quit]
rmnull has joined #ruby
vondruch_ has joined #ruby
rmnull has quit [Client Quit]
vondruch has quit [Read error: Connection reset by peer]
vondruch_ is now known as vondruch
roadt_ has quit [Ping timeout: 240 seconds]
roadt_ has joined #ruby
rose_nd_ash has quit [Remote host closed the connection]
<baweaver>
My general rule on indentation is if my eyes have to hard-line to the right to read a bunch it breaks me out of the code flow
<baweaver>
newlines are free, use judiciously
Mia has quit [Ping timeout: 240 seconds]
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
<IsoLinCHiP>
So I just found a gem that sounds worth investigating `vedeu` . Turns out it hasnt been updated in ages and was developent against 2.3 . So I figured I could just use rbenv to get a quick impression. Now I is complaining that my bundler version is too new. I did `gem install -v 1.12 bundler` on said rbenv and `gem list` show it installed along side the newer bundler version. The commandline however is still
<IsoLinCHiP>
insisting bunlder is too new. Any suggestions?
<IsoLinCHiP>
(geez, pardon the typos) :(
BSaboia has quit [Quit: This computer has gone to sleep]
lxsameer has joined #ruby
<dnadev2>
interesting. i feel like leftylink's is "closest to home" and looks great with that spacing. baweaver's as the added benefit of removing the need for the :'s and ,'s -- so even better if leaving the comfort of rails styles. havenwood: what's the benefit of using freeze and creating it a private_constant?
<dnadev2>
s/as/has
<baweaver>
Rereference later mostly
<baweaver>
Nice for testing among other introspective features
BSaboia has joined #ruby
<dnadev2>
gotcha
<dnadev2>
thanks everyone!
<havenwood>
dnadev2: The %i syntax avoids commas and more importantly signals to the reader that there are only simple Symbols in the Array. Freezing prevents accidental mutation and signals to the reader there is none. Extracting this data to a constant may show how it is similar to other data. Giving a name to a thing via extract constant refactor can also give clarity of purpose. The #private_constant is purely optional.
<IsoLinCHiP>
The %i[] version with minimal indentation seems nice. Like the fact you dont have to fuss with trailing `,`
<havenwood>
dnadev2: And what baweaver said. :)
<havenwood>
dnadev2: And what IsoLinCHiP said.
<IsoLinCHiP>
names... one of the hardest problems in programming ;-D
<dnadev2>
great stuff, appreciate it
magickid has joined #ruby
TomyWork has quit [Remote host closed the connection]
<IsoLinCHiP>
On a related note, any recommendations on a nice framework for interactive TUI programs? Ideally something with the featurelevel comparable to python's urwid but obviously for ruby. The tty gems have some nice utility but I really would like something that provides widgets and takes care of windowing for me.
<dnadev2>
you know, i rarely consider accidental mutation :/ wonder if i should get in the habit of freezing by default
<IsoLinCHiP>
seconded. Luckily I havent had too many errors in that area, but when they happen freezing would slap them right in your face :D
<IsoLinCHiP>
highline is interesting for prompt driven apps. But not something you would make a nice interactive viewer with
zapata has quit [Read error: Connection reset by peer]
zapata has joined #ruby
mynameisdebian has quit [Remote host closed the connection]
mynameisdebian has joined #ruby
<dnadev2>
wow, so i just realized those "non user actions" were being repeated in several before_actions - havenwood's is the winner for DRY purposes :)
OneNeptune has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ellcs has joined #ruby
Mia has quit [Ping timeout: 256 seconds]
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
imode has joined #ruby
OneNeptune has joined #ruby
mynameisdebian has quit [Ping timeout: 256 seconds]
BSaboia has quit [Quit: This computer has gone to sleep]
gix has joined #ruby
bocaneri has quit [Read error: Connection reset by peer]
davispuh has joined #ruby
powerhouse has quit [Read error: Connection reset by peer]
adu has quit [Quit: adu]
adu has joined #ruby
BSaboia has joined #ruby
troulouliou_div2 has joined #ruby
Dreamer3 has quit [Quit: Leaving...]
BSaboia has quit [Quit: This computer has gone to sleep]
DTZUZU_ has joined #ruby
DTZUZU has quit [Ping timeout: 264 seconds]
clemens3 has quit [Ping timeout: 256 seconds]
blender_ has joined #ruby
blender has quit [Ping timeout: 256 seconds]
clemens3 has joined #ruby
tankf33der has joined #ruby
OneNeptune has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
miah has joined #ruby
sgen has joined #ruby
gix has quit [Ping timeout: 264 seconds]
gix has joined #ruby
sysh has quit [Read error: Connection reset by peer]