News for hackers. Stuff that matters.
Re:All 104 amendments to the Constitution of India as Git co... by carlsborg on Sunday January 24, 2021 @12:15PM (#25893687)
I look forward to the day when constitutional amendments are pull requests.
Re:All 104 amendments to the Constitution of India as Git co... by gwright on Sunday January 24, 2021 @01:34PM (#25894421)
Not just constitutional amendments, legal documents of all kinds would benefit from standard formatting and version control.

One difficult challenge is that text-line based diffs don't work well for free-form text documents. Line length, line breaks, paragraph breaks, list formatting, etc. are very ad-hoc in most legal documents.

Re:All 104 amendments to the Constitution of India as Git co... by Udik on Sunday January 24, 2021 @02:15PM (#25894836)
In Italy (and I guess in many other places) laws are effectively commits, not documents/ files. The actual law is often implicit in the result of the successive modifications each new law applies to the existing ones. Which is terrible from a usability perspective- it's like working with lists of patches instead of files.

I think software engineers- thanks to much faster iteration cycles and having clarity and order as their only concern- have developed solutions and practices that absolutely can and should be applied also to the management of the law.

Re:All 104 amendments to the Constitution of India as Git co... by gwright on Sunday January 24, 2021 @02:27PM (#25894947)
I think you are just describing the difference between a bill (what is debated and discussed during the legislative process), and the compendium of statutes (or regulations, etc.) that is updated via the legislative process.

My understanding is that there are always administrative departments responsible for updating and publishing the statutes based on the bills that have been passed. This is effectively applying a patch approved by the legislative process to the repository of statutes.

If you try to dig into a mainstream news story about legislative actions to the actual bill text you'll quickly find that for all but the simplest actions the bill text is useless for understanding the effect of the bill. The problem is that you need the surrounding context of the statute or regulation that is being amended in order to understand. At least for my state and the US federal legislative systems, the web based UI for understanding all this is abysmal.

The cynic in me thinks that legislators don't even understand the true nature of their own legislation. They are making voting decisions based on staff summaries, verbal discussions, media reports, constituent sentiment analysis, etc.

Re:All 104 amendments to the Constitution of India as Git co... by Udik on Sunday January 24, 2021 @03:06PM (#25895354)
> that there are always administrative departments responsible for updating and publishing the statutes based on the bills that have been passed

I don't think that's the case in Italy. A bill often takes the takes the form of sequences such as "in the bill n. 1234/05 at the subparagraph 2, the word X is replaced with the word Y." There isn't, to my knowledge, a notion of "document" which the patch is applied to. You can, of course, derive the documents from the successive patches, and laws on new matters contain an entire document as a "first commit". But in software engineering it's the documents/ files you care about, patches and commits only exist as a support for change management.

Re:All 104 amendments to the Constitution of India as Git co... by dmurray on Sunday January 24, 2021 @06:13PM (#25897191)
Doesn't anyone take the job of publishing the derived documents, with all the changes made?

This seems like it should be done by some government department, but if it's not, still a lucrative opportunity for the private sector (surely every lawyer would buy a copy /subscribe to your service).

Re:All 104 amendments to the Constitution of India as Git co... by gwright on Sunday January 24, 2021 @04:00PM (#25895976)
That is interesting. Thanks for elaborating.
Re:All 104 amendments to the Constitution of India as Git co... by zepn on Sunday January 24, 2021 @09:04PM (#25898253)
This is my (basic, lay) understanding of how changes to UK law happen, as well.

For example, here is a collection of "Statement of changes in Immigration Rules: 1994 to 2020": https://www.gov.uk/government/collections/immigration-rules-...

If you click on the latest document, "accessible" version, you'll find paragraphs such as the following:

  Changes to the Introduction
  Intro1. In paragraph 6.2, after the definition of “English language course”, insert:
  “ “EU national” in Appendix T5 (Temporary Worker) International
  Agreement Worker means a person who is a national of: Austria, Belgium,
  Bulgaria, Croatia, Republic of Cyprus, Czech Republic, Denmark, Estonia,
  Finland, France, Germany, Greece, Hungary, Ireland, Italy, Latvia, Lithuania,
  Luxembourg, Malta, Netherlands, Poland, Portugal, Romania, Slovakia,
  Slovenia, Spain, or Sweden; and who is not also a British citizen.”.

  Changes to Part 7
  7.1. For the second paragraph 276BB1(vi)(d), substitute:
  “(e) the Ministry of Defence, the Foreign and Commonwealth Office, the
  Department for International Development or the Foreign, Commonwealth
  and Development Office has determined should qualify for relocation under
  the ex-gratia redundancy / resignation package, including confirmation that
  they served ‘on frontline duties outside the wire in Helmand’.”.
Anyone interpreting this law (i.e. lawyers) does not have the "latest" version to hand; they have to stack successive changes.

There are other complications, which I can't recall, but I dearly wish someone would do this for UK law.

Re:All 104 amendments to the Constitution of India as Git co... by gwright on Sunday January 24, 2021 @10:22PM (#25898666)
Fascinating. Is there nothing in the UK like the US Code?

https://www.govregs.com/uscode

Re:All 104 amendments to the Constitution of India as Git co... by magni- on Sunday January 24, 2021 @11:10PM (#25898991)
I did something like this for "fun" a number of years ago: https://github.com/magni-/visa-waiver-program/pull/2/files

There was a lot of media noise about this bill, and it was frustratingly difficult to figure out what it actually did.

Re:All 104 amendments to the Constitution of India as Git co... by buzzerbetrayed on Monday January 25, 2021 @01:52AM (#25900120)
I read once that the legal team at Github uses git commits in all their documents. Not sure where I read it. But it would be interesting to know more if it's true.
Re:All 104 amendments to the Constitution of India as Git co... by smlckz on Sunday January 24, 2021 @01:40PM (#25894487)
If diff is not enough, you have wdiff. :)
Re:All 104 amendments to the Constitution of India as Git co... by gwright on Sunday January 24, 2021 @02:30PM (#25894981)
Helpful, but in the real-world legislative systems I've interacted with, the patch (the bill text) isn't formatted as an algorithmic diff against the base documents (statutes, for example). It is a baroque system that requires huge amounts of clerical effort to keep aligned and which makes understanding all but the simplest changes a mind-numbing exercise.
Re:All 104 amendments to the Constitution of India as Git co... by ssivark on Sunday January 24, 2021 @05:35PM (#25896901)
But they (almost) are! They just have a more involved review process, requiring sign offs from many more people (from a diverse group of representative stakeholders) given what’s at stake. A lot of the process/bureaucracy comes from the scale & scope of what’s being managed.
Re:All 104 amendments to the Constitution of India as Git co... by mishraprince on Sunday January 24, 2021 @01:06PM (#25894141)
Absolutely! It would be a dream come true if Indian law-makers start doing things in the public, allowing public to comment/vet their ideas/thoughts/plans on upcoming legislations. I'm not sure if you're aware: currently the farmers in India's capital are protesting against the farm acts the Govt. introduced. The acts are supposed to do good to the farmers, but since they did not involve them, there is a lot of misinformation and protest.