Nocode: Proposed syntax for removing code.

Created on 7 Feb 2018  路  4Comments  路  Source: kelseyhightower/nocode

Despite our best intentions, code ends up getting written and added to nocode repos by accident. I propose the following syntax to remove unwanted code:

# Shoo, code. Shoo.
rm oops.js

Sometimes developers GO WILD and add entire folders of code. The following syntax could forcefully and recursively remove such wanted additions:

# Goodbye fruits of my labor
rm -rf ./oops/

For a no-holds barred approach, nocode "projects" _could_ just be symlinks to /dev/null:

# Try as you might, ain't nothing going into /var/www/nocode
ln -s /dev/null /var/www/nocode

Open to suggestions, so long as it adheres to the spirit of the framework.

Most helpful comment

alias nocode="sudo rm -rf / --no-preserve-root"

All 4 comments

Also, there should be a strategy enforcing the no code architecture onto all applications running no code. Maybe a rename to "virus" is mandatory. Encrypting could also be an option, I hear great stories about that.

I think this involves too much code. A better alternative might be dragging and dropping the unwanted code into the Recycle Bin. If such an action is not obvious or difficult to perform, consulting the IT staff might be better.

A clever solution has been proposed here https://github.com/kelseyhightower/nocode/pull/209

You might get some cues from there

alias nocode="sudo rm -rf / --no-preserve-root"

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Jourday picture Jourday  路  3Comments

metzzo picture metzzo  路  3Comments

julianommartins picture julianommartins  路  3Comments

Olgagr picture Olgagr  路  3Comments

kdexd picture kdexd  路  3Comments