291 reputation
13
bio website
location
age
visits member for 2 years, 1 month
seen Jun 26 at 5:42

Sep
29
comment Why are most browsers developed in C++
Comment on C#: WPF is not only new. Using it to build a modern Web browser will also introduce portability problems since it is a proprietary technology targeting exclusively Windows platforms, and when developing a solution like a Web browser that can potentially be interesting to a very wide audience it does not make too much sense to restrict yourself to a single platform.
Jul
1
comment Hide or Show singleton?
I covered that scenario in my answer. You can encapsulate the checking logic in a separate method, but then you will have to call this method in every public static method of your class to make sure that the instance has been instantiated and not get NullPointerException. So in fact this does not change anything and does not decrease programmer's burden.
Jul
1
comment Hide or Show singleton?
:) fair enough.
Jul
1
comment Hide or Show singleton?
@w4rumy thank you for the link. I don't actually agree with the statement that Singletons have to be entirelly avoided. Just like any design patterns, there are situations where they are optimal solutions and situations where we should better try something else. If we try nailing with a screwdriver, no wonder that we will end up hating all screwdrivers :)
Jul
1
comment Hide or Show singleton?
@Sinker that you for the assesment of my little efforts. You can still show your appreciation by formally accepting it :)
Jul
1
comment Trying to understand 3 layer programming
@RasoulTaheri You are welcome. I have updated my answer to provide information on the relationship between the three-tier architecture and a design pattern like MVC.
Nov
5
comment Why do browsers leak memory?
@MatrixFrog You can easily have a memory leak even in garbage-collected languages like Java, JavaScript, etc. The language itself is not the cause. It is always the developer who should be held responsible for memory leaks. There are lots of features and techniques in not garbage-collected languages that facilitate efficient memory management. And let's not forget that garbage-collected languages have their runtimes written in not garbage-collected ones. The only difference in terms of memory management between them is that in languages like Java it's automatic and C/C++-like ones it's manual