• 4 Posts
  • 128 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.





  • JakenVeina@lemm.eetoMemes@lemmy.mlI hate these icons
    link
    fedilink
    English
    arrow-up
    21
    arrow-down
    1
    ·
    2 months ago

    Anyone else this there’s actually nothing at all wrong with the “New” row of icons? Except for the triangle one, which is terrible in its “Original” version as well, as it indicates absolutely nothing about its app (I believe it’s Google Drive, right?). All the rest are clearly distinguishable, and have relevance to what the app does.




  • I’m echoing your thoughts, almost exactly. It’s the base game, with many of its best and worst aspects cranked up to 11. It’s best parts are its fantastic boss fights.

    Rellana was BRUTALLY difficult (at least, at the BL I was at) but I loved every moment of it.

    Midra was visually stunning, and EXTREMELY clean to play, while still being a solid challenge.

    Messmer was just a solid fight, all around.

    Scadutree Avatar initially had me annoyed, but by the time I got through it, it was one of my favorites. Very unique.

    Romina needed a massive buff, my goodness. I barely had a chance to DECIDE if I like the fight or not.

    The Furnace Golems were a really cool concept, but in gameplay are just tedious and annoying, and had way too many “fuck you, there is no counter to this move, except to abandon the fight for the next 30 seconds” noves that they can just spam repeatedly.

    Promised Consort Radahn is also BRUTALLY difficult, but ultimately learnable, like Rellana, but unlike Rellana is 0% fun to fight. One of those bosses that crosses the line from “learnavle because you get more skillful” to “learnable because you figure out how to metagame it”.

    Radahn, Consort of Miquella can actually die in a fire. “Let’s take the design concepts that ruined Malenia, even though they were a minority of the fight, and build an entire fight around them, exclusively.” I.E. it’s and entire fight made of Waterfowls. It’s every combat concept that was a step backwards for FromSoft, across the entirety of Elden Ring, rolled up into one. Seriously, guys, your job as devs is to make difficult but learnable challenges that an average gamer can overcome, with enough effort, within the rules that the rest of the game has established, not to engage in an arms race against speedrunners and hitless runners. They are not your core audience.

    Overall, an experience thst mostly improves on the base game, but was disappointing due to a few VERY significant lowlights. But it’s still Elden Ring, so still an excellent game.




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