4 ms·
I think that's fake code in the images ;)
by tw1010 7y ago
I think that's fake code in the images ;)
- chrismeller 7y agoWell it’s relevant to the story, so if it’s fake they put a surprising amount of effort into it...
- arethuza 7y agoI was trying to work out what language it is - also switching on strings like that doesn't seem like a great idea.
- denzil_correa 7y agoThe project is hosted on Github [0], I'm not sure if the entire source code is available though. [0] https://github.com/codeforamerica/autoclearance https://github.com/codeforamerica/autoclearance
- kevin_b_er 7y agoI would hope the entire source is available. We should always be wary of secret algorithmic decisions in court cases. The algorithm should be openly available for the public to see in the same way that the law is to be openly available.
- RiverBanshee 7y agoHi, engineer on the project here! That's an old version of the code that turned out to be too slow for the volume of records we need to process. The current version, which you see in the images from the article, is written in Golang.
- sauerbraten 7y agoThe code in the screenshot is valid Go (switching on strings, no parentheses around the if condition, incrementing a map value using ++) and could even be the output of go fmt (with the { on the same line as the if). The app itself appears to be written in Ruby (the github link is posted elsewhere in the comments), and looking at the image included in the article further down I assume the code is from a Go app that takes the Ruby app's logs and generates some statistics.
- lopmotr 7y agoYes, that was painful to see. The strings are even capitalized in a particular way so it doesn't look like it had already been processed to normalize the formatting.
- jonas21 7y agoIf you go to 1:51 in the video, you can see the same code on what appears to be an engineer's screen. It seems like it would be a lot of effort (and questionable journalism) to fake that.