Don't forget to stay hydrated.🍉🍉🍉🍉🍉

This is a test account for testing out lemmy.

Bio update test: 2024-03-13

  • 2 Posts
  • 9 Comments
Joined 3 years ago
cake
Cake day: June 16th, 2023

help-circle


  • I thought about trying this, but thinking about how to execute it already sounds painful enough.
    For input data, I could use my existing library of mostly individually-selected songs, currently at size 1,662. Since I mostly listen to everything, this spans a rather large range of dates.
    Then start taking random songs, and rating them on 1 - 10 scale in relation to entire library, enter ratings into 10 year buckets, and use mean of those ratings.
    Probably 5 ratings per bucket to keep it short.
    Unfortunately, I most likely can’t fill every bucket, hell, some would remain empty. After all, classical music makes my library likely start in late 1600s, and end in 2025.
    I didn’t think about that. Perhaps I could leave it out, and start at, say 1920s, but that would make the data incomplete.

    Problem is, I don’t have the years for most of them, so that would mean looking up release dates for those individually.

    Huh, what if everyone would absolutely love (old) classical music, but we don’t see a spike as the graph starts at age of -40?


  • UUUuuuuuh, I am not a programmer (you’re going to say “thank god”), but…

    I sometimes even chain them. You can put yet another ternary operator in the else and keep going. You know, else-if.
    So anyway, I can get ternary operators spanning 2 - 3 lines.
    Oh, I also often have issues thinking of proper loops, so you’d see a few terribly used goto statements.

    Although I do remove ones that are obvious brain fart.
    For example, quite obvious

    void example(bool true_or_false){
        if(true_or_false){
            //code if true
        }
        else{
            //code if false
        }
        //other code
    }
    

    Well, I’ve already had my brain goof up even that once or twice. “How the fuck”, you’re asking?

    void example(bool true_or_false){
        if(true_or_false){
            goto if_true;
        }
        //code if false
        goto end_false_if;
    if_true:
        //code if true
    end_false_if:
        //other code
    }
    

    The brain-fart if-else.