Reputation
14,265
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
2 31 51
Newest
 Enlightened
Impact
~296k people reached

1d
comment How can I oprimize this hash table in C?
You might want to post this on codereview.stackexchange.com to get recommendations how to improve performance. But before you do that, please change the variable names and function names to English. It is really hard to read when you don't understand what's supposed to mean what.
1d
comment How can I oprimize this hash table in C?
calloc allocates memory just like malloc and then automatically sets it to zero. If you want to do that anyway it might be faster, but if you are going to overwrite it with data with something else, it can only be slower.
Apr
30
comment Creating a Vector (physics) Class in Java
@Daniel I would use T[] unless you want to support vectors where the x-coordinate is of a different type than the y-coordinate. But that might make some vector-operations quite complicated.
Apr
30
revised Creating a Vector (physics) Class in Java
deleted 152 characters in body
Apr
30
revised Creating a Vector (physics) Class in Java
added 165 characters in body
Apr
30
answered Creating a Vector (physics) Class in Java
Apr
29
comment How can one think of a relational schema in terms of storing it in a NoSQL database?
What NoSQL database?There are lots and lots of different technologies with completely different philosophies commonly grouped under the huge "NoSQL" umbrella. Depending on which one you use your schema would look completely different.
Apr
28
awarded  Enlightened
Apr
28
awarded  Guru
Apr
28
revised Should an Else statement be used just for a comment?
added 16 characters in body
Apr
28
comment Why does the relational model for a database matter?
@IsmaelMiguel Usual practice is that master-data like this is never hard-deleted from the database. You only soft-delete it by setting a flag on it which says it is no longer available. In this particular case it would be a good idea to have a foreign key relationship between products and orders which means that the database will throw an error when you try to delete a product which is referenced by any orders.
Apr
28
awarded  Great Answer
Apr
28
answered Should an Else statement be used just for a comment?
Apr
27
awarded  Guru
Apr
27
comment My algorithm is too slow
Please don't post the same question on multiple stackexchange sites, because it will split the answers and discussion. Pick which site would be more appropriate, and when you realize you've choosen poorly, either delete the question before you repost it or flag it for moderator attention and request a migration.
Apr
27
awarded  Good Answer
Apr
27
awarded  Good Answer
Apr
26
awarded  Enlightened
Apr
26
awarded  Nice Answer
Apr
26
revised Why are floats still part of the Java language when doubles are mostly recommended instead?
added 9 characters in body