Skip to content
View A1029384756's full-sized avatar

Block or report A1029384756

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
A1029384756/README.md
use anyhow::Result;
use rand::seq::SliceRandom;

fn main() -> Result<Product> {
    let programmer: Programmer = Programmer{
        name: "Hayden Gray",
        languages: 
            vec!["Python",
            "C", 
            "C++",
            "Rust",
            "Odin",
            "Dart",
            "JS/TS",
            "Terraform"
            ]};

    programmer.hello_world();
    programmer.do_work()
}

struct Programmer {
    name: str,
    languages: Vec<str>,
}

impl Programmer {
    fn hello_world(&self) -> String {
        format!("Hello, my name is {} ", self.name)
    }

    fn do_work(&self) -> Result<Product> {
        let language = self.languages.choose(&mut rand::thread_rng());
        let mut done: bool = false;
        let mut product: Result<Product>;

        while !done {
            //Do Work
        }

        product
    }
}

Popular repositories Loading

  1. odin-solitaire odin-solitaire Public

    Odin 10

  2. Automatic-Rotoscoper Automatic-Rotoscoper Public

    A program that allows the user to automatically rotoscope footage frame by frame.

    Python 7 4

  3. Discrete-Math-Notes Discrete-Math-Notes Public

    Discrete Math

    JavaScript 1

  4. simmips_rust simmips_rust Public

    Simulator for a subset of the MIPS instruction set

    Rust 1

  5. mips_assembler mips_assembler Public

    Rust 1

  6. openERCOT openERCOT Public

    Python 1