832 reputation
39
bio website
location Portugal
age
visits member for 2 years, 8 months
seen 2 days ago
stats profile views 19

May
11
comment Make script that allow server and client to communicate
@Andreas Yes, you can.
Apr
29
comment Are Intel compilers really better than the Microsoft ones?
"EDIT: arm does not have an arm compiler." is this really what you meant?
Apr
28
comment Are there pre-made commercial software licenses to choose from?
@MorganHerlocker Clause 6 of the Open-Source Definition rejects such licenses. About "even for the owner": IANAL, but if he's the sole owner of the copyright, he can license it pretty much any way he sees fit.
Apr
21
revised Is it possible to reach absolute zero bug state for large scale software?
fixed small mistake
Apr
20
comment Is it possible to reach absolute zero bug state for large scale software?
@JoanVenge I quoted that example to show how tricky bugs can be to find. In this case copy pasting was actually the right thing to do since it was proven correct and implementation written from scratch would most likely have more bugs. The tools and practices we - as an industry in general - are using is certainly not optimal. Best practices are easy to ignore and bad habits are easy to keep. Ultimately, bugs will always exist because humans are not perfect. But we can reduce the number of bugs by doing our best and insisting on high-quality education.
Apr
20
answered Is it possible to reach absolute zero bug state for large scale software?
Apr
12
comment Why do some of object oriented languages let programmer use primitive types?
@DocBrown Technically they are structs (though they inherit from the Object class, and they can be "boxed"). But, yes, high efficiency and full object orientation are indeed possible.
Mar
29
comment Avoiding new operator in JavaScript — the better way
Your code is a bit more robust than I initially thought, but I did manage to come up with a (somewhat convoluted but still valid) example: jsfiddle.net/JHNcR/1
Mar
11
awarded  Critic
Feb
23
comment “Public APIs are forever: Only one chance to get it right”?
"both a difficult technical problem and a difficult technical problem" You repeated "technical" twice.
Feb
17
answered Is it possible to create a 2d game for both linux and windows with next to no changes?
Feb
15
awarded  Nice Answer
Feb
14
comment Should the variable be named Id or ID?
@AllonGuralnek Indeed. Daniel B has the correct answer for the .NET convention
Feb
12
comment Should the variable be named Id or ID?
@jwenting The problem is finding out whether "id" is considered like a word or like two words. @Id says that it is a single word, so the variable name would be "id".
Feb
11
comment Should the variable be named Id or ID?
@Adam I've posted an expanded answer.
Feb
11
answered Should the variable be named Id or ID?
Feb
8
comment Should the variable be named Id or ID?
Look at your language's XML APIs to see how they do it. Java names classes like SAXParser and DOMException, .NET names classes like XmlDocument. Based on that, I'd say "ID" in Java, "Id" in C#.
Feb
4
comment How to setup TDD environment
Beware that C# has no equivalent to package-internal access (though it has assembly-internal access).
Jan
21
comment Detecting IEnumerable “State Machines”
How about using ToList? msdn.microsoft.com/en-us/library/bb342261.aspx It doesn't detect whether it was generated by yield, but instead it makes it irrelevant.
Jan
17
comment How do you compress ASCII strings into smaller bytes?
Each ASCII character takes only 7 bits, so a string with 8 ASCII characters can indeed be stored in 8*7 bits - 7 bytes.