No offence

You are viewing a single thread.
View all comments View context
2 points

In my experience (Javascript and PHP, which both have plenty of footguns), these pitfalls can be avoided by using good practices.

Just because they are dynamically typed doesn’t mean you have to use dynamic typing. Don’t type switch your variables.

Just because you don’t have to use brackets in a certain scenario doesn’t mean you can’t. Use them as needed for clarity.

That kind of thing.

permalink
report
parent
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create 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.

Community stats

  • 6.9K

    Monthly active users

  • 1.5K

    Posts

  • 34K

    Comments