Skip to content

Conversation

@rakki-18
Copy link
Contributor

@rakki-18 rakki-18 commented May 9, 2021

The PMMatrix class did not have the method atRow: initialised even though the method atColumn: was initialised.

The method, atRow: is introduced through this PR.


]

{ #category : #'cell accessing' }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any programmer tests to write here, @rakki-18 ? I seems simple enough

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hemalvarambhia Yeah sure, I will write some tests.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hemalvarambhia Yeah sure, I will write some tests.

TYSM

Copy link
Contributor

@hemalvarambhia hemalvarambhia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small comments. Would appreciate your thoughts.

]

{ #category : #'cell accessing' }
PMMatrix >> atRow: anInteger [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

anInteger -> rowNumber . Here should be 0 index it, do you think?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By cell accessing, you mean accessing a matrix element? If so, maybe that's a more domain-driven naming. Again, thoughts welcome.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

anInteger -> rowNumber . Here should be 0 index it, do you think?

Yes, rowNumber makes more sense. But atColumn: method had the argument name as anInteger, so I thought it would be better to stick on to the same here also. Shall I change it to rowNumber?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By cell accessing, you mean accessing a matrix element? If so, maybe that's a more domain-driven naming. Again, thoughts welcome.

Yeah, cell accessing doesn't seem the exact category for this method but again I stuck on to this because atColumn: method also had the same category.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

anInteger -> rowNumber . Here should be 0 index it, do you think?

Yes, rowNumber makes more sense. But atColumn: method had the argument name as anInteger, so I thought it would be better to stick on to the same here also. Shall I change it to rowNumber?

Yes please. It makes the code clearer, I think.

I would suggest you do the same for the argument name for atColumn. Great spot

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By cell accessing, you mean accessing a matrix element? If so, maybe that's a more domain-driven naming. Again, thoughts welcome.

Yeah, cell accessing doesn't seem the exact category for this method but again I stuck on to this because atColumn: method also had the same category.

Leave it as it is in this PR, and propose a separate one for improving the category name.

@rakki-18
Copy link
Contributor Author

@hemalvarambhia I have made all the changes. Can you please check again now?

Copy link
Contributor

@hemalvarambhia hemalvarambhia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. One small change to make, and then merge at your leisure.

A nice small PR that was easy to review.

Thank you for taking my feedback on board. ❤️

PMMatrix >> atColumn: acolumnNumber [

^ self columnAt: anInteger
^ self columnAt: acolumnNumber
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aColumnNumber

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I have corrected it.

@hemalvarambhia
Copy link
Contributor

hemalvarambhia commented May 15, 2021

I notice that it's master being merged to master. That looks odd. Is it intended, @rakki-18 ?

If it was, normally our practise is to create a well named branch.

cc @SergeStinckwich

@rakki-18
Copy link
Contributor Author

rakki-18 commented May 15, 2021

I notice that it's master being merged to master

Oh my bad, I will make a new branch for my PR from next time.

@SergeStinckwich SergeStinckwich merged commit 86d6f02 into PolyMathOrg:master May 18, 2021
@SergeStinckwich SergeStinckwich added this to the v1.0.3 milestone May 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants