3 ms·
GoogleGuilty = APICopyrightable && GoogleViolatedCopyright && !GoogleHasFairUse optimized (and corrected, because in your flow Google is always guilty since ev
by georgemcbay 15y ago
GoogleGuilty = APICopyrightable && GoogleViolatedCopyright && !GoogleHasFairUse
optimized (and corrected, because in your flow Google is always guilty since everything drops through to that anyway).
- freehunter 15y agoNot if Google Not Guilty is equal to an exit statement :)
- ricree 15y agoStrictly speaking, wouldn't it be GoogleGuilty = GoogleViolatedCopyright && !GoogleHasFairUse && ApiCopyrightable In the sense that false short-circuits anything to the right, and ApiCopyrightable is only a factor if Google is held to have violated copyright under the assumption that Apis can be copyrighted.
- scarmig 15y agoHmm, are those values synchronous, though? Maybe an event-based architecture is a better model, though I don't really understand how the law works.
- libria 15y agoOddly, I find your one-liner more readable than the parent's. Probably because I don't know when to follow the English grammar or the pseudocode grammar.
- pyrotechnick 15y agoPorted to CoffeeScript: GoogleGuilty = APICopyrightable and GoogleViolatedCopyright and not GoogleHasFairUse
- stcredzero 15y agoThat is very nicely readable!
- georgemcbay 15y agoThe CoffeeScript syntax is nicely readable, but IMO the C-like syntax is far more easily 'scannable'. Quickly scanning over the C-like syntax I can more easily notice the ! and the && than I can make out the 'not' and the 'and' while scanning the more natural-language-like CoffeeScript because of the clear separation between ! and && and the alphanumerics commonly used in variable names. IMO the 'and' and 'not' keywords kind of get lost in the noise of all the other characters. YMMV here. I've been programming in C-like languages for quite a long time so maybe that's rewired my brain in a way that doesn't hold for people who don't program in C-like languages.
- Peaker 15y agoTypically syntax highlighting will color the "and" and "not" differently so they stick out too.
- MatthewPhillips 15y agoMissing semicolons.
- georgemcbay 15y agoIt is written in Go. :)
- libria 15y agoThen you're missing a colon GoogleGuilty := ...
- georgemcbay 15y agoYeah, true, but only if GoogleGuilty's type was previously undefined (but this is getting way off topic).
- vibrunazo 15y agoI wish someone would always translate groklaw's cryptic articles to something understandable like that. :-)