pupsikov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wildtrees has quit [Quit: Leaving]
pupsikov has joined #ruby
henninb has joined #ruby
TCZ has joined #ruby
jetchisel has quit [Ping timeout: 250 seconds]
jetchisel has joined #ruby
pupsikov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cloaked1>
havenwood: thanks for the answer. I've been playing around with it. I like it.
<cloaked1>
any big differences other than static typing and some obvious syntax differences noticed by anyone?
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
<buzzkill>
phaul: Thanks! The issue I think I may be having isn't with the concept of what a constant is, nor how it is _supposedly_ immutable, but rather why I cannot set the value via a function call. Add to that the 'constants.rb' and 'helper.rb' files, I am just a bit lost.
<buzzkill>
the constants files, all include other constants files... the helper files include other helper files, but I cannot call a helper function from a constants file because I need a different function call to know what to pass to the helper function so I can assign the value to the constant.
<buzzkill>
jeezuz, I just got myself confused.
zlogan2003 has quit [Read error: Connection reset by peer]
henninb has quit [Quit: leaving]
jmcgnh has quit [Ping timeout: 256 seconds]
jmcgnh has joined #ruby
drincruz has joined #ruby
drincruz has quit [Ping timeout: 256 seconds]
ta1 has quit [Ping timeout: 256 seconds]
ta1 has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
TCZ has quit [Quit: Leaving]
cschneid_ has joined #ruby
ivanskie has joined #ruby
gix has quit [Ping timeout: 264 seconds]
zcserei has quit [Remote host closed the connection]
dasher00 has quit [Ping timeout: 250 seconds]
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fluxAeon has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
drincruz has joined #ruby
drincruz has quit [Ping timeout: 256 seconds]
iNs has quit [Remote host closed the connection]
iNs has joined #ruby
kristian_on_linu has quit [Remote host closed the connection]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pandakekok9 has joined #ruby
conta has quit [Quit: conta]
cschneid has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7.1]
sergioro has quit [Quit: leaving]
markopasha has quit [Remote host closed the connection]
markopasha has joined #ruby
TzilTzal has joined #ruby
adam12_ has joined #ruby
FluffyFoxeh has joined #ruby
stooj_ has joined #ruby
nowhere_man has quit [Ping timeout: 272 seconds]
haylon has joined #ruby
haylon_ has quit [*.net *.split]
adam12 has quit [*.net *.split]
stooj has quit [*.net *.split]
Frogging101 has quit [*.net *.split]
vondruch has quit [*.net *.split]
hiroaki has quit [*.net *.split]
FluffyFoxeh is now known as Frogging101
hiroaki has joined #ruby
nowhere_man has joined #ruby
jetchisel has quit [Ping timeout: 250 seconds]
ellcs has quit [Ping timeout: 246 seconds]
jetchisel has joined #ruby
ta1 has quit [Quit: WeeChat 2.7]
ta has joined #ruby
ellcs has joined #ruby
dionysus69 has joined #ruby
daemonwrangler has quit [Quit: ZNC 1.6.5 - http://znc.in]
daemonwrangler has joined #ruby
vondruch has joined #ruby
drincruz has joined #ruby
drincruz has quit [Ping timeout: 250 seconds]
ellcs has quit [Ping timeout: 246 seconds]
ellcs has joined #ruby
nowhereman has joined #ruby
nowhere_man has quit [Ping timeout: 264 seconds]
cschneid has quit [Ping timeout: 246 seconds]
cschneid has joined #ruby
nowhereman has quit [Ping timeout: 246 seconds]
jingjinghack has joined #ruby
nowhereman has joined #ruby
leitz has joined #ruby
Bounga has joined #ruby
Technodrome has joined #ruby
ta has quit [Quit: WeeChat 2.7.1]
ta has joined #ruby
drincruz has joined #ruby
drincruz has quit [Ping timeout: 264 seconds]
howdoi has joined #ruby
drincruz has joined #ruby
znz_jp has quit [Remote host closed the connection]
znz_jp has joined #ruby
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
stooj_ has quit [Read error: Connection reset by peer]
stooj has joined #ruby
TzilTzal has quit [Quit: Leaving.]
_phaul has joined #ruby
phaul has quit [Ping timeout: 246 seconds]
al2o3-cr has quit [Read error: Connection reset by peer]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
_phaul has quit [Ping timeout: 246 seconds]
_phaul has joined #ruby
TCZ has joined #ruby
Fridtjof has quit [Ping timeout: 272 seconds]
conta has joined #ruby
robotmay has quit [Quit: No Ping reply in 180 seconds.]
robotmay has joined #ruby
conta has quit [Remote host closed the connection]
pandakekok9 has quit [Ping timeout: 250 seconds]
ellcs has quit [Ping timeout: 246 seconds]
_phaul has quit [Ping timeout: 256 seconds]
_phaul has joined #ruby
Bounga has quit [Ping timeout: 272 seconds]
TomyWork has joined #ruby
ellcs has joined #ruby
catbusters has joined #ruby
lucasb has joined #ruby
paraxial has quit [Ping timeout: 258 seconds]
paraxial has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
samort7 has joined #ruby
ellcs has quit [Ping timeout: 240 seconds]
jcalla has joined #ruby
cschneid has quit [Ping timeout: 246 seconds]
cschneid has joined #ruby
ellcs has joined #ruby
paraxial5 has joined #ruby
paraxial has quit [Ping timeout: 246 seconds]
paraxial5 is now known as paraxial
TomyWork has quit [Ping timeout: 256 seconds]
_phaul has quit [Ping timeout: 250 seconds]
_phaul has joined #ruby
samort7 has quit [Quit: Leaving]
adam12_ has quit [Ping timeout: 246 seconds]
spiette_ has joined #ruby
cloaked1 has quit [Ping timeout: 246 seconds]
spiette has quit [Ping timeout: 246 seconds]
haylon has quit [Ping timeout: 246 seconds]
stdedos has quit [Ping timeout: 246 seconds]
coniptor has quit [Ping timeout: 246 seconds]
haylon has joined #ruby
nowhere_man has joined #ruby
pupsikov has joined #ruby
adam12_ has joined #ruby
nowhereman has quit [Ping timeout: 264 seconds]
coniptor has joined #ruby
gitter1234 has joined #ruby
cow[moo] has joined #ruby
donofrio has quit [Remote host closed the connection]
cow[moo] has quit [Client Quit]
cow[moo] has joined #ruby
cow[moo] has quit [Client Quit]
cow[moo] has joined #ruby
donofrio has joined #ruby
nowhere_man has quit [Ping timeout: 246 seconds]
nowhere_man has joined #ruby
ellcs has quit [Ping timeout: 246 seconds]
fernando_ has joined #ruby
al2o3-cr has joined #ruby
ellcs has joined #ruby
fernando_ is now known as ElFerna
nowhere_man has quit [Ping timeout: 272 seconds]
<buzzkill>
for those that tried, thank you. I had to hard code the values for now. I'll open a backlog ticket for the development team to figure out how to fix their code. =/
nowhere_man has joined #ruby
markopasha has quit [Remote host closed the connection]
Fridtjof has joined #ruby
jingjinghack has quit [Quit: WeeChat 2.1]
catbusters has quit [Quit: Connection closed for inactivity]
_whitelogger has joined #ruby
TCZ has quit [Quit: Leaving]
samort7 has joined #ruby
cschneid has quit [Ping timeout: 250 seconds]
cschneid has joined #ruby
ellcs has quit [Ping timeout: 246 seconds]
postmodern has joined #ruby
ellcs has joined #ruby
TCZ has joined #ruby
jmcgnh has quit [Read error: Connection reset by peer]
ElFerna has quit [Quit: ElFerna]
jmcgnh has joined #ruby
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
ChmEarl has joined #ruby
cthulchu_ has joined #ruby
Kemwer has joined #ruby
ElFerna has joined #ruby
ElFerna has quit [Client Quit]
alexherbo2 has joined #ruby
ellcs has quit [Ping timeout: 246 seconds]
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
<havenwood>
buzzkill: I don't like the name #get_group_owner when it's setting the owner too.
<havenwood>
buzzkill: Based on what you've shown, it'd be better to have `OWNER = {bigdept => 'steve', 'smallgrp' => 'david'}.freeze` then instead of a case statement, just do: OWNER.fetch(group)
<havenwood>
buzzkill: I suspect the `OWNER` constant is then used elsewhere, since you're mutating it? Can you give an example of its use outside this method?
<havenwood>
buzzkill: It's not a good pattern to mutate constants, but you can undefine them before redefining to avoid warnings. I'd definitely first look at restructuring this to not use mutating constants, since it's an anti-pattern.
troulouliou_div2 has joined #ruby
schne1der has quit [Ping timeout: 250 seconds]
ellcs has joined #ruby
markopasha has joined #ruby
gix has joined #ruby
<bougyman>
hrm. is there a way to just read the first line of a file with std File (or Pathname) ?
<bougyman>
I'm not seeing a method for it.
<bougyman>
alternatively, is there a way to access the headers: in a csv when using the CSV.foreach block format to read it?
<havenwood>
This quote summarizes why we don't have seek until character: "Bad thing."
<havenwood>
I keep wanting it for various reasons nonetheless.
<leitz>
havenwood, how is everyone?
<al2o3-cr>
havenwood: what reason did you have in mind?
<havenwood>
leitz: \o/
<al2o3-cr>
leitz: super duper
<leitz>
havenwood, is this your first?
<leitz>
havenwood, and CONGRATULATIONS!!!
<havenwood>
leitz: Yes, and thanks! She still hasn't learned any Ruby.
<al2o3-cr>
hmm, have i missed something?
<leitz>
al2o3-cr, there's a junior-ette havenwood
<leitz>
As of this weekend, IIUC.
<al2o3-cr>
oh! havenwood congrats mate ;)
<havenwood>
al2o3-cr: Thanks!
william1_ has joined #ruby
* leitz
is writing shell code, deploying it via ansible, to test perl program output...
<havenwood>
al2o3-cr: I recall wanting to do an overly simple magic file test, just reading up to a character sequence. And then parsing log files looking for occurrences. Being able to scan a file up to a character without reading further than required is just handy, I think. Handy and tricky.
<adam12_>
havenwood: Good morning! Well rested I bet ;P
adam12_ is now known as adam12
<leitz>
havenwood, another use case is the BOM (byte order mark), maybe?
<al2o3-cr>
havenwood: yeah, that would be really handy but a bet very difficult to implement.
<al2o3-cr>
leitz: nah
<havenwood>
adam12: Please pardon my more-scattered-than-usual responses today. :) Struggling to speak English here.
<adam12>
havenwood: You know you're sleep deprived when the milk is in the cupboard, the cereal is in the fridge, and you're staring at both knowing _something_ is wrong about it but just can't place your finger on it.
<havenwood>
The beeping I kept hearing earlier was the fridge door wide open. >.>
<al2o3-cr>
havenwood: i guess you'll be drinking more coffee than usual for a bit :)
<havenwood>
Just need more robots.
<havenwood>
Too few of these gadgets have APIs.
<havenwood>
Then again, probably best for them to be local only APIs. :O
cschneid_ has joined #ruby
<havenwood>
I'd love to be able to interact with the crib, stroller, etc from Ruby.
<adam12>
havenwood: I ended up with 2; audio only over radio which .. was OK. But I have a backsplit and new kid took over my old office on lower level. Wife insisted on video monitor. We ended up with this one which has been surprisingly good. https://www.amazon.ca/gp/product/B07YC4SXX9
<adam12>
william1_: All OK in Canada. For now.
<william1_>
Glad to hear it adam12
<_phaul>
transitioned to WFH mode as per government recommendation (UK)
CrazyEddy has quit [Ping timeout: 258 seconds]
<adam12>
william1_: Where you from?
<william1_>
uk adam12
<william1_>
based in Kent
<adam12>
Ah very good.
<william1_>
have bascially self-isolated for a week
renich_ has joined #ruby
<william1_>
i work from home as a contractor, though
<adam12>
Same; but it's not much different than any other week :P
<william1_>
main change is having to think about rationing and food
<william1_>
and not being able to go to pub or cinema :(
<william1_>
fair enough adm12
<william1_>
adam12*
renich has quit [Ping timeout: 250 seconds]
renich has joined #ruby
renich_ has quit [Ping timeout: 250 seconds]
code_zombie has joined #ruby
d3bug has joined #ruby
budonyc has quit [Quit: Leaving]
sauvin has quit [Read error: Connection reset by peer]
<al2o3-cr>
ah, gets/readline takes a separator File.open('foo') { _1.readline("\r") }
<al2o3-cr>
i'm sure i'm loosing it.
<CommunistWolf>
that _1 is... jesus
<CommunistWolf>
bad ruby, bad
wildtrees has joined #ruby
<CommunistWolf>
oh, it doesn't seem to work. block arity is 0
<al2o3-cr>
CommunistWolf: i lean towards liking it more now
<CommunistWolf>
is it a 2.7 thing?
<al2o3-cr>
CommunistWolf: yup
<CommunistWolf>
ok, that'll explain why it's not working for me. time to install and poke :D
<CommunistWolf>
if you do (lambda { puts _1.inspect }).arity, what do you get, OOI?
<CommunistWolf>
I know people don't like the | character, but come on
<al2o3-cr>
CommunistWolf: you can still use block args
<ytti>
i like kotling 'it'
<CommunistWolf>
I know you can, but people are going to write this and I'm going to have to read it
<ytti>
File.open('foo') { it.readline("\r") }
<CommunistWolf>
that might actually be worse
<al2o3-cr>
it was @1 @2 etc CommunistWolf is that even worse iyo?
<CommunistWolf>
much worse
<CommunistWolf>
were three different ways of doing this already not enough?
<al2o3-cr>
CommunistWolf: it's early days yet, it might get chucked in the knackered yard.
<CommunistWolf>
fingers crossed
<al2o3-cr>
but i like it, and that's my opinion.
<CommunistWolf>
maybe I'm just old and grumpy ^^
<al2o3-cr>
it's true CommunistWolf ;)
<CommunistWolf>
"this is going to be like 1.9again when they removed when foo : bar!"
FastJack has quit [Ping timeout: 256 seconds]
rubydoc has quit [Remote host closed the connection]
rubydoc has joined #ruby
FastJack has joined #ruby
<_phaul>
&fact add rubydoc I am one of the channel bots. You can find my commands at http://github.com/phaul/yarr
<rubydoc>
I will remember that rubydoc is I am one of the channel bots. You can find my commands at http://github.com/phaul/yarr
renich has quit [Ping timeout: 246 seconds]
<_phaul>
If anybody feels like pen testing, you are welcome to play with the bot. fact add should be restricted to channel ops. It is the first such command. You can private msg the bot.. If you break in please let me know :) commits on github..
dasher00 has quit [Quit: GTFO]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
jmcgnh has quit [Read error: Connection reset by peer]
jmcgnh has joined #ruby
<al2o3-cr>
i'll give it a shot
al2o3-cr is now known as phaul
phaul is now known as al2o3-cr
<_phaul>
lol
<al2o3-cr>
i had to try ;)
<al2o3-cr>
_phaul: are you using some sort of parser instead of regex?
<al2o3-cr>
ah, parslet
renich_ has joined #ruby
<al2o3-cr>
_phaul: you forgot to add your yarr.yml file ;)
cd has joined #ruby
<_phaul>
ah. that :)
<al2o3-cr>
if you'd just push it real quick that'd be great! :) lol
<al2o3-cr>
nicely written bot that _phaul
william1_ has quit [Ping timeout: 264 seconds]
cschneid_ has quit [Ping timeout: 256 seconds]
cschneid has joined #ruby
samort7 has quit [Quit: Leaving]
akem has quit [Quit: Leaving]
leitz has quit [Remote host closed the connection]
akem has joined #ruby
ur5us has joined #ruby
markopasha has quit [Remote host closed the connection]
ellcs has quit [Read error: Connection reset by peer]
<taserface>
the already compiled version of ruby I'm using is compiled for gdbm
<havenwood>
taserface: Ah, gotcha.
fernando has joined #ruby
<havenwood>
taserface: Which package manager and distro?
fernando has quit [Remote host closed the connection]
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood>
Assuming GNU/Linux, but curious which distro.
<taserface>
well I have access to many so yeah
<taserface>
hoping to get it working in ubuntu focal
<taserface>
ruby 2.5
<havenwood>
taserface: A BSD would more likely link against Berkeley DB, FWIW.
<havenwood>
taserface: (With a default packaged Ruby.)
fernando has joined #ruby
<havenwood>
taserface: You're reading existing Berkeley DB files or using it to interop with another system?
<havenwood>
taserface: On Ubuntu I'm afraid I'd install libdb-dev/libdb++-dev and compile myself. Maybe it's possible with the package manager Ruby, but I don't know how.
<havenwood>
taserface: If you want a package manager Ruby, maybe FreeBSD or OpenBSD for an out-of-the-box solution?
<havenwood>
taserface: Any particular version of Berkeley DB?
<taserface>
well `file` says 1.85
<taserface>
(reading existing files)
caterfxo has joined #ruby
<taserface>
("hash, version 2")
vondruch has quit [Ping timeout: 250 seconds]
jcalla has quit [Ping timeout: 250 seconds]
jcalla has joined #ruby
szqdsegrhrdgdrg has joined #ruby
<szqdsegrhrdgdrg>
hi
<szqdsegrhrdgdrg>
Which is better Rails or Laravel ?
<taserface>
wow, subtle
<TCZ>
Rails
<szqdsegrhrdgdrg>
TCZ why ?
<taserface>
Laravel
<szqdsegrhrdgdrg>
taserface why ?
<taserface>
because I'm an asshole
<szqdsegrhrdgdrg>
taserface Ok.
vondruch has joined #ruby
<havenwood>
szqdsegrhrdgdrg: Rails is, but why do you ask? Laravel is one of the nicer PHP frameworks.
<TCZ>
Sinatra
<havenwood>
Roda
<havenwood>
Why does GitHub say Laravel is used by 587 sites? That can't be right. Rails is 1.3M.
<TCZ>
strange, i didnt know about Roda but i have it in browser history : /
<taserface>
most PHP people are too cool for frameworks
<havenwood>
TCZ: <3 Roda.
<szqdsegrhrdgdrg>
havenwood Is Rails better than Laravel ?
<havenwood>
taserface: Yeah, of course it is. I think Laravel is an improvements to most PHP sites and seems quite nicely done. I even once recommended a site use Laravel rather than Rails in an upgrade, but that was a massive existing PHP stack.
<havenwood>
taserface: Whatcha making? It does matter.
TCZ has quit [Quit: Leaving]
<taserface>
I would recommend laravel to any PHP developer
<taserface>
right after listing off some langauges to use instead of PHP
<havenwood>
taserface: Oh, you're not the one asking, haha. Same color in my IRC client as szqdsegrhrdgdrg.
<havenwood>
szqdsegrhrdgdrg: What are you making??
<szqdsegrhrdgdrg>
A guy, said Laravel is a verbatim copy of Rails
<havenwood>
szqdsegrhrdgdrg: It's a copy, but not verbatim.
<havenwood>
szqdsegrhrdgdrg: It seems nicely done. What are you making?
<szqdsegrhrdgdrg>
havenwood What make Rails better than Laravel ?
<szqdsegrhrdgdrg>
havenwood Nothing actually
<szqdsegrhrdgdrg>
just want to know
<taserface>
well if it's a commercial project
<taserface>
PHP does have a massive developer base