API_KEY = os.environ.get("YOUTUBE_API_KEY")
CHANNEL_ID = os.environ.get("YOUTUBE_CHANNEL_ID")
if not API_KEY or not CHANNEL_ID:
print("Missing YOUTUBE_API_KEY or YOUTUBE_CHANNEL_ID.")
exit(1)
Presenting the user with "Missing X OR Y" when there's no reason that OR has to be there massively frustrates the user for the near zero benefit of having one fewer if statement. if not API_KEY:
print("Missing YOUTUBE_API_KEY.")
exit(1)
if not CHANNEL_ID:
print("Missing YOUTUBE_CHANNEL_ID.")
exit(1)
Way better user experience, 0.00001% slower dev time. {
"reasoning": "`cfg` can be nil on line 42; dereferenced without check on line 47",
"finding": "Possible nil‑pointer dereference",
"confidence": 0.81,
"confidence_in_confidence_rating": 0.54,
"confidence_in_confidence_rating_in_confidence_rating": 0.12,
"confidence_in_confidence_rating_in_confidence_rating_in_confidence_rating": 0.98,
// Etc...
}
Deleted Comment
Projecting your obvious superiority complex onto others while at the same time accusing others of doing so is, quite frankly, hilarious.
Next time, just introspect instead of digging this idiotic hole further. It’s not really that hard to ask yourself “am I the asshole” and it’s quite obvious you’ve never done it in your life.
Either way, I’m done with whatever you want to call this obnoxious rambling of yours.
If this struck such a nerve with you, then you may want to take a step back and re-evaluate why you're so deeply triggered by people advocating for introspection instead of deflection.
It's pretty clear from your comment you won't, but that's a separate issue.
If it happens again and again, in different circles with different people, like GP indicates happens, then maybe, just maybe it's not everyone else that's the problem.