←back to thread

490 points jarmitage | 1 comments | | HN request time: 0s | source
Show context
paulluuk ◴[] No.40681492[source]
While this is really cool, I have to say..

> import warp as wp

Can we please not copy this convention over from numpy? In the example script, you use 17 characters to write this just to save 18 characters later on in the script. Just import the warp commands you use, or if you really want "import warp", but don't rename imported libraries, please.

replies(5): >>40681523 #>>40681706 #>>40681974 #>>40683394 #>>40685824 #
dahfizz ◴[] No.40681523[source]
Strongly agreed! This convention has even infected internal tooling at my company. Scripts end up with tons of cryptic three letter names. It saves a couple keystrokes but wastes engineering time to maintain
replies(2): >>40681717 #>>40682973 #
hot_gril ◴[] No.40682973[source]
It doesn't really matter
replies(1): >>40688163 #
m463 ◴[] No.40688163[source]

  import os as o
  import sys as s
replies(1): >>40699929 #
1. hot_gril ◴[] No.40699929[source]
Those are already short enough, but if someone really wants to rename os to o, I won't mind.