I have a bunch of things I have cooking, kinda on and off.

  • Working with @Burger@burggit.moe on Burggit, obviously.

  • Have a minecraft modding project I work on occasionally. Not something I think I’ll ever share publicly (might share some screenshots at some point though.).

  • There’s a super secret super cool project I’ve been working on for Shota Services, which I hope people will enjoy when it comes out.

  • As well as a bunch of smaller things like tweaking various sites and some other things which are too early for me to reveal.

What have you been doing to express your creativity recently?

  • SmolSlime@burggit.moe
    link
    fedilink
    arrow-up
    6
    ·
    1 year ago

    Currently banging my head trying to understand the whole web programming. It feels so messy compared to other programming languages, and there are so many shit I have to learn just to make a modern website. I just can’t get a grasp of it. Now I’m learning javascript, and my god, it’s so weird compared to other languages. Why the hell is semicolon sometimes needed, sometimes optional? What the fuck is anonymous/arrow function? Why do I have to make a function only to be used once? I wonder if it’ss be easier once I start learning frameworks.

    Other than that, I’m also learning to draw. Though I have to muster up a lot of willpower just to do it due to negative thoughts.

    • Disa@burggit.moeOPM
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      I’ve been working on web development myself, though I have the complete opposite approach. I try to use as little client-side JavaScript as physically possible. A lot can be done with pure HTML and CSS, and when those are too limiting, I’ve been using server-side JavaScript via EJS.

      • SmolSlime@burggit.moe
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        I’ve been using server-side JavaScript via EJS.

        I’ve never heard that. Gonna see how it looks like.

    • Elyusi, Kei@burggit.moe
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      1 year ago

      I dunno that much about web dev, but from my understanding:

      Why the hell is semicolon sometimes needed, sometimes optional?

      I think that’s called ASI if you haven’t come across the term already. Semi-colons are less like “optional”, and more like the JS parser takes its best guess as to where semi-colons should go in addition to explicit ones.
      Personally, I prefer to leave code formatting decisions like that to an opinionated formatter like Prettier and just never think about it again.

      What the fuck is anonymous/arrow function? Why do I have to make a function only to be used once?

      These are trappings of functional programming. If you’re learning this stuff mostly for fun, I can recommend taking a detour to dabble in a purely(-ish) functional language for at least a little bit. It’ll probably be even more of a head-scratcher than JS, but it should quickly become obvious as to why anonymous functions are a handy convenience. More importantly it forces you to conceptualize a problem from a functional approach, which you might otherwise avoid in more popular multi-paradigm languages since it’s unfamiliar.

      As for why functional programming is handy, there’s doubtless more thorough and knowledgeable primers on the web, but as for me the two big ones that immediately come to mind are:

      • New avenues for separation of concerns. I think a typical example to point out is sorting: FP makes it trivial to separate the sorting algorithm from how you want the data sorted, you just pass a comparison function alongside the data, which the sorting algorithm then repeatedly calls.
      • Concurrency safety. Purely functional solutions are basically impossible to shoot yourself in the foot with as far as parallelism. More realistically, with unpure solutions the more you can borrow from a functional approach, the fewer avenues you have to shoot yourself in the foot with respect to parallelism.

      For JS, lifetimes and scope seem like they’d be kind of unwieldy, without knowing a bit about FP and more specifically closures.

      • SmolSlime@burggit.moe
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        I think that’s called ASI if you haven’t come across the term already.

        Never heard of that. Gonna look into Prettier.

        If you’re learning this stuff mostly for fun, I can recommend taking a detour to dabble in a purely(-ish) functional language for at least a little bit.

        I just read that and while it’s still confusing, it helps me to understand that a little better. I guess it makes sense I have a hard time understanding it, since back when I started learning programming, OOP was the hot stuff.