Semicolons are optional in JavaScript unless you are combining multiple statements on a single line, which is generally not something you should be doing anyway.

I avoid them whenever possible. It encourages people to write poorly formatted code. But then I’m a python dev so I tend to be opinionated when it comes to whitespace.

@folkrav@lemmy.world
link
fedilink
3
edit-2
1Y

Just slap a formatter on there and call it a day. Semicolon or not, IDGAF, let’s just stop with the formatting bikeshedding. There are more important things to think about. They don’t encourage anything if you don’t think about formatting.

Aa!
link
fedilink
11Y

This is one of the things I like most about Go. Formatting is already defined and handled by go fmt. Takes out all format arguments before they start.

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
  • 120 users / day
  • 257 users / week
  • 744 users / month
  • 3.72K users / 6 months
  • 1 subscriber
  • 1.48K Posts
  • 32.6K Comments
  • Modlog