[San-Diego-pm] Perl Mongers Meeting Tuesday, October 13th

Keith Thompson Keith.S.Thompson at gmail.com
Tue Oct 13 20:28:02 PDT 2020


As discussed in the meeting, here's the relevant line from my .vimrc:

set listchars=tab:┌┬┐,trail:·

The non-ASCII characters are:
250c:BOX DRAWINGS LIGHT DOWN AND RIGHT
252c:BOX DRAWINGS LIGHT DOWN AND HORIZONTAL
2510:BOX DRAWINGS LIGHT DOWN AND LEFT
b7:MIDDLE DOT

A sample looks like this (with tabstop=4):

#include <stdio.h>
int main(void) {
┌┬┬┐for (int i = 1; i <= 100; i ++) {
┌┬┬┐if (i % 15 == 0) {
┌┬┬┐┌┬┬┐puts("FizzBuzz");
┌┬┬┐}
┌┬┬┐else if (i % 3 == 0) {
┌┬┬┐┌┬┬┐puts("Fizz");
┌┬┬┐}
┌┬┬┐else if (i % 5 == 0) {
┌┬┬┐┌┬┬┐puts("Buzz");
┌┬┬┐}
┌┬┬┐else {
┌┬┬┐┌┬┬┐printf("%d\n", i);
┌┬┬┐}
┌┬┬┐}
┌┬┬┐return 0;
}

Here every tab occupies 4 columns, but it also works nicely when tabs
expand to a varying number of columns and/or you have odd mixtures of tabs
and spaces:

x x
 x┌┐x
  x┐  x
   x┌┬┬┐x
 ┌┬┐x┌┬┐  x
┌┬┬┐ x┌┐┌┬┬┐x
┌┬┬┐  x┐┌┬┬┐  x
┌┬┬┐   x┌┬┬┐┌┬┬┐x
   ┐ ┌┬┐x┌┬┐┌┬┬┐  x
┌┬┬┐┌┬┬┐ x┌┐┌┬┬┐┌┬┬┐x
┌┬┬┐ ┌┬┐  x┐┌┬┬┐┌┬┬┐  x

[image: tabs-vs-spaces.png]

On Mon, Oct 12, 2020 at 2:31 PM Bob Kleemann <rkleeman at energoncube.net>
wrote:

> Hello Perl Mongers,
>
> This is a quick reminder that the quarterly San Diego Perl Mongers meeting
> will be occurring on Tuesday evening, starting at our normal time of 7 PM.
> As has been for the last several meetings, we're going to meet online, as
> in-person meetings are discouraged, and online meetings seem to be a bit
> more popular.
>
> Here's the Meeting ID: 851 5455 5818
> Here's the Zoom link: https://us02web.zoom.us/j/85154555818
>
> The passcode can be acquired by running the short Perl program:
>
> sub sum {
>     $a = shift();
>     $a += shift() while @_;
>     return $a;
> }
> @n = ( 3 ); END{ print @n, "\n"; }
> push @n, sum( $n[0], 0+ at n );
> push @n, sum( $n[0], $n[-1] ) for @n[0,1];
> push @n, sum( @n ) / $n[0];
>
>
> We'll start the conversation by checking in with everyone, and seeing if
> there are any questions.  Following that, I'm trying to work up a short
> presentation.  Otherwise, it looks to be a mostly social meeting.
>
> We're looking forward to an enjoyable evening with you all!
>
> Bob
> _______________________________________________
> San-Diego-pm mailing list
> San-Diego-pm at pm.org
> https://mail.pm.org/mailman/listinfo/san-diego-pm
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/san-diego-pm/attachments/20201013/7710a86d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tabs-vs-spaces.png
Type: image/png
Size: 87816 bytes
Desc: not available
URL: <http://mail.pm.org/pipermail/san-diego-pm/attachments/20201013/7710a86d/attachment-0001.png>


More information about the San-Diego-pm mailing list