eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
darkstardevx has joined #ruby
darkstardevx has quit [Remote host closed the connection]
darkstardevx has joined #ruby
willfish has quit [Quit: WeeChat 3.6]
willfish has joined #ruby
swaggboi has joined #ruby
willfish has quit [Client Quit]
willfish has joined #ruby
swaggboi has quit [Ping timeout: 248 seconds]
eddof13 has joined #ruby
swaggboi has joined #ruby
havenwood2 has joined #ruby
goldfish has joined #ruby
havenwood has quit [Ping timeout: 252 seconds]
havenwood2 is now known as havenwood
willfish has quit [Quit: WeeChat 3.6]
willfish has joined #ruby
willfish has quit [Client Quit]
willfish has joined #ruby
markong has quit [Ping timeout: 248 seconds]
grokify has joined #ruby
grokify has quit [Ping timeout: 248 seconds]
<willfish>
what is everyone working on?
GSchimpf has quit [Ping timeout: 255 seconds]
tmtt has joined #ruby
<adam12>
willfish: Personal projects include a cloud service (which I may scuttle because of IP prices and DDos) and Gemdocs.org.
<adam12>
I also have an image resizing service, a DNS API, and I took a stab at a restaurant ordering system in like 2018.
<willfish>
Nice adam12
<willfish>
You working as a full time ruby dev, too?
<willfish>
Also, you sound mega busy :)
<adam12>
Professional projects for clients include a control plane for a racked appliance, an application for determining risk (lending, security clearance, etc) and ironically another cloud service (but this one wraps the big players).
<adam12>
Yes, I've been a full-time Ruby consultant since like ~ 2006, so I work on client projects, but also my own whichever strike me as fancy.
<adam12>
willfish: hbu?
<adam12>
These are all non-Rails too. Many of them Roda/Sequel, but some of them are Hanami-Router/Sequel. So everyone who says only Rails is used in Ruby is .. wrong.
<tmtt>
Hi, newbie here. Is it possible to return something from a closure (to assign it into a variable)? I've got this line of code: `content = File.foreach("<something>") { |line| line.split(':') }` and I'd like that the output of File.foreach's closure goes into `content`. Thanks a lot in advance :)
<willfish>
I started out as a systems administrator for a tiny startup and got into ruby with a job switch. Been contracting in government gigs for the last few years
<willfish>
Sounds like you've seen a lot #adam12
<willfish>
You based in USA?
<adam12>
tmtt: If the file has multiple lines, what do you want in `content`?
<adam12>
willfish: Canada.
<adam12>
willfish: How's the government gigs? I always wondered.
<adam12>
I like to be somewhat atonomous on projects, and if anything moves at a glacial pace, I'm generally not interested. I always assumed that to be what a government or bank gig to be like.
<tmtt>
adam12: I'd expect an array like this: [["line 1 data 1", "line 1 data 2"], ["line 2 data 1", "line 2 data 2"]]
<willfish>
They're okay. I've been working with nice people in the current one for the last 2 years. We're a team of like 4 people and push features pretty much daily
<adam12>
tmtt: In that case, you probably want to chain `map` onto your `foreach`. In Ruby, anything that returns an Enumerable can have another Enumerable chained on to it.
<tmtt>
I'll look into that, thanks :)
<adam12>
tmtt: So in your case, map will receive the block, not foreach.
<adam12>
File.foreach("") # an Enumerable which contains the lines, then .map which receives each line, splits, and returns the Array. Map returns the Array of Arrays.
<adam12>
willfish: Sweet :)
<tmtt>
Yup
<willfish>
If it was really slow moving and we didn't deliver stuff I'd probably have moved on. I do sometimes struggle with the QA on the team but small thing, really
<adam12>
willfish: Any frontend? Seems like everyone does React but I'm super in favour of Unpoly (or Turbo)
<willfish>
In fact we have a few frontends doing different things
<tmtt>
adam12: That worked. Thanks :)
<adam12>
tmtt: Cheers :)
<willfish>
All written with fairly standard tech
<adam12>
willfish: Ah nice.
<adam12>
willfish: Are you with gov.uk? I always found them fairly progressive, especially for Ruby.
GSchimpf has joined #ruby
<willfish>
HMRC, yeah. Lots of fairly sensible standards to follow
<adam12>
Awesome.
<willfish>
Where are you consulting currently adam12?
<adam12>
Like company names?
<willfish>
I guess if you spend loads of time there, yeah
<willfish>
Unless there are like a billion lol
<adam12>
I'll PM you.
tmtt has quit [Ping timeout: 258 seconds]
<weaksauce>
adam12 those side projects just for fun?
otisolsen70_ has joined #ruby
FetidToot has quit [Ping timeout: 252 seconds]
<adam12>
weaksauce: Nah. Well, some of them. I keep saying I'm consulting to bootstrap my own projects, but in reality, bootstrapping is super hard and time consuming.
otisolsen70_ has quit [Remote host closed the connection]
FetidToot has joined #ruby
<adam12>
weaksauce: Image resizing service was for a need; I have a static site and wanted to generate properly sized images on the fly. This was ~ 2014/2015 so not as many competitors as there is now.
<adam12>
Restaurant ordering system was actually for a friend/client, and it launched and did business, but he became sick and closed his restaurant. I know shit about the restaurant business, and there is no passion there. It's super competitive now, with a lot giving it away for free. Getting in front of restaurant owners is near impossible. It's the most
<adam12>
obvious vertical to be in it seems. It's still around, kinda: restodash.com
<adam12>
for a friend/client == my first customer. I built it for me but with their guidance.
otisolsen70 has quit [Ping timeout: 272 seconds]
tmtt has joined #ruby
<weaksauce>
sounds useful adam12
<weaksauce>
but yeah definitely hard to get in front of people
<adam12>
Cloud project is just a continuation of my hosting service that I've run since the 90s. I started doing shells/bouncers back in 98 or so, and have been doing it ever since. It's capital heavy, and there are a ton of big players with deep pockets. I run all my own stuff on it and have some SMB clients which I provide services to. Getting IPv4 is
<adam12>
super challenging right now, and dealing with spam/abuse is kinda meh. It's online too: midstack.com
<adam12>
I need a partner, but I've never had good experiences with partners. But I also need a new idea :)
GSchimpf has quit [Ping timeout: 248 seconds]
<adam12>
And gemdocs.org is a passion project.
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<weaksauce>
yeah partners can be rough
<adam12>
I love building things; marketing them is a whole nother deal. :P
some14u has joined #ruby
GSchimpf has joined #ruby
GSchimpf has left #ruby [#ruby]
<adam12>
weaksauce: Any side projects for you?
<weaksauce>
nothing public but a few webextensions and some ruby scripts to make my life better like a meal tracker/recipe organizer etc
<weaksauce>
some irc bots
<adam12>
Ruby IRC bots?
<adam12>
I actually found some old eggdrop scripts a while back.
<adam12>
Some of them used for my shell service.
<weaksauce>
yeah ruby based irc bots
<adam12>
We need a better bot for this channel, but I worry it would be a wasted effort.
<weaksauce>
yeah all the cool kids are moving to discord
<weaksauce>
shame
<willfish>
discord kind of sucks IMO
<adam12>
Indeed. I look at Discord once a day, but there's _so_ much noise. I generally mark as read everything :|
<legit>
'Mark as read' in Discord is golden
<weaksauce>
yeah i dislike discord too... it's great for low latency team chat but text based communication is rough
<willfish>
yeah. I have it on my phone and check crypto chat on there sometimes
cartdrige has joined #ruby
<willfish>
out of interest what irc client are you all using?
<adam12>
willfish: I use The Lounge.
<adam12>
I'd rather everyone be on Matrix. At least we could bridge it.
<adam12>
Or rather, they could join IRC from Matrix.
<willfish>
Yeah, I think I'd basically reached the same conclusion more or less
<adam12>
Rails has been "dying" since 2006, as far as I remember.
<weaksauce>
it's not hype like it was because it's not the shiny new thing on the block but it's still great
<adam12>
I do wish there was a non-Ruby Central / Ruby Friends that was spearheading a few more things.
<adam12>
English docs for one.
<weaksauce>
and i think the future is even brighter when people see that you don't need the react crap that only really is useful for the big players
<adam12>
And some of the standard libraries seem near frozen in time.
<willfish>
is crystal still a thing?
<adam12>
net/http and rdoc are both on my need-love list.
<adam12>
willfish: Yes, and it's quite nice, but unless they solve incremental compiles (which I doubt it without huge changes), I suspect it will be too painful for large projects.
<willfish>
interesting. i might have a play with it
<adam12>
Time for dinner. Ttyl.
<willfish>
yeah, time for bed for me
<willfish>
ttyal
aeris has quit [Remote host closed the connection]
aeris has joined #ruby
swaggboi has quit [Quit: C-x C-c]
johnjaye has quit [Ping timeout: 255 seconds]
johnjaye has joined #ruby
cahoots has joined #ruby
<cahoots>
hi, is there any way to iterate over a tree in ruby using a higher-order function? something like, tree_seq { |node| node.children }.each { |node| ... }
<cahoots>
in the standard library, that is
ur5us has joined #ruby
swaggboi has joined #ruby
<leftylink>
it'd be surprising if there were, because since there's no tree in the standard library, a function in the standard library that acts on trees would have nothing to act on
johnjaye has quit [Ping timeout: 246 seconds]
<cahoots>
leftylink, the way it works in the above example is that you provide a block to tell it how to iterate over the children. that block returns an array of the children, given a node. this is how tree-seq works in clojure
_ht has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
some14u has joined #ruby
_ht has quit [Quit: _ht]
grokify has joined #ruby
yosafbridge has quit [Quit: Leaving]
grokify has quit [Ping timeout: 248 seconds]
willfish has quit [Ping timeout: 255 seconds]
cartdrige has joined #ruby
markong has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
FetidToot7 has joined #ruby
FetidToot has quit [Ping timeout: 252 seconds]
FetidToot7 is now known as FetidToot
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 255 seconds]
ur5us has joined #ruby
yosafbridge has joined #ruby
<adam12>
cahoots: Only one I've seen is `Find`, but it's for files.
lucerne has quit [Read error: Connection reset by peer]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]