Live data from Hacker News

French civil code now on GitHub

github.com

11–20 of 126 posts

Re: French civil code now on GitHub

#14
post #2

I wish all legal proposition was supplied with a diff.

In a way, it's often the case: law are often modifications of the underlying reference code (here 'Code civil') and are a set of proposition to change the wording or to add/remove a sentence from the reference code.

Re: French civil code now on GitHub

#15

Couldn'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

#16
I need to keep in practice with my French, so I've translated the README below. Let me know if I got anything wrong.

------

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

#17

Couldn'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.

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.

Re: French civil code now on GitHub

#18

Earlier 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.

Are you saying the author of a civil code git repository should have chosen a non-political example?

You might be forgetting that the civil code is an entirely political product.

Re: French civil code now on GitHub

#20
post #12
post #8

kind 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.

The author mention he did it in an afternoon of code, so it's definitely not manually generated : "Voici un petit hack, résultat d'une après-midi de code"

I do agree that the technical details would be interesting.

Post reply on HN