• 2 Posts
  • 166 Comments
Joined 1 year ago
cake
Cake day: July 2nd, 2023

help-circle

  • 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.






  • Yeah, they hotfixed that like 5 minutes after launch, and it took a little while for Steam to catch up for everyone.

    FactoryGameSteam.exe is definitely correct, probably because they now maintain FactoryGameEpic.exe and maybe a couple others, for the console releases they"re working on. But they seem tobhave neglected to instruct Steam that the exe name had change, so Steam was still looking for FactoryGame.exe. Renaming the file was an effective workaround for the first hour or so.












  • Absolutely. Like you say, it just doesn’t happen in large streams, and the threshold is probably a lot larger than you think, since on average maybe 10% of viewers actually participate in chat. The dynamic starts shifting at around 1,000 simultaneous viewers, in my experience, between chat being readable and interactable, and being just spam. That’s still plenty big enough to qualify for partner, and even make a living off of streaming alone.



  • Shit shit shit, I just remembered I haven’t attended English class all semester.

    Shit shit shit, I can’t remember my locker combination, and I can’t find the orientation sheet that has it, also I can’t find my class schedule, I have no idea what class I’m supposed to be in right now.

    Plus a few other variations. All High School. I dunno why the focus on High School, I’m 34. I get one of these once or twice a month.