brokkoli_originl has quit [Ping timeout: 252 seconds]
brokkoli_originl has joined #ruby
<The_Camel_>
o0x1eef, unfortunately nobody seeded that rubymine torrent so I'm still IDE-less;
<The_Camel_>
as a result, I installed visual studio code and got ruby-lsp which... without much of a surprise, did not work first hand.
<The_Camel_>
so after some tweaking, I eventually got it to work, but it doesn't seem to do what it should;
<The_Camel_>
o0x1eef, but nevermind the lsp, what's more important to me is the debugger; it was claimed in the VSC docs that ruby-lsp comes with a debugger.
<The_Camel_>
o0x1eef, not to my surprise, that didn't work out of the box either.
<The_Camel_>
o0x1eef, I'm now blocked.
<ih8u>
ruby-lsp doesn't work for me
<ih8u>
just uses 100% cpu ad infinitum
<ih8u>
meanwhile, solargraph works quite nicely
<The_Camel_>
what is solargraph?
<ih8u>
better than ruby-lsp
<ih8u>
a ruby lsp that's better than ruby-lsp
<The_Camel_>
this is why I prefer an IDE instead of having to fiddle with lego blocks.
<The_Camel_>
which never work out of the box
<ih8u>
mm, i used to feel similarly, but i've changed as i've grown older
<ih8u>
now a full-blown ide usually feels likea lot of unnecessary faff and more moving parts (read: more potential failure points) than necessary
<ih8u>
these days i pretty much just use kate (configured to find a few lsp bins on my system) for everything
<The_Camel_>
I don't disagree.
<ih8u>
you're not going to do much better than that for ruby, anyway
<The_Camel_>
But I can't work without a debugger or an lsp.
<ih8u>
i've never used rubymines, but is there even another ruby ide?\
<ih8u>
ruby was the first kick in the pants i got as a programmer to stop relying on my ide
<ih8u>
to be fair, i've heard rubymines is excellent, i just wouldn't know, and am not particularly bothered by not having an ide for ruby anymore
<o0x1eef>
Agreed
dviola has quit [Ping timeout: 268 seconds]
diego has joined #ruby
diego is now known as Guest7147
cappy has quit [Quit: Leaving]
<The_Camel_>
ih8u, I don't even get errors or anything. I hit debug and nothing happens.
<The_Camel_>
bloody thing.
<weaksauce>
vscode is fine
<weaksauce>
has ide features
<The_Camel_>
weaksauce, well, I'm trying now to get the debugger to work (from ruby-lsp). it ain't working.
<The_Camel_>
no output at all. I set a breakpoint; I hit "Run -> Start Debugging". Nothing happens.
<The_Camel_>
God I wish that rubymine torrent would've seeded.
<ih8u>
what are you building?
<The_Camel_>
sinatra webapp
<ih8u>
is it something you've already built or something new?
<The_Camel_>
ih8u, it's already built and working. I just decided that I need a debugger.
<The_Camel_>
I wrote the whole thing in sublime text editor
<ih8u>
`puts` is my debugger
<The_Camel_>
................yeah............ :P
<ih8u>
i mean really, though lol
<The_Camel_>
I know you're serious. I use it too. But it's nothing compared to a real debugger.
<ih8u>
you got a memory balloon or something?
<ih8u>
what made you decide you need a debugger?
<The_Camel_>
I have a portion of code that's lengthy and requires some finicky data structure filtering
<The_Camel_>
need to see what's going on at each step to complete it
<The_Camel_>
requires me to do too many puts to be sane :P
<The_Camel_>
also the cli debugger is a bit of a joke
<ih8u>
`puts` is the way
<ih8u>
i never got along with step debuggers
<ih8u>
i feel like printing accomplishes the same thing but better
<The_Camel_>
that is the same thing as using the cli debugger
<The_Camel_>
which isn't all that great to be honest.
<ih8u>
i don't know what "the cli debugger" is referring to
<The_Camel_>
ruby -rdebug
<The_Camel_>
n, l, c
<The_Camel_>
b
<ih8u>
oh
<ih8u>
i thought you were talking about some vscode thing
<The_Camel_>
nope
<ih8u>
i won't touch vscode with a ten-foot pole, so i don't know what people are doing with it
<The_Camel_>
ih8u, yeah, that's fine
<ih8u>
on an unrelated note, how are you getting along with sinatra
<ih8u>
i played with it a few years ago, and was quite fond of the simplicity of it
<The_Camel_>
I love the damn thing, haha.
<The_Camel_>
I just wish
msv has quit [Remote host closed the connection]
<The_Camel_>
it didn't come with a non-ssl compiled puma webserver
msv has joined #ruby
<ih8u>
rails < hanabi < padrino < sinatra < roda
<ih8u>
in my opinion
<ih8u>
rails is just way too opinionated for me
<ih8u>
sinatra was just ever-so-slightly too hands-off
<ih8u>
actually, i don't know if that's really what i mean to say about sinatra
<ih8u>
gotta find the words
<The_Camel_>
ih8u, and I gotta find a ruby ide
<The_Camel_>
I'm not spending more time trying to fix this VSC shit
<ih8u>
buy rubymines, i guess
<The_Camel_>
ih8u, I'm considering to use their trial. i can finish my project in <= 30 days
<The_Camel_>
ih8u, but obviously I look for some more permanent solution
<ih8u>
$$$
<ih8u>
the ultimate solution
<The_Camel_>
ih8u, yeah. wish i had it
<The_Camel_>
ih8u, I'd hire you! And not give you a debugger to do this portion of code for me :)
<The_Camel_>
:P
<ih8u>
if you have enough to hire me, you have enough to buy rubymines lol
<ih8u>
several times over
<The_Camel_>
ih8u, yes but if I had money to hire you, I'd rather get someone to do this project for me, than get rubymines.
<The_Camel_>
:P
<ih8u>
spoken like a true capitalist
<ih8u>
you'll go far, my friend
<The_Camel_>
ih8u, I'm actually a communist.
<The_Camel_>
I just like to feed people doses of capitalist to show them how it hurts.
<The_Camel_>
ism*
<ih8u>
you paying me a wage broadly of my own choosing to perform a skill i have is not exactly painful
<ih8u>
don't get me wrong, i think heaven is a communism
<ih8u>
but this ain't heaven
<ih8u>
capitalism is the worst economic model except for all the other ones
<The_Camel_>
ih8u, because if I had enough money to pay you, I wouldn't even bother with the existing programming languages.
<The_Camel_>
I'd make my own. and my own framework.
<The_Camel_>
technically, fuck all programming languages. ruby included.
inline_ is now known as inline
<ih8u>
so 1000 = 1 = 1.001?
<The_Camel_>
ih8u, ruby is just a nice sweet spot. I see the more refined aspects of this shitty ecosystem.
<ih8u>
some amount of money is not the same thing as any amount of money
<ih8u>
web dev is the shitty ecosystem at play here
<The_Camel_>
ih8u, I agree with the last remark.
<ih8u>
web dev is insane and i hate it with every fiber of my being
<The_Camel_>
I'd go as far and say it's not just web dev but I'd be pedantic so "sure".
<ih8u>
ruby is the only thing that can make it tolerable (occasionally even bordering on somewhat enjoyable) for me
<The_Camel_>
agreed.
<ih8u>
application dev with a well-written, well-design sdk is a lot of fun
<ih8u>
conversely, system dev where it's just you and the machine is also fun
<ih8u>
web dev is a hellscape
<The_Camel_>
agreed.
<The_Camel_>
do you know why it's a hellscape?
<The_Camel_>
because the components are all scattered all over the place and nothing works first hand out of the box!
<The_Camel_>
and there's always some inconsistency in how things are done
<ih8u>
i blow my shit in here every couple of months about what a cesspool web dev is
<The_Camel_>
I guess I'm a little more silent about it. but I agree with you.
<The_Camel_>
that there is the code I want to debug
<The_Camel_>
I need to inspect the json structures on each step
<The_Camel_>
something puts just is a pain to bother with
<The_Camel_>
I NEED a debugger. and I can finish this in an hour.
<The_Camel_>
ih8u, because frankly, I don't even know if the structure coming in is gonna be looking correctly to begin with
<The_Camel_>
e.g "list_to_filter"
<The_Camel_>
any sort of data structure manipulation IN GENERAL, is messy without a debugger
<The_Camel_>
because you're doing it kinda blindly.
<The_Camel_>
you have some model in mind that you "think" is gonna occur, but it doesn't always turn out the case
<The_Camel_>
and seeing it happen in realtime makes a huge differenc
<The_Camel_>
ih8u, the other reason it's a hellscape is CSS/HTML/JS
<The_Camel_>
front end
<The_Camel_>
but anyway, enough bitching. going to search the web
inline has quit [Read error: Connection reset by peer]
ih8u2 has joined #ruby
Vonter has joined #ruby
ih8u has quit [Ping timeout: 260 seconds]
ih8u2 is now known as ih8u
sleetdrop has joined #ruby
ih8u2 has joined #ruby
ih8u has quit [Ping timeout: 244 seconds]
ih8u2 is now known as ih8u
fantazo has joined #ruby
schne1der has joined #ruby
tils has joined #ruby
tils has quit [Client Quit]
matoro has quit [Ping timeout: 248 seconds]
Vonter has quit [Remote host closed the connection]
Vonter has joined #ruby
<nakilon>
o0x1eef: but what would you recommend?
<nakilon>
for example, since include_examples, for example, is a thing, how do people live with it? how do they go from the report to the command to run that test on dev machine? should be some bridge between hardcore unittesting where you assume the devs are 'hackers' and those who automate browser testing, since they are mostly non-IT people at all, because they are cheaper resource and a common practice
<nakilon>
to TLDR what I probably told months ago; the QA dept. has reached the limits of ability to maintain the tests because the framework they had is a child of non-IT people, who were given cucumber, etc.; so I've switched them to rspec, ability to have nested contexts, before-s, etc., and instead of a framework which only gods knew what it was doing to a library, etc.
<nakilon>
but it costs my coworkers a lot to understand how to work with it, Rubymine does not support my workflows, etc. they can't even put a breakpoint in capybara scenario to get a console, etc., etc., they are so GUI-dependent, that I believe the problems I want to solve (like that to go from htm report to example run cmd) should be possible to solve but ...
inline has joined #ruby
<nakilon>
... there is no one to take those missing pieces of work to be done to make their life easier; so I'm mostly consult with LLM, lol, but it's missing some practical knowledge
<nakilon>
referencing the problems they had in old workflow: for example, such trivial test as "check that crud has this exact list of fields" -- they could not make it, because it just does not align with the page object pattern, siteprism gem, etc.; they were approaching things from the very limited toolset; now they have more freedom but less understanding of it, lol
<nakilon>
and so I also miss something to glue this all together to make them happy
<nakilon>
Deepseek told me I can add some jetbrains:// links to htm report by extending the formatter; I wish I had that Rubymine to even be sure that is a thing, not an LLM hallucination; but even if it will help them, it won't help me because I want rspec command, i.e. the line from failures.txt
<nakilon>
Deepseek said I can customize the failures.txt, but I don't believe it's customizable, because it should remain readable by --last-failure, idk
inline has quit [Read error: Connection reset by peer]
inline has joined #ruby
infinityfye has joined #ruby
johnjaye has quit [Ping timeout: 252 seconds]
johnjaye has joined #ruby
TomyWork has joined #ruby
inline has quit [Ping timeout: 260 seconds]
<o0x1eef>
> for example, since include_examples, for example, is a thing, how do people live with it?
<o0x1eef>
The failures include a command you can run to execute a given shared example or set of them (something like rspec foo_spec.rb[1:2:3:4])
<o0x1eef>
So my personal opinion: moving towards rspec rather than cucumber is a good call. It's not fun to have to fight your tools you're using. I don't have a solution for the problem at hand though.
inline has joined #ruby
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
<nakilon>
o0x1eef: but we look into report.htm, not in failures
<nakilon>
.txt
<nakilon>
in my coworkers imagination there is no such thing as a "foo_spec.rb[1:2:3:4]" at all, because they launch the test with some F5 button in IDE
<nakilon>
or more probably some green button )
<nakilon>
ideally the problem would be less frustrating if there was only like 1 or 2 failures in failures.txt, but it's growing because you know, "these damn QA, they create bugs, we don't have time to fix it, we need more features" )
<nakilon>
another side note: I'm already thinking about creating the "registry of known failures" that will use junit and some multidimensional space to classify the failures and automatically give an idea which jira ticket is involved
<nakilon>
it sucks that I have to build it at all, I'm not used to bugs growing like real fucking roaches colony behind the restaurant
polishdub has quit [Ping timeout: 252 seconds]
<nakilon>
also it's cringe and funny that I believe this problem isn't new and it was always there, and no one still made such tool; I just wasn't paid to make earlier due to having no job; now after years I returned to this QA automation thing and what do I see? still no tools, only LLM-scams that a polluting minds today
<nakilon>
*that are
Doc_X has quit [Ping timeout: 248 seconds]
polishdub has joined #ruby
leah2 has quit [Remote host closed the connection]
leah2 has joined #ruby
leah2 has quit [Client Quit]
leah2 has joined #ruby
Doc_X has joined #ruby
GreenResponse has joined #ruby
rvalue has quit [Ping timeout: 265 seconds]
rvalue has joined #ruby
<rapha>
huh ... rubymine
<rapha>
i thought that was only a thing in fortune500s
* rapha
uses a combo of tmux, vim, vscode compiled from sources and gedit
<rapha>
any emacsers here? :-P
<nakilon>
I want my classes to inherit common class methods but if I make a common parent class with self. methods they would be free to be used outside of my inheriting classes and I don't want that, the methods should be called only via them
<nakilon>
so I define a 'ClassMethods' module and extend with it; is it normal? are there examples of others doing that?]
<nakilon>
or is my practice bad and instances should invoke those methods via parent class name?
<nakilon>
*via the module instead of having their class extended
matoro has joined #ruby
Kamuela has quit [Ping timeout: 244 seconds]
Kamuela has joined #ruby
cappy has joined #ruby
fantazo has quit [Quit: Lost terminal]
<havenwood>
nakilon: Typically just define class methods directly on the class, unless you have a reason to abstract.
<havenwood>
Extending doesn't stop folk from stomping on your methods, but it's sometimes nice. Really depends more on context.
<havenwood>
If you can share a code example it'd be easier to weigh in on options.
cappy has left #ruby [Leaving]
Exa has quit [Quit: see ya!]
Exa has joined #ruby
rvalue has quit [Ping timeout: 260 seconds]
Vonter has quit [Ping timeout: 260 seconds]
user71 has joined #ruby
Vonter has joined #ruby
brokkoli_originl has quit [Ping timeout: 260 seconds]
<o0x1eef>
You could make the methods protected or private if you didn't want them to be usable outside the classes themselves.
<o0x1eef>
rapha: I am transitioning from emacs to vscode.dev.
<The_Camel_>
I'm debating re-writing my webapp in python because I have pycharm lol
<The_Camel_>
and I can debug visually there.
<The_Camel_>
with a GUI
<o0x1eef>
We won't forgive you for that
<The_Camel_>
o0x1eef, I know. But I really don't know what else to do. ;/
<The_Camel_>
I can't stand python
<havenwood>
The_Camel_: I see many Rubyists using VS Code with Ruby LSP or Solargraph or both.
<The_Camel_>
havenwood, yeah, well, they must've magically gotten VSC's debugger to work, something that doesn't work for me.
<havenwood>
The_Camel_: Folk just install the "Ruby" extension from Shopify, typically, I think.
<The_Camel_>
havenwood, I did that. ran into troubles and had to "fix" ruby-lsp, which I did, but the debugger doesn't work. then I installed another debugger extension for ruby. to no surprise, that didn't work either.
<havenwood>
The_Camel_: The `debug` gem ships with Ruby these days.
<The_Camel_>
havenwood, yeah but debugging through the cli is a pain.
<havenwood>
I'd expect it to _just work_ with VS Code and Ruby extension without much else.
<The_Camel_>
havenwood, I'd expect that too. but I never trust the ecosystem. and I can see why I don't.
<havenwood>
The_Camel_: It's a blue moon where I step through Ruby code so I guess we have different needs.
<havenwood>
Sure, on rare occasions I do. Just not something I look for in an editor.
<o0x1eef>
I mean, I'm not happy about my environment either. That's why I'm trying vscode.dev. Most important for me is productivity and the ability to integrate modern AI features and also for the editor to not be something you have to master.
<The_Camel_>
havenwood, there are portions of code I can't write without a debugger. it would take me a few hours vs a few minutes.
<havenwood>
The_Camel_: I maybe use IRB where you're doing that?
<The_Camel_>
havenwood, it's to do with filtering data structures, in particular JSON.
<havenwood>
A `binding.irb` then you can `debug` if that comes up.
<havenwood>
The_Camel_: Yeah, sounds like what I'd use a REPL for, so variants of a debugger. You may just be expecting a different debugger interface that I do.
<The_Camel_>
havenwood, yeah, I need a GUI to debug.
<The_Camel_>
doing it in the cmd/line is just slow
<havenwood>
Interesting. I don't even know how I'd debug Ruby with a GUI. I use the command line.
<The_Camel_>
havenwood, I can do what you mentioned. i can definitely run "ruby -rdebug" or call irb
<The_Camel_>
havenwood, but I just prefer a GUI
<havenwood>
The_Camel_: I usually go straight into IRB then only jump into debug if I want to step.
<The_Camel_>
havenwood, because a GUI lets me work with nested structures much more intuitively.
<The_Camel_>
havenwood, I can open up trees
<The_Camel_>
havenwood, let me show you
<o0x1eef>
The point is Ruby is optimized for the unix mindset, where you have a collection of tools working together to create a single experience. There's no monolith solutions (besides RubyMine - maybe). If you want to be productive, don't spend your time fighting it.
<havenwood>
Plenty of folk do p-based debugging on pretty complex code.
<The_Camel_>
this is the portion I want to debug in ruby (which I amusingly wrote and finished yesterday in java in an hour)
<The_Camel_>
havenwood, it's to show you how a GUI debugger is far superior to the commandline
<The_Camel_>
I get full view of all variables in the scope, without having to manually call "disp" or "puts"
<The_Camel_>
I can open up trees if the variable is a nested structure
<The_Camel_>
I can even edit the code in place if I need to do
<The_Camel_>
and it will run
<The_Camel_>
that is absolutely amazing to me
<The_Camel_>
and I NEED this sort of thing or I spend hours doing something that takes minutes.
<The_Camel_>
and yes for that alone, I might end up re-writing my ruby webapp in python because I've done this sort of thing in pycharm and it's wonderful
<The_Camel_>
as sad as it sounds ;/
<The_Camel_>
now, how do I swear in chinese again...
<o0x1eef>
I can kind of relate to you, and I've come to realize, time is short and you should focus on getting stuff done rather than spending an infinite amount of time on your dev environment. If that's not possible with Ruby then choose something else, but embrace one way and start building
<The_Camel_>
ta ma de, zhe shi tai zaogao le
<The_Camel_>
o0x1eef, my mistake is, ultimately, funny enough, bothering to build anything in 2025 :)
<The_Camel_>
web tools are half baked
<The_Camel_>
and amusingly enough, 60 years of software engineering resulted in a half baked ecosystem.
<o0x1eef>
Right, and you just gotta accept that, you gotta work with what we have and make the most of it, otherwise nothing gets done, nothing improves
<o0x1eef>
Prioritize what matters
<The_Camel_>
o0x1eef, ok
<The_Camel_>
o0x1eef, well
<The_Camel_>
if you recall, I did say I'm "wrapping" up python, in a little library which makes writing python "feel" like ruby
<The_Camel_>
since I was already doing that as a side project...
<The_Camel_>
I think I might as well re-write this webapp in python
<The_Camel_>
o0x1eef, it's either THAT, or suck up to using a ruby -rdebug cmdline
<The_Camel_>
neither sounds fun. and if I ever encounter a portion of code that I need debugging again for...
<The_Camel_>
I'll be here bitching again xD
<o0x1eef>
I would choose the option that sees the webapp get built, because the Ruby IDE situation is what it is. It's not going to change anytime soon.
<The_Camel_>
o0x1eef, then it's python it is. sorry guys. please don't hate me. :(
<o0x1eef>
I'm learning Python atm :)
<The_Camel_>
o0x1eef, it's a bit of a bitch move of intellij/jetbrains, to offer pycharm for free
<The_Camel_>
it's almost like they're encouraging everyone to move over to python
<The_Camel_>
o0x1eef, no language has any proper, non-commercial IDE.
<The_Camel_>
I bet most people code with VSC and plugins, or suffer by using print for output
<o0x1eef>
I think Visual Studio Code has largely covered most people
schne1der has quit [Ping timeout: 260 seconds]
brokkoli_origin has joined #ruby
<nakilon>
havenwood: I don't define directly, becuase there are multiple ingeritors
<nakilon>
*inheritors
<nakilon>
private class method would demand using method() or send() to be called from instances
<havenwood>
nakilon: Kinda curious why multiple classes share class methods, but extend is fine for that purpose. I'm assuming you're setting some class-wide state for some reason, otherwise you'd just use a module function?
<weaksauce>
holy hell man. with all the complaining about no free ruby ides here you could have installed a ruby plugin in vscode and gotten debugging sorted out
<havenwood>
The_Camel_: I don't love that GUI, personally but it's not clear which parts are supposed to be valuable. I may just be missing the gold. I don't have trouble navigating with a REPL.
<The_Camel_>
weaksauce, I did try that out.
<The_Camel_>
I mentioned it in the earlier conversation.
<The_Camel_>
It didn't work.
<The_Camel_>
and my rubymine torrent didn't finish seeding either because no seeds so I'm fucked :)
<weaksauce>
you can use their betas for free it seems
<rapha>
o0x1eef: wait, you're wanting to use a browser-based
<rapha>
IDE as your main dev environment?
<rapha>
havenwood: vscode with lsp is my goal again for this project. for now, still at ruby2.6, it's puts-based debugging all the way :P
<The_Camel_>
weaksauce, thank you, but I'll pass. I'm thinking long and hard on what exactly to do.
<The_Camel_>
like, for both the future
<rapha>
The_Camel_: ruby, C, C++, etc., debugging without an IDE works just fine
<rapha>
IDEs were meant to be tools of convenience
<The_Camel_>
rapha, in the console? may be fine. but it's a pain compared to better tools.
<rapha>
and now we have whole generations of programmers who can't work without
<The_Camel_>
rapha, no. to me they're tools of "how things should be."
<rapha>
that's what i mean, The_Camel_ ... how old are you?
<The_Camel_>
rapha, 31
<rapha>
so yeah, around the top-end of that age group
<The_Camel_>
rapha, previous generations of programmers took twice or three times as long to complete projects, often with bugs
<rapha>
(i'm 43, i grew up on vim + gcc + gdb)
<The_Camel_>
I see.
<rapha>
and what you're saying about the quality of older software is true mostly for commercial software
<rapha>
not so much for the F/LOSS scene's software
<rapha>
and better tooling can make that worse, too, not just better
<The_Camel_>
which took 7 years to perfect
<The_Camel_>
:<
<rapha>
which took a long time to write, true
<rapha>
i'd argue that humanity is getting worse at writing solid software, not better
<The_Camel_>
metaphysically, philosophically, rationally, and from an engineering point of view, a visual debugger is "how things should be done". not being there means something is lacking. and it's been, freaking, 30 years since some of these languages appeared. and all we got are commercial solution IDEs for them. lame
<kmad>
The_Camel_: If you'd spent time coding instead of talking lack of IDEs here, then you would probably have been done by now...
<rapha>
if software consists of code, which consists of text, and the data are largely text and numbers, why then should debugging be visuals?
<The_Camel_>
kmad, no, I'd still be trying to fix this piece of code in ruby that I finished writing in java yesterday.
<The_Camel_>
with a debugger.
<The_Camel_>
maybe I should call this .jar from ruby
<The_Camel_>
and be done with
<rapha>
(i do agree wholeheartedly that it always sucks when there's no good free alternative to something)
<rapha>
+agree
<rapha>
ur, lol, nm
<The_Camel_>
but anyway, I'm gonna stop bitching.
<The_Camel_>
I need to think.
<rapha>
wishing you best of luck
rvalue has quit [Ping timeout: 252 seconds]
<weaksauce>
in the context of rails or web apps i think tests are more useful than a debugger 99% of the time
<weaksauce>
but i do drop down into one when it's needed
<o0x1eef>
rapha: Yep, as insane as that might sound, that's the direction I'm headed. You can create tunnels (over SSH and via vscode-server) to your local environment.
Vonter has quit [Ping timeout: 252 seconds]
<rapha>
o0x1eef: what's your rationale for choosing that over local vscode?
<o0x1eef>
I run OpenBSD on the desktop, and it doesn't have native support for vscode. I can still connect to my code through remote methods (eg ssh, vscode server).
<The_Camel_>
I have decided.
<The_Camel_>
I'll use print. Sigh.
<The_Camel_>
puts*
<weaksauce>
p is better
<rapha>
oh, interesting, o0x1eef. i never met anyone who uses openbsd (let alone on the desktop). how did that come about?
<rapha>
weaksauce: any difference between p and puts, other than 3 chars less to type?
<o0x1eef>
IMO it's a great desktop os
<o0x1eef>
Once the hardware is compatible it just works
<rapha>
so does linux :)
<rapha>
oh, and what desktop environment does one use under openbsd? i'm guessing maybe xfce?
<weaksauce>
rapha yeah. it prints out the object without interpolation and more detailed
<weaksauce>
p [1,2,3] would be [1,2,3] instead of 1\n2\n3\n
<o0x1eef>
Linux has changed over the years and gone in a direction I don't like. I use i3. Basic and straight forward.
<weaksauce>
p [1,nil,4] vs [ 1, "", 4] you would see the difference immediately etc
<weaksauce>
it also returns the object so you can inline print out things
<rapha>
huh
<rapha>
that sounds like pp
<rapha>
o0x1eef: how about Devuan with i3?
<o0x1eef>
That'd be an improvement :) But I don't think it solves the problem. Linux is recreating tools in its own image too (ifconfig => ip, netstat => ss or something, it goes on).
<rapha>
hmm i have to concede that point :(
<havenwood>
rapha: pp is in core now too, no need to: require 'pp'
pastelowl has quit [Quit: WeeChat 4.6.3]
<weaksauce>
what's the difference with p and pp
<weaksauce>
thought pp was pretty print
<havenwood>
weaksauce: A `p foo` is like a `puts foo.inspect` and `pp foo` uses the whole pretty print mumbo jumbo which can give nice colorful, hierarchical output.
<weaksauce>
always forget pp exists when i'm debugging for some reason
<adam12>
Funny, I always forget to use `p` on it's own.
<adam12>
(i reach for `pp` almost always)
<adam12>
havenwood: mumbo jumbo LOL
<o0x1eef>
I usually reach for binding.irb
<rapha>
havenwood: i never said there was :)
<rapha>
oh, binding.irb exists, as well? i always install pry and use binding.pry...
<havenwood>
rapha: Yeah, IRB cribbed a whole bunch from Pry to the point folk use IRB.
<havenwood>
rapha: And they added a `debug` gem that ships with Ruby that you can get at from IRB.
<havenwood>
rapha: A nice thing about `binding.irb` is no require needed.
<rapha>
i know about the debug gem, havenwood ... but will first have to move this thing waaay beyond ruby2.6 before i get to enjoy that again :P
<havenwood>
rapha: I don't use debug directly but nice to be able to dive in from IRB.
<rapha>
<3
<havenwood>
rapha: Yeah, 2.6 is a bit dated. That's a priority!
<rapha>
already through 1/4 of files, moving them to ruby2.7/rail6.0 ... i'll go step by step, that'll be less painful
<havenwood>
At least 2.6 to 3.4 isn't that bad unless Rails...
<havenwood>
Then I read Rails. :)
<rapha>
well, unfortunately ... rails :P
<rapha>
hahahahh
<havenwood>
Mostly just Rails updates, not Ruby, at least.
<rapha>
it's okay, i'll survive. and my boss has given me the whole project and the whole client, so /this/ time, i get to decide the direction of things
<rapha>
oh, the way it was written there are a _bunch_ of changes required to the ruby
<havenwood>
rapha: It'll be fun to just enable YJIT and get wins.
<havenwood>
When you get it to Ruby 3.4 should run quite nicely.
<rapha>
also, in terms of code quality... let me just mention: multi-line `return' statements with multiple arguments, each of which in itself does multiple things, no braces at all if the person could leave them out somehow
* rapha
puts his hand over his eyebrows and looks out into the distant, trying to glean a glimpse of YJIT on the horizon
jmcantrell has joined #ruby
<weaksauce>
oof
<weaksauce>
too clever for their own good
<rapha>
yeah, i don't want to judge though, i used to write code like that, too
jmcantrell has quit [Quit: WeeChat 4.6.3]
<The_Camel_>
o0x1eef, I would be on a BSD myself if I didn't game.
<o0x1eef>
Cool. I think vscode.dev is probably a cooler proof of concept for operating systems like ChromeOS. That's the first thing that came to mind.
<o0x1eef>
The remote tunnel option(s) makes it an interesting choice
dionysus69 has joined #ruby
<rapha>
if run on your own server... why not
TomyWork has quit [Ping timeout: 276 seconds]
user71 has quit [Quit: Leaving]
fantazo has joined #ruby
brokkoli_origin has quit [Ping timeout: 260 seconds]
FetidToot2 has joined #ruby
FetidToot has quit [Read error: Connection reset by peer]
FetidToot2 is now known as FetidToot
brokkoli_origin has joined #ruby
balrog has joined #ruby
balrog_ has quit [Ping timeout: 276 seconds]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
GreenResponse has quit [Quit: Leaving]
infinityfye has quit [Read error: Connection reset by peer]