• 3 Posts
  • 102 Comments
Joined 2 years ago
cake
Cake day: July 2nd, 2023

help-circle



  • JakenVeina@lemm.eetoComic Strips@lemmy.worldHard Read
    link
    fedilink
    English
    arrow-up
    8
    ·
    edit-2
    17 days ago

    The book on the table has the telltale Cliff Notes branding imagery. Cliff Notes is a company that was real big in the 90s and 00s (not sure how big these days) for making short summaries of famous novels, including plot points and themes. Everything you would need to write a competent essay on the book. They’re notorious for allowing high school kids to get through literature classes without actually doing the reading work.



  • I’m not sure which ones he was into at 4yo specifically, but my son’s Switch favorites include…

    Super Mario Odyssey Mario + Rabbids: Kingdom Battle Celeste Minecraft Yoshi’s Crafted World Letterquest Big Brain Academy NES Arcade SNES Arcade

    Of those, the ones I would say mught meet your super-chill criteria are…

    Super Mario Odyssey (yeah, you can die, but you just respawn and can spend tons of time just running around aimlessly) Celeste (normally not, but there’s a lovely Assist Mode) Yoshi’s Crafted World (there’s a no-fail mode) Big Brain Academy (if they can handle being scored on things, without taking it too seriously).










  • A quality apology consists of 3 things:

    • An explanation of what you did that was wrong, and why it was wrong
    • An explanation of what you’re going to try and change about yourself, to avoid the same mistake
    • An expression of remose. I.E. the word “sorry” or “apologize”.

    Your proposed apology has all those elements, so you’re already ahead of most folks. But there are a few suggestions for improvement in this thread that I think are also good.

    “if you felt so, I apologize”: I don’t read this as you apologizing for how the other person feels, since you clarified that earlier. But I think it’s fair that others might read it that way, so you’re better off eliminating the ambiguity. You’re apologizing for what you did, without considering that others might (validly) consider it inappropriate.

    “I’ll try to control myself around you”: similar deal, it should be clear that this is about you, not them. And when it comes to swearing in a workplace, it’s pretty-darn common to consider it inappropriate and unprofessional, no matter who you’re around. Maybe part of your apology needs to focus on how the behavior is unprofessional, and you simply needed help recognizing that, as you’re (possibly?) new to the professional working world.




  • It’s the capability of a program to “reflect” upon itself, I.E. to inspect and understand its own code.

    As an example, In C# you can write a class…

    public class MyClass
    {
        public void MyMethod()
        {
            ...
        }
    }
    

    …and you can create an instance of it, and use it, like this…

    var myClass = new MyClass();
    myClass.MyMethod();
    

    Simple enough, nothing we haven’t all seen before.

    But you can do the same thing with reflection, as such…

    var type = System.Reflection.Assembly.GetExecutingAssembly()
        .GetType("MyClass");
    
    var constructor = type.GetConstructor(Array.Empty<Type>());
    
    var instance = constructor.Invoke(Array.Empty<Object>());
    
    var method = type.GetMethod("MyMethod");
    
    var delegate = method.CreateDelegate(typeof(Action), instance);
    
    delegate.DynamicInvoke(Array.Empty<object>());
    

    Obnoxious and verbose and tossing basically all type safety out the window, but it does enable some pretty crazy interesting things. Like self-discovery and dynamic loading of plugins, or self-configuration of apps. Also often useful when messing with generics. I could dig up some practical use-cases, if you’re curious.