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
    Chris Trottier (atomicpoet@calckey.social)'s status on Friday, 23-Jun-2023 08:55:14 JST Chris Trottier Chris Trottier

    For 20 years, I've worked in the software industry. Rarely do I code.

    The coding I've done is somewhat laughable too. The languages I know are BASIC, HTML, CSS, JavaScript, Markdown, and a bunch of stuff nobody cares about.

    For example, here's a LOLCODE demo:
    HOW IZ I fetch_rss_feed YR feed_url I HAS A result I HAS A feed_json BTW Fetch the RSS feed using HTTP GET request result R "HTTP GET" feed_url MKAY BTW Parse the RSS feed into JSON feed_json R "PARSE RSS" result MKAY BTW Create an ActivityStream object I HAS A activity_stream activity_stream R {"@context": "https://www.w3.org/ns/activitystreams", "type": "OrderedCollection", "items": []} MKAY BTW Convert RSS items to ActivityStream items I IZ 0 IM IN YR item LOOP I HAS A item item R feed_json["items"][I] MKAY BTW Extract relevant data from RSS item I HAS A title I HAS A content I HAS A published title R item["title"] MKAY content R item["content"] MKAY published R item["published"] MKAY BTW Create an ActivityStream item I HAS A activity_item activity_item R {"@context": "https://www.w3.org/ns/activitystreams", "type": "Article", "name": title, "content": content, "published": published} MKAY BTW Add the ActivityStream item to the collection activity_stream["items"] R activity_stream["items"] AN activity_item MKAY I R I SUM OF 1 AN 1 MKAY IM OUTTA YR item LOOP BTW Return the ActivityStream object FOUND YR activity_stream MKAY IF U SAY SO BTW Example usage: I HAS A feed_url feed_url R "https://example.com/rss_feed.xml" MKAY I HAS A activity_stream activity_stream R fetch_rss_feed(feed_url) MKAY BTW Print the ActivityStream JSON VISIBLE activity_stream
    None of this is useful. It's actually quite frivolous. Any "serious" coder reading this is probably rolling their eyes.

    I've never coded professionally. I only do it for fun.

    The only reason I started coding is because I couldn't afford games for my Commodore 64, and I thought that if I could make them up, I'd have more games. This was entirely my motivation for learning BASIC.

    Coding has given me insight into how apps are made, and whether or not something is doable. And that has helped me in my work.

    I appreciate coding, but it certainly isn't my specialty.

    In conversation Friday, 23-Jun-2023 08:55:14 JST from calckey.social permalink

    Attachments



    • Embed this notice
      don Elías (como los buses) 🥨 (donelias@mastodon.cr)'s status on Friday, 23-Jun-2023 09:07:33 JST don Elías (como los buses) 🥨 don Elías (como los buses) 🥨
      in reply to

      @atomicpoet love the "MKAY" keyword

      In conversation Friday, 23-Jun-2023 09:07:33 JST permalink
      Chris Trottier 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.