Live data from Hacker News

French civil code now on GitHub

github.com

21–30 of 126 posts

Re: French civil code now on GitHub

#21
post #4

Too bad the date stamps only can go back to 1970-1-1. It's neat, though, to be able to flip through the history like this.

Apart from the timestamps, line returns also make some of the diffs difficult to interpret sometimes, like if the first line of a long paragraph gets wrapped differently then all the paragraph is just highlighted as a diff instead of each modified word.

Isn't there a better tool than git for plain text diffs?

Re: French civil code now on GitHub

#22

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 membe…

I'm really pleased that I was able to read all of the README despite not having read French for probably a year or more. I guess it was written in a very easy/academic style.

Re: French civil code now on GitHub

#24

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 membe…

You should commit your translation

Re: French civil code now on GitHub

#25

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.

Do we even have another recent law that everybody in France remembers?

And seriously, every single new law is pushing somebody's agenda. The author could've chosen the "animals are human being" change and we'd have another you yelling not being fond of developers pushing their love for animals.

Re: French civil code now on GitHub

#26

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 membe…

I'm really pleased that I was able to read all of the README despite not having read French for probably a year or more. I guess it was written in a very easy/academic style.

I had the same thought. Perhaps it's also because of the closeness of many terms here to their English equivalents ("collaboration", "code source", "commits", "assemblées", etc).

Re: French civil code now on GitHub

#27
post #24

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 membe…

You should commit your translation

I can submit a pull request if one would be welcome. I'm not sure, though, as the rest of the repo is in French.

There's a Markdown version here, if someone wants it: https://gist.github.com/spinda/282452390bf6d6fbcc5b

Re: French civil code now on GitHub

#28

Nice use of git, never thought of that. Who's up for other countries law books?

thomasbachem noted german laws and regulations are already there at https://github.com/bundestag/gesetze, with an amazing org avatar: https://avatars1.githubusercontent.com/u/1994383

A quick github search indicates that Taiwan's laws might also be there at https://github.com/victorhsieh/tw-law-corpus using the https://github.com/g0v/twlaw exporter, Japanese laws seem to have been uploaded at https://github.com/riywo/law.e-gov.go.jp but just be a crawl/dump of law.e-gov.go.jp

Re: French civil code now on GitHub

#29

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 membe…

As a native French speaker: very good translation.

One small point: I do not understand why you added "it" to the last sentence of the introduction. Your translation of that particular sentence feels weird to me, why not simply:

"And source code belongs in source control."

Also, maybe "différentes" (in the third sentence) could have been translated to "various"?

* * *

Aside, note that the original text itself has several errors. Many accents are missing, some letters or words are missing or doubled. I may submit a PR to correct them.

Moreover, the text includes many English words (not all of which are common in French). It even includes a barbarism: "tracker", from English "track" and French common verbal suffix "-er", supposedly a verb supposed to mean "to track" — a shame, since French has the verb "traquer" to express the same thing.

Post reply on HN