9,365 reputation
93989
bio website
location
age
visits member for 3 years, 11 months
seen 15 hours ago

0x2B | ~0x2B


2d
comment Where should my team start with becoming “modern”?
Very nice answer (+1), especially the last paragraph. A very modern book (modern in the sense that I find it very relevant today) I am reading recently is SICP.
May
8
awarded  Famous Question
May
8
awarded  Nice Question
May
7
awarded  Famous Question
May
4
comment Why Java does not allow function definitions to be present outside of the class?
@Eugene: You can consider static methods as methods belonging to a singleton object (and this is how Java static methods are used in Scala). On the other hand, with this view you can consider C++ functions as methods belonging to a global world object.
May
3
comment Some people told me that finding all prime factors of a number is an unsolvable problem. Is that real?
Sure, it is not always true. However, even a website software can become complex and having a math / computer science background can give you good tools to manage this complexity.
May
3
comment Java program exit function not working
You program gets stuck in the inner loop and never gets a chance to read user input.
May
3
comment Some people told me that finding all prime factors of a number is an unsolvable problem. Is that real?
"Practically speaking, math knowledge and computer science knowledge is useful when programming.": This sentence alone would be enough for me to justify an upvote: many programmers maintain that math knowledge is useful for writing your PhD but less useful for solving real-world problems. Anyway, I had already given my upvote when I reached this line.
Apr
29
comment Structuring Procedural vs OO code
My favourite reading regarding OOP versus procedural is a section (mitpress.mit.edu/sicp/full-text/book/…) from SICP. You can basically organize code in a table containing data types and operations. Procedural style organizes code around operations (procedures) while object-oriented style organizes code around types (classes). They are two symmetric approaches to organizing your code and each one can be stronger than the other, according to how you are going to extend your code in the future.
Apr
27
reviewed Leave Open Are first-class continuations useful in modern object-oriented programming languages?
Apr
27
reviewed Leave Open Are there real world examples demonstrating reasonable performance improvement by using move semantics?
Apr
25
comment provability of while loop vs for loop
@babou: The most common interpretation of a for loop is a loop that iterates over a finite range or collection. Of course, in many languages you can hack a for loop to behave like a while loop, but I think that's not what Jörg had in mind.
Apr
24
reviewed Leave Open Can programmer experience be expressed in hours of coded like hours of flight for a pilot?
Apr
24
reviewed Leave Open What happened to Concurrent C?
Apr
23
comment Why python function programming functions are not collection methods?
Let us continue this discussion in chat.
Apr
23
comment Why python function programming functions are not collection methods?
@WinstonEwert: Then each method can be a thin wrapper around this common function implementation using __iter__.
Apr
23
answered Why python function programming functions are not collection methods?
Apr
23
comment Why python function programming functions are not collection methods?
@WinstonEwert: What would be so bad about that? After all the existing function implementations have to discriminate between the different collections they are applied to in the same way as the corresponding methods would.
Apr
23
comment Why python function programming functions are not collection methods?
"There is no collection base class to put a map,reduce,filter etc on.": Why do you think that such methods should be put in a base class? Each collection classes could implement these methods and they would just happen to be there when you need them (duck typing).
Apr
21
awarded  Nice Answer