WelcomeUser Guide
ToSPrivacyCanary
DonateBugsLicense

©2024 Poal.co

1.1K

isno=cat "$dirloc""perms" if [ "$isno" == "" ]; then echo "no" > "$dirloc""perms" echo "No was not Yes. We changed that." fi

You can go f right off, younger me.

>isno=`cat "$dirloc""perms"` > if [ "$isno" == "" ]; > then > echo "no" > "$dirloc""perms" > echo "No was not Yes. We changed that." > fi You can go f right off, younger me.

(post is archived)

[–] [deleted] 2 pts

dont code drunk

[–] 1 pt

I didn't, therein lies the problem.

[–] 1 pt

I embedded ample comments in my coding days. You never knew when you might be requested to revise or add more capability years later.

Anything I wrote from scratch was virtually self commenting because I used very descriptive variable names and did my best to write code that read like English. Visual Basic was a great language for that. C and C++, not as much.

[–] 0 pt

Most code I write nowadays is to drive APIs. GUIs suck ass.

[–] 1 pt

This was all command line stuff. After reviewing it, it was apparently to solve a problem with another program that I didn't write that wanted this file in a location, but would erase it at times. This fixed that.

[–] 1 pt

The code conundrum. Do the hard thing and go deep to fix someone else's clunky old code or do the easy thing and write an expedient patch. Young you probably chose the right path because when you correct someone else's clunky code, you usually end up owning it and all of its warts going forward - a patch can resolve the issue more quickly while you remain at arms length of owning the clunky code. The next guy that comes along after you needs documentation to know about the flaw and the patch or will be forced to reinvent it.

[–] 1 pt

There's a lot of things running here that use files as interlocks and semaphores. It's always fun.