Jon Rumsey

An online markdown blog and knowledge repository.


Project maintained by nojronatron Hosted on GitHub Pages — Theme by mattgraham

Scripting with Ethan Denny

CodeFellows TA - Ops and Cyber Security Track

Functions and Scripting

Turn problems into useful commands... and turn commands into tools!

Computational Advantage: Similar to a lever that simplifies moving a heavy load => "big results with little effort".

Computational Abstraction: Bundling sets of instructions and controlling, and minimizing external dependencies, and giving it a name.

Abstraction: Remove concern for details.

Pipes and Redirects (Windows and Linux, respectively) chain command inputs and output together.

Wrapping multiple functions and their input and outputs together is a process of abstraction.

Higher-level languages: More abstracted from the hardware (CPU, RAM, I/O).

Lower-level languages: "Closer" to the hardware, and generally less abstracted, and closer to binary coded instructions.

Write your code plans in Pseudocode so it is portable to any other language.

Function Fragility: Dependencies on global or other variables and states.

Reusability reduces costs, and minimizes fragility.

Following this session, I had a nice discussion with Ethan about the presentation and a few other topics.

Return to pph-index.md