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

Detailed Error Messages

lemmy.zip

message-square
76
link
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
1.02K

Detailed Error Messages

lemmy.zip

Maven (famous)@lemmy.zip to Programmer Humor@programming.dev · 1 年前
message-square
76
link
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
  • driving_crooner@lemmy.eco.br
    link
    fedilink
    arrow-up
    7
    arrow-down
    3
    ·
    1 年前

    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 年前

      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
      ·
      1 年前

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

      • driving_crooner@lemmy.eco.br
        link
        fedilink
        arrow-up
        1
        ·
        1 年前

        Python also have curly bracers, om dictionaries.

        • Korne127@lemmy.world
          link
          fedilink
          arrow-up
          5
          ·
          1 年前

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

    • alfenstein@beehaw.org
      link
      fedilink
      dansk
      arrow-up
      3
      ·
      1 年前

      Looks like TypeScript to me

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

      No, but you can do the same in python

      • driving_crooner@lemmy.eco.br
        link
        fedilink
        arrow-up
        1
        ·
        1 年前

        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: !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.

  • 2.23K users / day
  • 5.69K users / week
  • 9.15K users / month
  • 20.3K users / 6 months
  • 14 local subscribers
  • 25.8K subscribers
  • 1.54K Posts
  • 51.1K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • UI: unknown version
  • BE: 0.19.12
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org