569 points · by rmason · 10y ago · 192 comments
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-.... Anyone who has feedback, definitely let them know (kindly!).
[1] https://github.com/presidential-innovation-fellows/code-gov-...
[2] https://github.com/presidential-innovation-fellows/code-gov-...
[3] https://github.com/presidential-innovation-fellows/code-gov-...
[4] https://github.com/presidential-innovation-fellows/code-gov-...
> We fought the law and the law won unfortunately. We're hoping to get more leeway on this in the near future from the legal team. Stay tuned!
Lawyers. The answer is always lawyers.
The law is just software for people.
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-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?re...
That's how it works for any open source project you use, regardless of where it's been hosted. Unless you review the entire codebase (as well as all changes made in new releases), you're trusting the maintainers' judgement.
Working for the government felt like being a child again.
The blackmail and sabotage argument, as near as I can tell, is a farce because our enemies and "friends" are engaged in massive corporate espionage. If it were a real concern to them than they would use thier powers to require the same level of scrutiny on the private sector.
In addition to that they say be truthful so you don't have anything to hide to prevent possible blackmail by foreign powers, but in reality it's the truthful ones who don't make it through the process.
I've come to the conclusion that it's really just about having an excuse deny employment to "people not like us."
Guess it was significantly less exaggerated that I thought.
I think there's a lot of people that would like the associated intrigue that would come with this, it may be a cheaper way of hiring good developers that have a bit of a vanity streak.
In other words, you are not your productivity, you are required to live their moral code in your off hours.
And then on top of that, even with all the screening they do, they still stop the Snowdens from infiltrating, still can't stop foreign intelligence, still can't get a sysadmin worth their salt to keep our future President's clandestine email server safe from the public's prying eyes!
The US Veterans' Administration health records software system is in the public domain. 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.
"If you don't publish the code, then we will have to use paper ballots."
A voting system must be able to be checked by any citizen at any moment.
Most of the citizen can't:
- understand a complex code.
- ensure the machine is running this code, easily, conveniently or quickly.
- ensure the machine is not, or will not be hacked, by software or hardware mean.
- ensure the program does calculate the votes correctly, with no bug.
- do any of this in an autonomous and spontaneous way required to make a check healthy.
Its also not like every citizen today can or understand all of the vote counting procedures with paper ballots, even when just constrained to their ballot.
I just think that you can't be satisfy with it. Open source voting machine are still an abomination for the democratic process.
The point is that there is a large amount of people that do. They check. Not every citizen needs to check, but it is harder for there to be an error or to hoodwink someone if there are more eyes on the code. Essentially why opensource cryptography is good too.
Essentially, it can easily be audited.
You can delegate advanced science, you should not delegate democracy, because it's the root of all the rest.
tl;dr lets develop public-domain voting systems so we can audit them.
This was programmed by humans?
http://code.osehra.org/gitweb/?p=VistA-M.git;a=blob_plain;f=...
http://code.osehra.org/gitweb/?p=VistA-M.git;a=tree;f=Packag...
Was released after obfuscating?
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-...
It looks like they're publishing code that, in particular, is vulnerable to CVE-2015-2171.
https://github.com/samilliken/openDCIM/blob/d3e137294179e392...
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.
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.
[0] I know this doesn't contribute to the conversation and is frowned upon, but I had to exclaim when I read this.
<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".> Also, requiring Javascript in a single page application is a terrible design for this kind of site.
Good luck making a single page application without Javascript! It is all in 25 requests and 668KB, not the lightest site, but that's actually less data than the homepage of Google is today. It's also properly setting expires headers so future page loads are very quick.
> Good luck making a single page application without Javascript
The bad design decision was making it a single page application in the first place. This should be a static site, or very lightweight (and easily cached) framework.
> 25 requests and 668KB
That's an obscene amount of bloat. This should be 3-5 requests not counting images, and 668kB is an order of magnitude too big.
> less data than the homepage of Google is today
Comparing against another massively over-engineered, bloated web page isn't particularly useful.
> expires headers
That's great, but it doesn't affect the initial download size or the memory/CPU usage in the user agent.
How is it a subsidy? They are getting the analytical data they want and are not having to pay anything for it. They could spend tons of time and money to build an analytics system, but that sounds like a waste of tax dollars. You'll also notice that their code is hosted on GitHub, is that a subsidy too?
/s
(Disclosure: I work on analytics.usa.gov.)
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.
[0] https://en.wikipedia.org/wiki/Copyright_status_of_work_by_th...
See the policy [0], linked from the launch announcement [1].
[0] https://www.whitehouse.gov/sites/default/files/omb/memoranda...
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.
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.
The companies hired would need to be new companies to contacting, with higher costs. Don't forget, government contracts are a lowest bidder war. Going full open source immediately might expose code that built using proprietary technology from a different division of a company. Therefore open source from scratch will have a high startup cost.
The existing projects can be small, open source, but more importantly these projects begin to build a foundation others can build on. The library of code created to support the framework of these projects will eventually be used as the basis for larger projects.
Wrapping back to the 80% this allows the existing, proprietary code reuse. While new, it's useless without its is proprietary components. This code, if released with proprietary components (and that's a big if since the binary would then be openly distributed) may not qualify as open source. One step further, public free binaries can be reverse engineered (the legality of which isn't something I'm well versed in). Which may not be in a companies current best long-term interest.
Tldr; The largest effort to being 100% open source is the library of code built on must also be open source or commonly distributed. Starting at 0 the current goal is 20%.
Provide costs don't rise too much expect 30% within 2 to 3 years (I'm being optimistic) or the next major government project timeline.
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?
I can see why you might not like it, or not agree with it, but it's not like they didn't say it!
"computer software, including source code, object code, and listings of source and object codes, regardless of medium are not agency records"
Otherwise yeah, I'd say they should host their own damn issue tracker.
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.
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.
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
(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)
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.)
[0] https://www.whitehouse.gov/sites/default/files/omb/memoranda...
[0] https://code.gov/#/explore-code/agencies/DOL [1] https://code.gov/#/explore-code/agencies/DOE
Check out the RECAP project. So far, that's the best we've got.
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
There are more if you know where to look. Some of the GitHub organizations are in their infancy, like NIAID's:
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.)
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.
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.
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.
And you think it is normal? Why not gov.us? The US are always giving lessons to the world, but do not even understand that we --the other parts of the world-- would like to have some minimal level of fairness.