VA-11 Hall-A Bar
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Maven (famous) to Programmer Humor@programming.dev • 10 months ago

Detailed Error Messages

lemmy.zip

message-square
77
  • cross-posted to:
  • programmerhumor@lemmy.ml
1.03K

Detailed Error Messages

lemmy.zip

Maven (famous) to Programmer Humor@programming.dev • 10 months ago
message-square
77
  • cross-posted to:
  • programmerhumor@lemmy.ml
  • @driving_crooner@lemmy.eco.br
    link
    fedilink
    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.

    • @Korne127@lemmy.world
      link
      fedilink
      9•10 months ago

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

      • @driving_crooner@lemmy.eco.br
        link
        fedilink
        1•10 months ago

        Python also have curly bracers, om dictionaries.

        • @Korne127@lemmy.world
          link
          fedilink
          5•10 months ago

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

    • @zaphod@sopuli.xyz
      link
      fedilink
      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")
      
    • @alfenstein@beehaw.org
      link
      fedilink
      dansk
      3•10 months ago

      Looks like TypeScript to me

    • @ReveredOxygen@sh.itjust.works
      cake
      link
      fedilink
      English
      2•10 months ago

      No, but you can do the same in python

      • @driving_crooner@lemmy.eco.br
        link
        fedilink
        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: !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
  • 1.11K users / day
  • 5.25K users / week
  • 9.6K users / month
  • 17.9K users / 6 months
  • 24.1K subscribers
  • 1.5K Posts
  • 52.3K Comments
  • Modlog
  • mods:
  • Feyter
  • adr1an
  • @BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne
  • BE: 0.19.1
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org