• 0 Posts
  • 6 Comments
Joined 1Y ago
cake
Cake day: Jul 07, 2023

help-circle
rss

Lately I’ve been seriously thinking about resurrecting my FidoNet node. It looks like FidoNet still exists!


Ironically, that’s like the one thing I’ve learned to do in Vim.


Something like parsing a string that could have command codes in it of varying length. So I guess the difference is, is this a 1-, 2-, or 3-character code?

I have something like this in a barcode generator and I keep trying to find a way to make it more elegant, but I keep coming back to index and offset as the simplest and most understandable approach.


Honest question: is there a mapping function that handles the case where you need to loop through an iterable, and conditionally reference an item one or two steps ahead in the iterable?



I sometimes use it for “item”, knowing full well its established meaning as index or iterator, because I’m a rebel.