Giter Club home page Giter Club logo

Comments (5)

weierophinney avatar weierophinney commented on September 28, 2024

@snapshotpl
I see some problems, because you've mixed different problems in one commit:

  • this breaks the version control system
  • no way for a cherry-pick
  • reading the commit history is a mess
  • a review is very difficult

Each individual change should be one commit. Please create separate commits for each problem. Thank you in advance!


Originally posted by @froschdesign at zendframework/zend-validator#177 (comment)

from laminas-validator.

weierophinney avatar weierophinney commented on September 28, 2024

@snapshotpl Totally missed this when I submitted #181 earlier.

@froschdesign For large refactors, we simply cannot do one change at a time. In such cases, I would recommend posting a WIP with some of the ideas codified, and then creating an RFC in the contributors section of the forums. I'll be posting one related to #181 tomorrow, as I've done some significant work trying to address forwards and backwards compatibility at this point.


Originally posted by @weierophinney at zendframework/zend-validator#177 (comment)

from laminas-validator.

weierophinney avatar weierophinney commented on September 28, 2024

@weierophinney

For large refactors, we simply cannot do one change at a time.

You can, because a problem can change more than one line or one file!


Originally posted by @froschdesign at zendframework/zend-validator#177 (comment)

from laminas-validator.

weierophinney avatar weierophinney commented on September 28, 2024

I suppose it all depends on what a "change" is.

In this PR, there's a single commit that does two different things:

  • Updates travis.yml and composer.json to PHP 7.1
  • Adds Result.php, Message.php and the changes ValidatorInterface.php.

It seems to me that these should be two separate PRs. I agree with Matthew that more explanation on the reasons behind a significant change would be useful.


Originally posted by @akrabat at zendframework/zend-validator#177 (comment)

from laminas-validator.

weierophinney avatar weierophinney commented on September 28, 2024

@akrabat

I suppose it all depends on what a "change" is.

Replace the word "change" with "problem".

In this PR, there's a single commit that does two different things

Right!

I agree with Matthew that more explanation on the reasons behind a significant change would be useful.

I agree also.


I wanted to point out the problem with the "all-in-one-commits". No more.
We should add a new paragraph to the contributors guide to respect the principles of a version control system.


Originally posted by @froschdesign at zendframework/zend-validator#177 (comment)

from laminas-validator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.