Campfyre
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
JPDev@programming.dev to Programmer Humor@programming.dev · 2 years ago

The Perfect Solution

programming.dev

message-square
78
fedilink
669

The Perfect Solution

programming.dev

JPDev@programming.dev to Programmer Humor@programming.dev · 2 years ago
message-square
78
fedilink
  • Pennomi@lemmy.world
    link
    fedilink
    English
    arrow-up
    17
    arrow-down
    1
    ·
    2 years ago

    Not sure what you mean, there’s no json in this code, it’s all valid (if a little ugly) Python.

    • rimjob_rainer@discuss.tchncs.de
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      So what does the f do?

      • jorge@sopuli.xyz
        link
        fedilink
        arrow-up
        5
        ·
        2 years ago

        It is a f-string

        • rimjob_rainer@discuss.tchncs.de
          link
          fedilink
          arrow-up
          2
          ·
          2 years ago

          Python is crazy

          • NιƙƙιDιɱҽʂ@lemmy.world
            link
            fedilink
            arrow-up
            3
            ·
            2 years ago

            Looks pretty much the same as a template string in Javascript, an arguably crazier language.

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 963 users / day
  • 3.59K users / week
  • 7.3K users / month
  • 19.1K users / 6 months
  • 1 local subscriber
  • 25.1K subscribers
  • 1.58K Posts
  • 56.4K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.7
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org