• @hardkorebob
    link
    1
    edit-2
    3 months ago

    I write python in shell. Literally. I made a shell function file (pnk.lang) that prints correct python code. The capital letters in the shell function’s name, my Tkinter IDE turns into color as you see above. So I let the color (capital letter) abstract away indentation for my brain. The second letter is for category of python code according to me. Again using color to allow me to think. I dont like Python syntax. I looks ugly to me. So I made this tool to make coding colorful, succint and fun for me. It reduces my eye strain among many other personal benefits.

    S=self

    E=echo

    #indentation

    #Z=“” #0

    Y=" " #3

    X="$Y$Y " #7

    W="$Y$X " #11

    V="$Y$W " #15

    U="$Y$V " #19

    YDfd() {

    typeset z="$1"
    
        typeset nn="$2"
    
    typeset cc="$3" 
    
    if [[ $z == z ]]; 
    
    then
    
    	$E "$Y def $nn(${S}$cc):"
    
    else
    
    	$E "$Y def $nn($cc):"
    
    fi
    

    }

    YDdefe() {

    typeset fn="$1"
    
    YDfd z $fn ,e=None
    

    }

    YDdefe addNew

    XIcv $ap Pnk

    XFpk $ap 1 both

    XFfc zz pw.add $ap

    turns into

    def addNew(self,e=None):
        self.appinstance = Pnk(self,)
        self.appinstance.pack(expand=1,fill="both",padx=2,pady=2,)
        self.pw.add(self.appinstance)