DEV Community

Alexsandro Souza
Alexsandro Souza

Posted on â€ĸ Edited on

Is it true that good programmers do not use the "else" clause?

I am always posting provoking post on my Linkedin, and I have decided to replicate those here. Let's socialize!

I think that is not a fair statement, but in my opinion, programmers that were lucky enough to meet an inspiring mentor or work in a smart team would rarely use it.

If you use "else if", that is more serious, I would suggest you go learn about cyclomatic complexity.

Notice that this post is not about simple "ifs and elses", but about coding skills and self-improvements

Top comments (0)

Playwright CLI Flags Tutorial

5 Playwright CLI Flags That Will Transform Your Testing Workflow

  • 0:56 --last-failed: Zero in on just the tests that failed in your previous run
  • 2:34 --only-changed: Test only the spec files you've modified in git
  • 4:27 --repeat-each: Run tests multiple times to catch flaky behavior before it reaches production
  • 5:15 --forbid-only: Prevent accidental test.only commits from breaking your CI pipeline
  • 5:51 --ui --headed --workers 1: Debug visually with browser windows and sequential test execution

Learn how these powerful command-line options can save you time, strengthen your test suite, and streamline your Playwright testing experience. Click on any timestamp above to jump directly to that section in the tutorial!

Watch Full Video 📹ī¸

👋 Kindness is contagious

If you found this post useful, please drop a ❤ī¸ or leave a kind comment!

Okay