17 ms·
The People's Code
- steanne 10y agoLooks like You Don’t Have Javascript Enabled Code.gov is built on the latest web technology using Javascript. To use Code.gov, please enable Javascript so we can share all of the wonderful open source projects the Federal Government has to offer.
- NoGravitas 10y agoI had to unblock third-party scripts to get anything other than an animated pixel-art gif of an American flag.
- kensai 10y ago"The Federal Source Code Policy is designed to support reuse and public access to custom-developed Federal source code. It requires new custom-developed source code developed specifically by or for the Federal Government to be made available for sharing and re-use across all Federal agencies. It also includes an Open Source Pilot Program that requires agencies to release at least 20% of new custom-developed Federal source code to the public." That's really nice, but I think the 20% is too little. It should be at least 50%. They could still keep a critical low percentage secret.
- random_rr 10y ago20% is a LOT! Consider the amount of work it takes to open-source things. It's a huge step forward.
- joshdotsmith 10y agoWhat do you think takes the most effort to make these projects open source? If this were the policy for all new projects, why would that be difficult?
- methodin 10y agoI can only imagine the nightmare attempting to explain to non-tech folks why it's good to give away the code they are writing.
- joshdotsmith 10y agoWe give away the laws we write. In fact, the government provides an awful lot of services. If the taxpayer paid for it, the taxpayer should certainly be able to own it. I've never personally found it difficult to explain that to non-technical people.
- leesalminen 10y agoI think even a 5 year old can understand "if I paid for something, it's mine".
- random_rr 10y agoThat's why I own a SR-71 Blackbird and my own naval destroyer... come on guys, grow up.
- random_rr 10y agoThere is a lot of internal resistance to open sourcing code. Lots of people believe that their code is their secret sauce - and why would you have highly paid consultants create code just so the next department can take it? There's also security concerns to take into account - which I know someone will say is a good thing, because of transparency and so forth. But just realize that it's not a trivial amount of work to clean up a code-base and display it to the public all of the time. And if the policy were open-source by default, the unspoken policy for project managers would be "automatically submitting a request to be closed source" It's not perfect, but I know that 20% is a lot, and I think anyone who's worked in the sector would agree.
- colejohnson66 10y agoBut isn't everything made by the government in the public domain?
- X86BSD 10y agoThe amount of work is kind of moot. If it's tax dollars funding its development don't you think it should all be open sourced?
- xbryanx 10y agoThe work to open source something is often extra work. So it would effectively increase the cost or, keeping costs fixed, reduce the impact of the software on it initial target...those who it was developed for. I also imagine that in many cases the effort to open source some project would be much greater than the pay off. There are many custom software solutions developed that are of almost no value outside of the small domain specific target audience.
- ben_jones 10y agoDoesn't 20% seem a bit pedantic? I feel like if you throw a requirement like that into a large bureaucracy only bull shit will come out. Like an "Open source web interface" where only the CSS is posted...
- desdiv 10y agoI agree that 20% is too little, considering that works by the federal government are supposed to be in automatic public domain[0]. [0] https://en.wikipedia.org/wiki/Copyright_status_of_work_by_the_U.S._government https://en.wikipedia.org/wiki/Copyright_status_of_work_by_th...
- autoreleasepool 10y agoYou make a great point. Can anyone explain why software is exempt from this?
- aarongolliver 10y agoThey are not exercising a copyright claim when they don't release things, they're just not releasing them. Public domain only helps you if you have access to the work.
- greglindahl 10y agoIn addition to the point already made that the government has no obligation to release anything, code written by contractors is generally copyright by the contractors.
- deleted 10y ago[deleted]
- brainfire 10y agoThe 20% number is part of the initial 3-year pilot program, not necessarily the ultimate goal. That's also the mandatory minimum, with agencies "strongly encouraged" to release as much as possible. See the policy [0], linked from the launch announcement [1]. [0] https://www.whitehouse.gov/sites/default/files/omb/memoranda/2016/m_16_21.pdf https://www.whitehouse.gov/sites/default/files/omb/memoranda... [1] https://www.whitehouse.gov/blog/2016/08/08/peoples-code https://www.whitehouse.gov/blog/2016/08/08/peoples-code
- thinkcomp 10y agoHow about open PACER?
- greglindahl 10y agoThat's a Judicial Branch screwup, not Executive Branch. Check out the RECAP project. So far, that's the best we've got.
- neom 10y agoThis is awesome! At work we're trying to help with this at the municiapl level, it's hard so it's really great to see it coming from the Fed. Shout out to Becky Sweger[1] from 18F who has been instrumental in helping move things forward, talking about open data and open code. [1] https://twitter.com/bendystraw https://twitter.com/bendystraw
- former_govt 10y agoI admire the work that 18F is doing, and live in the DC area, even contracted for the government early in my career -- but I can never go back. I just fundamentally disagree with the security clearance apparatus is in place and never want to subject myself to that again. Especially when purely private companies pay more and don't care what you do in your personal time. Working for the government felt like being a child again.
- npiazza83 10y agoThank you! I didn't have the words to express it but that is it precisely. It is infantalizing in a way that makes ball pits and arcades in startup culture seem tame
- deleted 10y ago[deleted]
- bretthoerner 10y agoWhat was so bad about the security clearance aspect?
- greglindahl 10y agoA few people are a little disgruntled that the government gave all of the information in our security clearance applications/re-ups to China. That's my beef, I'm sure other folks have other things to say.
- not_ed_snow 10y agoThe explicit and everpresent awareness that you are owned by your employer in your off hours, for a limited sub-selection of possible activities. In other words, you are not your productivity, you are required to live their moral code in your off hours.
- ohyoutravel 10y agoThat is...most jobs. Unless I'm not understanding your meaning. Many jobs will fire you for, say, getting a DUI or getting arrested for drug possession or something. And many employers do drug testing. But realistically, a "limited sub-selection of possible activities" is just about everything everyone else can do, except maybe go to Cuba or smoke pot, the latter of which will get one fired at many non-government places.
- qwertyuiop924 10y agoMost of the code looks fairly dull and single-purpose. Except NASA's code, as you may expect. Trick and OpenMCT both look at least interesting, and OpenMCT in particular could be used as the basis for many an interesting web-based project.
- tzakrajs 10y agoOpenMCT instantly caught my attention and seems like a solid foundation. Cool stuff, but I am not surprised since it is NASA/JPL.
- uabstraction 10y agoI've already seen OpenMCT integrated with Kerbal Space Program. It looks like a great platform for real-time sensor data visualization. I'd love to hook it into a drone and violate some FAA regulations :)
- joshdotsmith 10y agoI really like the work of folks at 18F, USDS, CFPB, et al. Bearing in mind that I'm ecstatic to see this collection of projects and someone clearly put a lot of time and effort into this already, I do have couple points of hopefully constructive feedback here: - Please list all of your repositories and feature ones that you think deserve special recognition. Seeing all your repos is a 4-step process otherwise: click on the project, click on the link, click on the acknowledgement that I clicked a link, click on the organization name on GitHub. [1] - Some information on contribution policies, pulling in your README.md, etc would be helpful on this site. [2] - When I click on the link to go to your repo, I know I'm clicking a link that leaves your site. You even say so. "But you probably knew that already." Don't hijack it, please. [3] - The activity feed doesn't provide much value in its current form. Most of these GitHub events are completely without context. [4] EDIT: I've since opened the following issues on https://github.com/presidential-innovation-fellows/code-gov-web/issues https://github.com/presidential-innovation-fellows/code-gov-.... Anyone who has feedback, definitely let them know (kindly!). [1] https://github.com/presidential-innovation-fellows/code-gov-web/issues/125 https://github.com/presidential-innovation-fellows/code-gov-... [2] https://github.com/presidential-innovation-fellows/code-gov-web/issues/124 https://github.com/presidential-innovation-fellows/code-gov-... [3] https://github.com/presidential-innovation-fellows/code-gov-web/issues/123 https://github.com/presidential-innovation-fellows/code-gov-... [4] https://github.com/presidential-innovation-fellows/code-gov-web/issues/122 https://github.com/presidential-innovation-fellows/code-gov-...
- myowncrapulence 10y agoI really hope this sort of promotion of innovating in the tech sector remains growing.. with the current political climate, I doubt many sectors (besides military/finance) will see governmental spending growth in coming years.
- stomato 10y agoIf you're a US citizen, vote for someone that will keep it going. Some have promised to undo a lot that the current administration has done, and this might be part of that. I'm not aware of any free code from Trump so far, btw. Also, when his campaign has tried to code, they fail: http://qz.com/762424/trumps-campaign-donation-website-used-open-source-code-sloppily-risking-ridicule-and-worse/ http://qz.com/762424/trumps-campaign-donation-website-used-o... "A programmer named Shu Uesugi, an engineer at a California company called EdSurge, discovered a major flaw with the way Trump’s website was using jQuery. Instead of downloading the open-source code from GitHub and running it off a server they controlled, the developers who built Trump’s website simply ran the code off GitHub directly, Uesugi found. While the code’s location might seem like a minor detail, running it off GitHub meant that the person who controlled the code on GitHub could change the code at his whim, and those changes would take hold on Trump’s website. Since GitHub is for open-source projects, it also meant that any user could submit a request to modify the code and impact Trump’s website, if the change was approved by the plug-in’s author, a developer in Lisbon named Igor Escobar." Then Igor tweeted about how he could have modified it: https://twitter.com/igorescobar/status/766367306662440960?ref_src=twsrc%5Etfw https://twitter.com/igorescobar/status/766367306662440960?re...
- dnprock 10y agoI suggest having a search feature across all repositories.
- matthjensen 10y agoI wonder how they will determine which open source projects are included at code.gov. For instance, I contribute to a few projects that are used within government for determining the economic impacts of fiscal policy, and the code is in the public domain. I'd love for them to be included at code.gov, but I'm not sure whether they meet the criteria.
- brainfire 10y agoThe general guidelines are in the policy [0], linked from the launch announcement [1], but each agency's CIO is responsible for the particulars at their org. If it's not a new project post-August it won't contribute to the 20% so it might not be reviewed for release without someone suggesting it specifically, I would guess. [0] https://www.whitehouse.gov/sites/default/files/omb/memoranda/2016/m_16_21.pdf https://www.whitehouse.gov/sites/default/files/omb/memoranda... [1] https://www.whitehouse.gov/blog/2016/08/08/peoples-code https://www.whitehouse.gov/blog/2016/08/08/peoples-code
- initram 10y agoThey already have some Swift projects [0], which I think is kind of cool. Not sure I would want to use code named "Bro" or "Conman" though. lol. [0] https://code.gov/#/explore-code/agencies/DOL https://code.gov/#/explore-code/agencies/DOL [1] https://code.gov/#/explore-code/agencies/DOE https://code.gov/#/explore-code/agencies/DOE
- qwertyuiop924 10y agoBro is actually already a widely used and incredibly popular piece of software. However, I don't think the main branch is developed by the US government, so this may be the DOE trying to dodge the law.
- tommynicholas 10y agoIf there's one thing that deserves a federal massive budget, it's this. If laws and regulations can be understood easily by software, we would remove so many problems the government creates. Complexity would be easier to manage, but also transparency would inherently breed simplicity.
- zanny 10y agoJust for an example, HNR Block and other companies built on doing your taxes for you lobby the government to prevent simplification of the tax code, because they profit off its complexity. The same applies to almost all law. The complexity does not exist without a reason - there is almost always some entity actively funding the continued obfuscation of law for profit. So don't expect government to ever actively get simpler, because that would only benefit the outsiders rather than incumbents in the industries such laws affect, and those outsiders never have the capital to compete in lobbying and bribery.
- tommynicholas 10y agoExactly - there are tax code companies you've probably never even heard of like Avalara entering the Unicorn range. The kicker: all they do is calculate sales tax! Actually a cool company, but one that should never exist.
- trendia 10y agoThe bigger influence on the tax code is the litany of deductions, which are lobbied for by the wealthy. The value of a $100,000 deduction is worth $30,000 to a wealthy person, but probably around $1 for H&R block. edit: fixed
- maxerickson 10y agoIt's worth more like $30,000. You only save the tax on the deduction, not the whole thing. (and some deductions will of course be worth less than the tax; a $100,000 donation to the Red Cross costs $100,000 and doesn't have any financial return, so the $30,000 tax benefit there costs $70,000)
- liveoneggs 10y agois this page 508 compliant? I look to .gov to show some examples of accessibility
- masterleep 10y agoHorrible name - the Federal Government of the United States is not "the People".
- jmcgough 10y agoI think the idea is that, by making it OSS, it's software that now belongs to "the people".
- ryanolsonx 10y agoOnly 20% of it by the looks of things ;)
- deleted 10y ago[deleted]
- hackuser 10y ago> the Federal Government of the United States is not "the People" I disagree. It is indeed "government of the people, by the people, for the people". You may not like some particular people, and neither do I: Some are dumb, corrupt, or simply disagree with me. But if that doesn't represent the people of the U.S., I don't know what else could. If they were non-corrupt, all smart and highly capable, and all agreed with me - that would be some other country (in a fairy tale). It's not government of, by and for me. I want everyone else to have a vote too, even if I disagree with them.
- mcv 10y ago> It is indeed "government of the people, by the people, for the people". In theory at least, and it certainly should be. Often it looks more like a government by the millionaires, for the corporations. But there's increasing attention for turning that around, and this project looks like a small part of that.
- deleted 10y ago[deleted]
- weka 10y agoTook a look at some of the code. I see one for Gov of Commerce: The Commerce.gov API is under active, but not public, development. As such, API code is not currently made available publically. This Github repository will be used to collect and respond to feedback regarding the API and engage with developers interested in using the API. --- I don't believe that's the correct usage of GitHub. What's the point if you're not going to showcase the code?
- greglindahl 10y agoThey said what they think the point is in what you quoted: "to collect and respond to feedback..." I can see why you might not like it, or not agree with it, but it's not like they didn't say it!
- toomuchtodo 10y agoMy feedback would be a FOIA request for commerce.gov's API code, and a PR to add it to their repo.
- dangrossman 10y agoYou can't make an FOIA request for code. You can only make requests for agency records, and in the definitions section of the bill, computer code is explicitly listed as something that isn't an agency record. "computer software, including source code, object code, and listings of source and object codes, regardless of medium are not agency records"
- NoGravitas 10y agoThat sounds like something that you might be able to get your congressperson interested in changing, if you pitched it the right way.
- toomuchtodo 10y agoWorks created by the federal government are in the public domain, per section 105 of the copyright code. So you'd be right I can't use a FOIA request to obtain the code, but if obtained through other methods, I believe I'm in the clear for hosting it on Github.
- jknoepfler 10y agoThis is a great idea. I feel like the big picture isn't open source code for government, but open source APIs for interacting with the government. In the medium-term future, I think we should push for a system where all government documents that ought to be a matter of public record are managed in a publicly readable versioned source repository like, like a federal git server. Other things that I'd like to see in publicly visible git repositories: - federal laws and regulations (particularly regulations, standards, etc.). - procedures (rules for federal processes) - all documents for making requests of the federal government, with mechanisms for getting those requests to the right place.
- JustSomeNobody 10y agoAbsolutely![0] [0] I know this doesn't contribute to the conversation and is frowned upon, but I had to exclaim when I read this.
- mars4rp 10y agoWhere is the IRS code?
- officialchicken 10y agoUnder the Department of Commerce - unsurprisingly - there is nothing from IRS. A bit more surprising and entirely missing from the list (no source code): * Department of Education * Department of Health and Human Services * Department of Housing * Department of Interior * State Department * Department of Transportation And not really expecting anything from: * Department of Defense * Department of Homeland Security
- xenophonf 10y agoDHHS: https://github.com/HHS https://github.com/HHS There are more if you know where to look. Some of the GitHub organizations are in their infancy, like NIAID's: https://github.com/niaid https://github.com/niaid Others are only semi-public; these generally consist forks of software they use or private repos used for external collaboration. I'm working on getting some of our stuff open-sourced. When it's written by contractors, the intellectual property rules can get complicated. Convincing a contractor to publish code their consultants wrote for a government project, no matter how minor, can be a tricky bit of advocacy. Sometimes they have really skewed ideas surrounding IP that must be overcome before this can happen. (Best case, our code will likely end up hosted by Internet2 or a similar foundation.)
- CiPHPerCoder 10y agohttps://github.com/samilliken/openDCIM/search?utf8=%E2%9C%93&q=unserialize https://github.com/samilliken/openDCIM/search?utf8=%E2%9C%93... https://github.com/USEPA/E-Enterprise-Portal/search?utf8=%E2%9C%93&q=unserialize https://github.com/USEPA/E-Enterprise-Portal/search?utf8=%E2... Looks like the US Government is oblivious to the risk of PHP Object Injection. https://paragonie.com/blog/2016/04/securely-implementing-de-serialization-in-php https://paragonie.com/blog/2016/04/securely-implementing-de-... It looks like they're publishing code that, in particular, is vulnerable to CVE-2015-2171. https://github.com/samilliken/openDCIM/blob/d3e137294179e392321265567b6ad32ffe738c5f/Slim/Middleware/SessionCookie.php#L127 https://github.com/samilliken/openDCIM/blob/d3e137294179e392...
- Alupis 10y agoYou should send in a pull request, or file a bug report in the repo.
- CiPHPerCoder 10y agoI'm not on their payroll, and I'd already fixed the CVE upstream over a year ago, so no.
- Alupis 10y agoYou took the time to go search through those repos, and then took the time to come here and point out your findings. You could have easily just copy pasted what you wrote here into an Issue on those repos. It would have helped out your government, made these projects a tad bit better, and taught a few developers something they'll remember in the future when they write more software for the government. It's part of the "spirit" if you will. Let's support these efforts - they're long overdue and difficult enough to get done for those few trying.
- joepie91_ 10y agoReporting issues to a vendor takes a hell of a lot of effort and time compared to idly posting them in a comment thread. This is like those remarks along the lines of "it only takes 5 minutes to submit a patch to the documentation". No, it doesn't - it takes 5 minutes to write it and create a PR, and usually two hours to defend it from the maintainer's criticisms.
- sandGorgon 10y agoThe one project that i would love to see opensource is the FBI Sentinel project. A lot of countries have broken infrastructure for law enforcement. Just like USAID, it would probably be more efficient to give software that can be adopted. The sentinel project captures millions of man hours of wasted... and ultimately successful product development - all focused towards law enforcement collaboration. It would be good to have that.
- rayiner 10y agoInteresting that someone approved the communist reference (or that people didn't perceive that as a communist reference). It's not the 1980s anymore I guess.
- pvg 10y agoDo you mean 'people's'? That would make 'the people's house' as a way to describe US executive mansions and legislature buildings communist references as well.
- amluto 10y agoIn case any code.gov website people are looking: there's an unfortunate bug: when the site is first loading on a slow network, you can see all the agency names and click them, but they all show text like "No repositories found." This made me think that this was a brand-new project that hadn't done anything yet. Also, the little department logo images shouldn't have alt-text. That alt text of the department name overlays the actual text of the department name and just makes it even less accessible when the image isn't there. (I suppose the lesson for web development in general is to test on a slow connection.)
- manish7 10y agoThis is awesome initiate by US Gov.
- idlewords 10y agoWhy does this simple landing page have to be over 600K and require Javascript?
- breakingcups 10y agoThis is a step in the right direction, a thank you to the people who helped make this possible.
- OliverJones 10y agoHow about open source code for some makes and models of voting machine? The US Veterans' Administration health records software system is in the public domain. https://en.wikipedia.org/wiki/VistA#Licensing_and_dissemination https://en.wikipedia.org/wiki/VistA#Licensing_and_disseminat... But it's not listed here. (It's also kind of complex. "wget; tar x; ./configure ; make" probably won't get you a running instance. Still.
- mi100hael 10y agoVoting machines are products produced by private firms. Getting them to publish the source code is about as likely as getting Apple to publish the source for iOS.
- trendia 10y agoActually, with monopsony it's rather simple: "If you don't publish the code, then we will have to use paper ballots."
- schmidty 10y agoNo effort towards innovation would then go into that sector. Ever again.
- OliverJones 10y agoHmm. No effort, ever again, in open source products? I wonder what RMS, Linus Torvalds, and the BSD folks have to say about that? Seriously, the open source movement has generated some pretty good businesses. Maybe the case can be made that electoral equipment is an exception to that. But asserting the proposition doesn't prove it.
- GenerocUsername 10y agoHow much Innovation is there? Its a voting booth, not an iphone. It should be a solid device with open-source code deep enough to validate counting.
- ayh 10y agoGreat so we all have access to useless software code.
- pdkl95 10y agoWhy the subsidy to Google? Sending tracking data to Google isn't appropriate for a government site. <script> /* i='GTM-M9L9Q5' */ /* ... */ src='https://www.googletagmanager.com/gtm.js?id='+i /* ... */ </script> <!-- ... --> <noscript> <iframe src="https://www.googletagmanager.com/ns.html ?id=GTM-M9L9Q5>m_auth=GTM-M9L9Q5" height="0" width="0" style="display:none;visibility:hidden"> </iframe> </noscript> Also, requiring Javascript in a single page application is a terrible design for this kind of site. Almost all of this can be static pages or traditional web frameworks. Requiring Javascript made the download much larger than necessary, slowed down the page load time a lot, and forced the page to reflow multiple times as the data arrived. A wide variety of web frameworks could have rendered and cached static pages instead of massively over-engineering the site as an "app".
- dnissley 10y agoLooks like the US government makes widescale use of Google analytics, so it's hardly inappropriate: https://analytics.usa.gov/ https://analytics.usa.gov/
- pdkl95 10y agoPointing out more instances of a problem doesn't make the problem "hardly inappropriate"; it indicates the problem is more widespread.
- fmorel 10y agoFrom https://analytics.usa.gov/#explanation https://analytics.usa.gov/#explanation it sounds like it just happens to use Google Analytics at the moment, but could switch in the future.
- 2bitencryption 10y agoI hear they use Ford vehicles and Boeing airplanes as well. Highly inappropriate for the US Government to use products from some of the US's biggest companies! /s
- yellowapple 10y agoApparently Github supports displaying STL models: https://github.com/nasa/NASA-3D-Resources/blob/master/3D%20Models/Cassini%20(A)/cassini.stl https://github.com/nasa/NASA-3D-Resources/blob/master/3D%20M...
- _audakel 10y agoI was kinda hoping to see some projects from the NSA. Noooope.
- skiplist1 10y agoJust an honest question. Can I obtain some estimation of the capabilities of CS people working for the government by just reading all these code. Will I find here a glimpse of code beautifully designed and tailored to solve some really deep problem that require real intelligence?, can I use these code to learn how to code a big project?