And a second in julia

It’s about writing the code, not execution time. Otherwise Assembly wouldn’t take 7 years…

Some languages are just worse to work with. like JavaScript. Console.log is like sure I’ll log your object but I’ll tell you what it is now, not what it was when you logged it.

Skull giver
link
fedilink
8
edit-2
3M

[This comment has been deleted by an automated system]

Ephera
link
fedilink
24M

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

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
link
fedilink
1
edit-2
3M

deleted by creator

I can see it going both ways. Talking about execution times, this would be an exaggeration, but then, these memes always are.

Create a post

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.
  • 1 user online
  • 34 users / day
  • 155 users / week
  • 429 users / month
  • 2.41K users / 6 months
  • 1 subscriber
  • 1.61K Posts
  • 35.6K Comments
  • Modlog