766 reputation
1716
bio website
location
age 25
visits member for 3 years, 8 months
seen 10 hours ago

Computer science student


1d
comment Can you implement “object-oriented” programming without the class keyword?
@overexchange When you think about it, inheritance is all about sharing common code/behaviour between classes. Nothing stops you from repeating all that code all the time. Would be super awful to maintain though. There is a reason why inheritance exists :)
1d
comment Can you implement “object-oriented” programming without the class keyword?
Inheritance is in no way required for OOP. You could implement inheritance in your first example as well. It migth not be very "clean" but possible all the same.
1d
revised Can you implement “object-oriented” programming without the class keyword?
added 80 characters in body
1d
answered Can you implement “object-oriented” programming without the class keyword?
Apr
29
comment Is it okay to have objects that cast themselves, even if it pollutes the API of their subclasses?
@ThomasJunk You need to find the right abstraction level for your classes, it seems like you are skipping quite a few here between the base and the sub classes
Apr
27
comment Why is it common to put an underscore before a method in JavaScript?
stackoverflow.com/questions/4484424/…
Feb
23
comment Caveats of using String.hashCode() on a switch on java < 1.7
Non-equal objects can have the same hashcode..
Feb
22
revised How is a dictionary better than a big switch, when mapping data to action?
added 158 characters in body
Feb
21
comment How is a dictionary better than a big switch, when mapping data to action?
Why do you have to have huge instance definition? Load the info from a file or some other source?
Feb
21
answered How is a dictionary better than a big switch, when mapping data to action?
Sep
24
awarded  Autobiographer
Sep
10
awarded  Yearling
Mar
27
comment Explanation of the code snippet , keyword operator in , in c++ , use of objects in classes
It might very well be valid, I must say that C++ is not my strongest language :)
Feb
22
awarded  Notable Question
Dec
7
comment Why Big Data Needs To Be Functional?
Also notice that while testing on the JVM, just running the test once does not give in any way reliable results. You'd need to run the test case several times over so the JIT kicks in.
Dec
2
revised Modularity and “encapsulation” in C
corrected title
Dec
2
suggested approved edit on Modularity and “encapsulation” in C
Nov
18
comment Dota 2 running on Linux, Mac and Windows - How do they do it?
You'd really need someone from the dota2 devteam to really answer this
Nov
5
awarded  Good Answer
Nov
4
awarded  Nice Answer