Skip to content

Instantly share code, notes, and snippets.

@ivanceras
Last active March 1, 2018 02:07
Show Gist options
  • Save ivanceras/c04b0cf16f899270b61f9228a910a2a6 to your computer and use it in GitHub Desktop.
Save ivanceras/c04b0cf16f899270b61f9228a910a2a6 to your computer and use it in GitHub Desktop.

Input:

+-----------+                +---------+
| Alice $.a |*<--------------o Bob $.b |<---.
+-----------+                +---------+    |____


Expected:
+-------+                +-----+
| Alice |*<--------------o Bob |<---. 
+-------+                +-----+    |____


Reality:
+--------+                   +-----+
| Alice  |    *<-------------o Bob |    <---.
+--------+                   +-----+        |____


Compromised solution:

+-----------+                +---------+
| Alice     |*<--------------o Bob     |<---.
+-----------+                +---------+    |___


Better yet, do this:

Input:
+-------------+                +-----------+
|   Alice $.a |*<--------------o   Bob $.b |<---.
+-------------+                +-----------+    |____


Render:
+-------------+                +-----------+
|   Alice     |*<--------------o   Bob     |<---.
+-------------+                +-----------+    |____

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment