GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Mu-An (muan@mastodon.social)'s status on Wednesday, 13-Nov-2024 11:27:16 JST Mu-An Mu-An
    • Alex Russell

    I saw my JavaScript dos and donts post making the rounds and people have criticisms. I do not want to engage because I am very fragile. YOU WIN.

    I volunteer @slightlyoff (?) for you to argue with.

    But anyways I added an addendum to address and clarify some criticism:

    - this doesn't scale
    - what is a dash
    - what is the point

    I don't mean to throw my CV around but I doubt most folks asking about scaling has had to serve as many users as GitHub had to. But you do you!

    https://muan.co/posts/javascript

    In conversation about 7 months ago from mastodon.social permalink
    • MortSinyx likes this.
    • Embed this notice
      Alex Russell (slightlyoff@toot.cafe)'s status on Wednesday, 13-Nov-2024 13:05:16 JST Alex Russell Alex Russell
      in reply to
      • sayrer
      • Konnor Rogers

      @konnorrogers @muan @sayrer +1. Lots of folks instinctively add "optimization" passes to re-create small savings from JS-industrial-complex stacks that turn out not to matter if you just stick to modern HTML/CSS.

      In conversation about 7 months ago permalink
      MortSinyx likes this.
    • Embed this notice
      Konnor Rogers (konnorrogers@ruby.social)'s status on Wednesday, 13-Nov-2024 13:05:17 JST Konnor Rogers Konnor Rogers
      in reply to
      • sayrer
      • Alex Russell

      @slightlyoff @muan @sayrer

      Pro tip:

      Don't use JSDOM to do document transforms 😉

      In conversation about 7 months ago permalink
    • Embed this notice
      Mu-An (muan@mastodon.social)'s status on Wednesday, 13-Nov-2024 13:05:18 JST Mu-An Mu-An
      in reply to
      • sayrer

      @sayrer That is true. This part of Jekyll has annoyed me but not so much. Thanks for the suggestion.

      In conversation about 7 months ago permalink
    • Embed this notice
      Alex Russell (slightlyoff@toot.cafe)'s status on Wednesday, 13-Nov-2024 13:05:18 JST Alex Russell Alex Russell
      in reply to
      • sayrer

      @muan @sayrer 11ty builds are so fast (if you don't lard up the pipeline) that the rebuilding thing isn't a problem in practice.

      In conversation about 7 months ago permalink
      MortSinyx likes this.
    • Embed this notice
      sayrer (sayrer@mastodon.social)'s status on Wednesday, 13-Nov-2024 13:05:19 JST sayrer sayrer
      in reply to

      @muan I'd say try the Astro tutorial first, unless you have already done it and really don't like it. Once you get to the routing and rendering of Markdown files, it just kind of works. It would not be the best if you have 100k posts, but I think that is an edge case.

      In conversation about 7 months ago permalink
    • Embed this notice
      Mu-An (muan@mastodon.social)'s status on Wednesday, 13-Nov-2024 13:05:19 JST Mu-An Mu-An
      in reply to
      • sayrer

      @sayrer yea I didn’t know what Astro is until you just mentioned it, so I went through the tutorial just now before replying. I was surprised ES syntax in front matter was featured over YAML, had to dig deeper to find that YAML is fine until you needed collections. To me Jekyll just works too… do you have a different opinion?

      I heard tons of good things about 11ty too but a JS config file put me off, then having to set eleventy.addPassThroughCopy for static assets drove the knife through.

      In conversation about 7 months ago permalink
    • Embed this notice
      sayrer (sayrer@mastodon.social)'s status on Wednesday, 13-Nov-2024 13:05:19 JST sayrer sayrer
      in reply to

      @muan I think Astro is better if you need to make little dynamic parts in the pages (what they call "Islands architecture"). Jekyll and 11ty both seem fine to jam out some web pages, but it seems weird to rebuild everything so much.

      In conversation about 7 months ago permalink
    • Embed this notice
      sayrer (sayrer@mastodon.social)'s status on Wednesday, 13-Nov-2024 13:05:20 JST sayrer sayrer
      in reply to
      • Alex Russell

      @muan @slightlyoff you're right. I've written some pretty big ones, GitHub size or worse (meaning higher traffic).

      A lot of that stuff happened because you had to write C++ or at least pretty advanced JVM/C# code to really make it work. If it was Python or Ruby... making the client do it JS made sense.

      Now, there's Rust, Go, and all the older ones are better too. I have done all of them. Astro seems close to the approach you're describing here.

      In conversation about 7 months ago permalink
      MortSinyx likes this.
    • Embed this notice
      Mu-An (muan@mastodon.social)'s status on Wednesday, 13-Nov-2024 13:05:20 JST Mu-An Mu-An
      in reply to
      • sayrer

      @sayrer I think Jekyll is the closest. Not just serving but also in the making (dependency management). I don't need to write Ruby to build a blog with Jekyll but I need to write JavaScript with Astro (to get collections in order to forloop them, for example).

      I think gem authors also seem to be more careful with adding dependencies than JS module authors. Perhaps I am biased.

      In conversation about 7 months ago permalink
      MortSinyx likes this.

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.