Campfyre
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Maven (famous)@lemmy.zip to Programmer Humor@programming.dev · 1 year ago

Detailed Error Messages

lemmy.zip

message-square
77
fedilink
  • cross-posted to:
  • [email protected]
1.01K

Detailed Error Messages

lemmy.zip

Maven (famous)@lemmy.zip to Programmer Humor@programming.dev · 1 year ago
message-square
77
fedilink
  • cross-posted to:
  • [email protected]
  • driving_crooner@lemmy.eco.br
    link
    fedilink
    arrow-up
    7
    arrow-down
    3
    ·
    1 year ago

    Is that python? If it’s, thank you, finally learned how to format text in a way that can be read on the script and in the execution.

    • zaphod@sopuli.xyz
      link
      fedilink
      arrow-up
      9
      ·
      1 year ago

      As the other comments have already said it’s not Python. Not sure what you mean with text formatting, do you mean that it’s multiple strings that are concatenated using +? You don’t need the + in Python, you can do

      some_function(
          "part one of really long string"
          " part two of really long string"
      )
      

      Which is identical to

      some_function("part one of really long string part two of really long string")
      
    • Korne127@lemmy.world
      link
      fedilink
      arrow-up
      9
      ·
      1 year ago

      It isn’t, there are curly braces. It’s TypeScript.

      • driving_crooner@lemmy.eco.br
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        Python also have curly bracers, om dictionaries.

        • Korne127@lemmy.world
          link
          fedilink
          arrow-up
          5
          ·
          1 year ago

          Yes, but not for indentation (which is obviously what I meant)

    • alfenstein@beehaw.org
      link
      fedilink
      dansk
      arrow-up
      3
      ·
      1 year ago

      Looks like TypeScript to me

    • ReveredOxygen@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      No, but you can do the same in python

      • driving_crooner@lemmy.eco.br
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        I was thinking on trying it. Need to see how it works with f formatting.

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.

  • 1.04K users / day
  • 4.55K users / week
  • 7.65K users / month
  • 19.1K users / 6 months
  • 1 local subscriber
  • 25.6K subscribers
  • 1.63K Posts
  • 58.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