News for hackers. Stuff that matters.
Re:“On Accident” or “By Accident”? by gilgoomesh on Thursday September 24, 2015 @06:32AM (#10270837)
The computer programmer in me says both are valid:

"on accident" is a pre-prepared behavior that will be employed when an accident occurs in the future.

"by accident" is metadata accompanying an event, reporting the author or agent that created the event.

Re:“On Accident” or “By Accident”? by efaref on Thursday September 24, 2015 @06:39AM (#10270860)
It sounds like old-style BASIC exception handling.

    ON ACCIDENT GOTO EMERGENCYROOM
Re:“On Accident” or “By Accident”? by TeMPOraL on Thursday September 24, 2015 @09:11AM (#10271362)
Or modern JavaScript event handling. Button.onAccident(function() { ... });
Re:“On Accident” or “By Accident”? by unfamiliar on Thursday September 24, 2015 @09:42AM (#10271497)
Except that's not how it is used, it is used in place of "by accident."

"I knocked over the glass on accident."

Re:“On Accident” or “By Accident”? by twcooper on Thursday September 24, 2015 @08:56AM (#10271297)
In the first case, it would be more clear to say "upon accident."