<leftylink>
or uh I guess you can shift off of ys if you're okay with mutating ys, but I actually wanted not to mutate ys.
<leftylink>
only xs
<leftylink>
so, no
<leftylink>
you could obviously make a copy and shift off of that, but in that case you're doing the exact same thing as the one with ye = ys.each and ye.next
<leftylink>
and I'm sort of philosophically opposed to stateful blocks passed to map/map! anyway because philosophically the idea should be that you can map the elements in any order
<leftylink>
even though you don't actually map them in any order
<leftylink>
but it's the philosophy
<leftylink>
couldn't run it in parallel, and other problems
<leftylink>
so lets move on. just the zip and map
<leftylink>
but if you look at what's going on in the eperiments with map!.with_index ... it's cool to think that with_index can do the job. I think it might be an interesting exercise to think about how you would implement with_index
<leftylink>
I'll not focus on the behaviour when it's not passed a block (in which case it returns another enumerator), nor worry about the optional index argument. I just want the basics for now
<leftylink>
okay
<leftylink>
that's not so bad
<leftylink>
pandabot: rb using(Module.new { refine(Enumerator) { def my_with_index; i = -1; each { yield(_1, i += 1) } end }}); xs = %w(a b c); ys = [1, 2, 3].freeze; xs.map!.my_with_index { |x, i| x + ys[i].to_s }; xs
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 265 seconds]
FullMetalStacker has quit [Remote host closed the connection]
CalimeroTeknik has joined #ruby
CalimeroTeknik has quit [Changing host]
crax23 has joined #ruby
alexherbo2 has quit [Ping timeout: 260 seconds]
Y05hito__ has joined #ruby
FullMetalStacker has joined #ruby
alexherbo2 has joined #ruby
cartdrige has quit [Ping timeout: 265 seconds]
crax23 has quit [Ping timeout: 260 seconds]
Y05hito__ has quit [Client Quit]
cartdrige has joined #ruby
some14u has joined #ruby
some14u has quit [Client Quit]
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ruby
grokify has joined #ruby
dionysus69 has joined #ruby
XR0DRiG0 has quit [Quit: Leaving]
grokify has quit [Ping timeout: 248 seconds]
some14u has joined #ruby
some14u has quit [Client Quit]
<FullMetalStacker>
#poll #editor #ide Hey guys, what is the preferred IDE or editor for Ruby that is 100% open source and thus included in popular linux distribution's repos?
desnudopenguino has joined #ruby
<adam12>
FullMetalStacker: You're not going to get a great answer to this I suspect, since editors/IDE's are kind of like religion amongst developers.
<adam12>
FullMetalStacker: I use Neovim.
<caleb>
same, vim8/9 or neovim
<gr33n7007h>
i use vim/nano i'm a simple guy xD
<caleb>
I don't use anything lua or neovim specific so it doesn't matter which one comes up at this point. I have a neovim config that loads my vimrc and such as usual.
<caleb>
while we're getting into this editor religion talk
<caleb>
I've seen people go from TextMate -> Sublime -> Atom -> VSCode, while tmux and vim never changes, never had random updates break my stuff and generally "just works"
<caleb>
the older I get the more I value my tools not changing
<adam12>
Agreed.
<adam12>
I
some14u has joined #ruby
some14u has quit [Client Quit]
<adam12>
I've actually been cutting from my limited stack as it is. I no longer use tmux locally, as I found it was getting in my way more often than not.
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ruby
<adam12>
And for terminal colours/theming, I am using vim-dim, which just uses the terminal colour pallete. Set it once and it's the same everywhere, which has been _much_ nicer.
<adam12>
I'd love a Ruby-specific LSP plugin for Neovim tho. I've been tempted to write one, but haven't had time. I might even sponsor one if I saw one.
<adam12>
The only LSP-like feature I currently use is K (which is actually a vim builtin). Brings up Ruby help for method under cursor :)
dionysus69 has quit [Ping timeout: 248 seconds]
<FullMetalStacker>
@adam12 #religion I am aware. But I want to know what your religions are. I cant find a good IDE and am wondering if i am overlooking something. I should had added: "anything else than VIM" though :-D
<FullMetalStacker>
given that I am searching for a GUI IDE, my best shot so far is KATE. but it falls far behind the good user experience i had with Sublime, back then when I was forced to use non-FLOSS software for a while
<caleb>
"anything else than VIM" you might be in the wrong place lol
<FullMetalStacker>
@caleb I was afraid of that :-D
grokify has joined #ruby
<FullMetalStacker>
My very first contact to linux back in '98 was to get trapped in vim and not finding out, forcing me to reboot the production server, i guess this trauma prevents me from getting anywhere near VIM again still today, 1000 years later
grokify has quit [Remote host closed the connection]
<FullMetalStacker>
i guess you guys are using VIM since an eternity and thus are super productive with it. i am wondering what your take is on this: would you really advice a noob in 2022 to go for VIM and through all the pain of learning it? does this investment still pay off in 2022?
FullMetalStacker has quit [Remote host closed the connection]
jetchisel has quit [Ping timeout: 260 seconds]
jetchisel has joined #ruby
FullMetalStacker has joined #ruby
<caleb>
I honestly truly believe this. VIM was around before I was born, and it will be here in some form long after I'm dead.
<caleb>
I can count on one hand the number of tools in computing that I believe that will be true for.
alexherbo2 has left #ruby [#ruby]
<caleb>
but if you join the Ruby Discord I'm sure everyone will tell you to use VSCode
grokify has joined #ruby
<adam12>
The only downside of learning Vim imho, is it's super challenging to unlearn it. If I end up in nano/other, I get random :w's saved in files sometimes :)
<caleb>
but goodness, I'm so entrenched in muscle memory that when I bump up against the corners of a VIM mode it almost counts as physical pain
<ox1eef_>
The only downside to learning vim is missing out on emacs !
<caleb>
heh, I didn't say it but emacs and evil mode is the best possible VIM
<caleb>
and I would be using it if I could stand using elisp to configure things
<ox1eef_>
I disabled that :) I am using 'doom emacs' - it does a good job at being emacs with the expectations we have from modern editors like vs code.
<ox1eef_>
I also use 'mg' a fair bit. It is a stripped down emacs that can be used in the console, not that different to 'vi'.
<ox1eef_>
And to be honest, vs code is still superior for things like React / JSX. I haven't found an optimal emacs setup for that yet. It works, but it is quirky.
Michaela has quit [Ping timeout: 255 seconds]
Michaela has joined #ruby
stirl has joined #ruby
D_A_N_ has left #ruby [#ruby]
tiziodcaio has quit [Quit: Bridge terminating on SIGTERM]
sixecho has quit [Quit: Bridge terminating on SIGTERM]
wuming2[m] has quit [Quit: Bridge terminating on SIGTERM]
Alhamdulillah[m] has quit [Quit: Bridge terminating on SIGTERM]
jhass[m] has quit [Quit: Bridge terminating on SIGTERM]
M1ll173r47[m] has quit [Quit: Bridge terminating on SIGTERM]
andrea[m]12 has quit [Quit: Bridge terminating on SIGTERM]
jhass[m] has joined #ruby
walez has joined #ruby
sixecho has joined #ruby
M1ll173r47[m] has joined #ruby
andrea[m] has joined #ruby
tiziodcaio has joined #ruby
wuming2[m] has joined #ruby
Alhamdulillah[m] has joined #ruby
caedmon has joined #ruby
finsternis has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
finsternis has joined #ruby
gonix has joined #ruby
<FullMetalStacker>
@caleb: Although I dont doubt that VSCode is the best IDE out there I cannot use it out of ideological reasons.
<FullMetalStacker>
I will never forget ballmer calling open source a cancer and i will never forget that M$ strategy is to embrace and strangle
<FullMetalStacker>
that is what they are doing with github, vscode, etc.
<adam12>
Your options are likely limited. RubyMine is pretty good as far as Ruby specific IDE's go and not being Microsoft, but it's definitely not FOSS.
walez has quit [Quit: Leaving]
<FullMetalStacker>
yes, rubymine looks nice, but as you said: proprietary.
<FullMetalStacker>
and the company already had security issues in the past AFAIK
caedmon has quit [Quit: caedmon]
gonix has quit [Ping timeout: 246 seconds]
grokify has joined #ruby
caedmon has joined #ruby
grokify has quit [Remote host closed the connection]