12 votes

Dissecting A Dweet ~ Spiral Javascript Quine Explained

2 comments

  1. KilledByAPixel
    Link
    Hi, Tildes folks! Over the past few months I've written several hundred tiny JavaScript programs to do all kinds of cool stuff. Most of these programs are 140 characters or less and I've learned a...

    Hi, Tildes folks! Over the past few months I've written several hundred tiny JavaScript programs to do all kinds of cool stuff. Most of these programs are 140 characters or less and I've learned a ton about this very niche skill.

    My plan is to start publishing short articles about how some of these work. I hope others find this style of "tiny coding" as fascinating as I do.

    I chose to write about this spiral quine I did first because it is one of the easier to follow ones and has a really beautiful result. This one came to me in a dream, no joke. I also made a really fun animation to help demonstrate how the code works.

    Thanks for reading!

    5 votes
  2. [2]
    Comment deleted by author
    Link
    1. KilledByAPixel
      Link Parent
      Thank you! This was one of the more straightforward dweets I've done, working up to explaining some of the more crazy stuff. So, about the text of u, it is even simpler then that. In javascript...

      Thank you! This was one of the more straightforward dweets I've done, working up to explaining some of the more crazy stuff.

      So, about the text of u, it is even simpler then that. In javascript any time you try to do a string operation on something that is not a string, it will be automatically converted to a string. So it's not just fillText, but any function or operator that will do this.

      3 votes