French civil code now on GitHub
11–20 of 126 posts
Re: French civil code now on GitHub
#12kind of curious as to how this got generated in the first place
Re: French civil code now on GitHub
#13I do especially like the GitHub avatar: https://avatars1.githubusercontent.com/u/1994383 ;)
Re: French civil code now on GitHub
#14I wish all legal proposition was supplied with a diff.
Re: French civil code now on GitHub
#15Couldn't this have been done without taking gay marriage as the first example? Or does IT always need to go hand in hand with unconditional progressism?
Re: French civil code now on GitHub
#16------
The French Civil Code, in Git
Introduction
Here is a little hack, the result of an afternoon of code: the Civil Code in Git.
If one considers the law as a set of texts modified by the various assemblies of the state, one can consider them as a set of text files created collaboratively.
The members of government, and the various assemblies, work in collaboration on these files, which, once voted for, are written into the Code (here the Civil Code).
But there is another category of people who, for fifty years now, have worked on text files collaboratively, and excel at it: developers. They have created extremely effective collaboration and tracking tools for working on source code. The most popular to date is Git.
Git not only allows you to view the source at a time T (snapshot) but above all to easily visualize the changes in the source (commits). In the analogy to the Civil Code, this permits the tracking of the changes made by a law.
Combine all of this with the Open Source philosophy, and the second part of the analogy is made: the modification of source code in an open and public fashion.
Finally, the Civil Code is a part of the source code of France. And source code belongs in source control. Period.
Example
Here is for example the commit which authorizes marriage for all: https://github.com/steeve/france.code-civil/commit/b805ecf05...
This is more readable than, for example (cf http://www.assemblee-nationale.fr/14/ta/ta0120.asp):
"At article 165 of the same code, the word: 'before' is replaced by the words: 'during a republican ceremony by'."
Technical Note
Git dates are based on the Unix epoch (01/01/1970), changes before these dates are all dated 01/01/1970, with incremental seconds; the commit message gives the correct date.
LICENSE
All files are licensed under Creative Commons (https://creativecommons.org/licenses/by/4.0/).
Re: French civil code now on GitHub
#17Couldn't this have been done without taking gay marriage as the first example? Or does IT always need to go hand in hand with unconditional progressism?
Gay marriage (or "marriage for everyone") is a recent, substantial change to a law that is familiar to many French people. I thought it was a great example despite its somewhat controversial nature.
Re: French civil code now on GitHub
#18Earlier quoted context omitted.
Gay marriage (or "marriage for everyone") is a recent, substantial change to a law that is familiar to many French people. I thought it was a great example despite its somewhat controversial nature.
A quick look at the author's tweets reveals this is not as innocent as you seem to say it is. Plato once said something along the lines of: "those who mix art with politics must be either unsure of their art or of their political positions, if not both". We had engaged musicians, now we have engaged developers. This is all the same trash to me.
You might be forgetting that the civil code is an entirely political product.
Re: French civil code now on GitHub
#19Re: French civil code now on GitHub
#20kind of curious as to how this got generated in the first place
Same here. Diffs published from the Journal Officiel aren't so easy to parse. I am afraid it could be manually generated, which is a dead end.
I do agree that the technical details would be interesting.