Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on How not to write shitty code: Intentional Conditions.
so the code would become
if(!record.isBuiltIn() || !user.canChange(record) || !record.equals(oldRecord)){ // can't save / or no need too }
and if no one can change a builtin, then a user certainly can't change it.
so it becomes:
if( !user.canChange(record || !record.equals(oldRecord))){ // can't save / or no need too }
There are no comments on this comment yet.
so the code would become
if(!record.isBuiltIn() || !user.canChange(record) || !record.equals(oldRecord)){ // can't save / or no need too }
and if no one can change a builtin, then a user certainly can't change it.
so it becomes:
if( !user.canChange(record || !record.equals(oldRecord))){ // can't save / or no need too }