86thumbs
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Jeena@piefed.jeena.net to Programmer Humor@lemmy.mlEnglish · 1 year ago

1 hour in Java

piefed.jeena.net

message-square
102
fedilink
711

1 hour in Java

piefed.jeena.net

Jeena@piefed.jeena.net to Programmer Humor@lemmy.mlEnglish · 1 year ago
message-square
102
fedilink
  • Skull giver@popplesburger.hilciferous.nl
    link
    fedilink
    arrow-up
    9
    ·
    edit-2
    11 months ago

    deleted by creator

    • jjjalljs@ttrpg.network
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      I’ve never had a complaint about logging stuff in python. It generally does what I expect.

      “Create a copy of your object and print that” is what I ended up doing, but I don’t think most people would say that’s intuitive. I expect if i print something at a particular time, I get what it is at that point in time.

      • Skull giver@popplesburger.hilciferous.nl
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        11 months ago

        deleted by creator

    • Ephera@lemmy.ml
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      I’d just like to highlight what you mention below: Logging it as an object allows you to inspect it in the browser console, presumably with some JSON tree representation, rather than just a dumb string.

      It’s described in the “Outputting a single object” example here: https://developer.mozilla.org/en-US/docs/Web/API/console#examples

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

remote_follow_modal_title

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: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
community_visibility: public
globe

public_blurb

  • 295 users / day
  • 435 users / week
  • 2.63K users / month
  • 9.02K users / 6 months
  • number_of_local_subscribers
  • 37.5K subscribers
  • 1.79K Posts
  • 38.2K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • UI: unknown version
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org