Lemmy Today
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
JPDev@programming.dev to Programmer Humor@programming.dev · 1 year ago

The Perfect Solution

programming.dev

message-square
80
link
fedilink
682

The Perfect Solution

programming.dev

JPDev@programming.dev to Programmer Humor@programming.dev · 1 year ago
message-square
80
link
fedilink
  • rimjob_rainer@discuss.tchncs.de
    link
    fedilink
    arrow-up
    16
    arrow-down
    5
    ·
    edit-2
    1 year ago

    yes of no

    Not even valid json but compiler doesn’t complain

    • Pennomi@lemmy.world
      link
      fedilink
      English
      arrow-up
      17
      arrow-down
      1
      ·
      1 year 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
        ·
        1 year ago

        So what does the f do?

        • jorge@sopuli.xyz
          link
          fedilink
          arrow-up
          5
          ·
          1 year ago

          It is a f-string

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

            Python is crazy

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

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

    • GBU_28@lemm.ee
      link
      fedilink
      English
      arrow-up
      5
      arrow-down
      1
      ·
      1 year ago

      What json

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: !programmer_humor@programming.dev

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.

  • 320 users / day
  • 4.38K users / week
  • 8.18K users / month
  • 17.9K users / 6 months
  • 120 local subscribers
  • 23.3K subscribers
  • 1.41K Posts
  • 51.6K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org