New answers tagged reinventing-the-wheel
6
votes
Very simple CSV-parser in Java
conservative design
Since this is billed as "a CSV parser", a caller may reasonably
believe they could send it any *.csv file produced by Excel.
Better to ...
7
votes
Accepted
Very simple CSV-parser in Java
Side-effects
Stream.forEach() operation should be utilized with care since it operates via side-effects and should not be used as a substitution of a proper ...
2
votes
Matrix Multiplication & Addition
This code is completely missing the error-handling for when malloc() returns a null pointer. Which makes the entire program's behaviour undefined on any occasion ...
6
votes
Accepted
Matrix Multiplication & Addition
Other than what vnp already said in their answer, I'd like to point out a logic error in the code. When checking whether the matrices have the same dimensions in ...
7
votes
Matrix Multiplication & Addition
create_matrix happily accepts negative arguments. It does not exactly make sense. Semantically m and ...
2
votes
A View over java.lang.String - improved take II
There are only two hard things in computer science: concurrency and getting programmers to pay attention to naming things.
Naming is really simple. You look at what the component you are naming does, ...
6
votes
A View over java.lang.String - improved take II
grow / shrink / shift
There's no need to construct a new StringView instance if any of these methods receives zero as an argument.
Add guard clauses returning <...
5
votes
Accepted
A View over java.lang.String
Mutability / Lack of Functionality
Despite StringView being a cheap to instantiate thin wrapper, this class is not attractive to use.
Reasons:
...
6
votes
A View over java.lang.String
Just two observations from me:
I don't understand why toString() works a character at a time, rather than simply returning ...
Top 50 recent answers are included
Related Tags
reinventing-the-wheel × 1024c++ × 315
python × 222
c × 130
java × 127
python-3.x × 108
beginner × 101
algorithm × 88
strings × 85
performance × 81
c# × 71
linked-list × 70
c++11 × 62
javascript × 51
haskell × 45
object-oriented × 37
parsing × 35
sorting × 33
c++17 × 33
memory-management × 32
pointers × 31
hash-map × 27
cryptography × 26
stack × 26
vectors × 25