UmU
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Maven (famous)@lemmy.zip to Programmer Humor@programming.dev · 10 months ago

Detailed Error Messages

lemmy.zip

message-square
76
fedilink
  • cross-posted to:
  • [email protected]
1.03K

Detailed Error Messages

lemmy.zip

Maven (famous)@lemmy.zip to Programmer Humor@programming.dev · 10 months ago
message-square
76
fedilink
  • cross-posted to:
  • [email protected]
  • driving_crooner@lemmy.eco.br
    link
    fedilink
    arrow-up
    7
    ·
    10 months 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
      ·
      10 months 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
      8
      ·
      10 months ago

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

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

        Python also have curly bracers, om dictionaries.

        • Korne127@lemmy.world
          link
          fedilink
          arrow-up
          5
          ·
          10 months ago

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

    • alfenstein@beehaw.org
      link
      fedilink
      dansk
      arrow-up
      3
      ·
      10 months ago

      Looks like TypeScript to me

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

      No, but you can do the same in python

      • driving_crooner@lemmy.eco.br
        link
        fedilink
        arrow-up
        1
        ·
        10 months 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.77K users / day
  • 5.68K users / week
  • 9.75K users / month
  • 18.4K users / 6 months
  • 2 local subscribers
  • 23.8K subscribers
  • 1.33K Posts
  • 43.1K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.9
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org