Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

New answers tagged

1 vote

Investment capital calculator(Python)

inconsistent annotations def generate_transaction_cost(self) -> int: ... return self.transaction_cost * self.lot_size I assume that ...
J_H's user avatar
  • 27.4k
3 votes
Accepted

Snail matrix in Java - version III (generalizing)

Indentation is confusing here: ...
AJNeufeld's user avatar
  • 33.7k
5 votes
Accepted

Snail matrix in Java - version II

A lot of things are going on inside toString, let's refactor this method. Avoid hard-coding System properties Line separator is system-dependent, hence it better to ...
Alexander Ivanchenko's user avatar
8 votes
Accepted

Snail matrix in Java

Expose behavior / Don't manipulate the internal state directly Object-orientation is about exposing behavior (not data), defining methods that are tailored for the problem at hand, that are meant to ...
Alexander Ivanchenko's user avatar
3 votes

Snail matrix in Java

Advice I - Rename IntPair I guess, the better name for IntPair would be IntCoordinate. ...
coderodde's user avatar
  • 28.4k

Top 50 recent answers are included