Crate gh_bofh_lib

Source
Expand description

This crate provides functionality to generate random BOFH (Bastard Operator From Hell) excuses.

The purpose of this module is to allow an interface to generate random BOFH excuses. There are two flavors of excuses: classic and modern. Both flavors are available as static arrays of string slices.

§Classic excuses

The classic excuses are inspired by the original BOFH excuse list from the 90s. They revolve around the problems around physcial hardware, network infrastructure and in-person enterprise support. There are a total of 467 classic excuses in the list.

You can see the list of classic excuses by importing the CLASSIC constant from gh_bofh_lib.

You can also generate a random classic excuse by calling the random_classic function.

§Examples

use gh_bofh_lib::random_classic;
let excuse = random_classic();
println!("{}", excuse);

§Modern excuses

The modern excuses are inspired by the modern problems faced by IT professionals. They revolve around cloud infrastructure, software development, and remote support. There are a total of 105 modern excuses in the list.

You can see the list of modern excuses by importing the MODERN constant from gh_bofh_lib.

You can also generate a random modern excuse by calling the random_modern function.

§Examples

use gh_bofh_lib::random_modern;
let excuse = random_modern();
println!("{}", excuse);

§Other Examples

use gh_bofh_lib::{
    random_classic,
    random_modern,
};

let classic_excuse = random_classic();
println!("Classic excuse: {}", classic_excuse);

let modern_excuse = random_modern();
println!("Modern excuse: {}", modern_excuse);

Re-exports§

pub use excuses::CLASSIC;
pub use excuses::MODERN;

Modules§

excuses
This crate stores the list of excuses that the application pulls from.

Functions§

random_classic
Returns a random classic excuse
random_modern
Returns a random modern excuse