Irrlicht3d.org
::
Blog
|
About Me
|
Twitter
Add comment for
Note to myself: Another reason why I don't like Java
Posted by:
Enter the missing letter in: "Internation?l"
Text:
[quote][b]Ketzal[/b] wrote: Oh Language Troll! Language Troll! Ok let me try: Unsigned integers are a strange beast when you consider languages as Java or C#. Although C# supports unsigned values, I've rarely seen any code that uses them, despite the fact that I think they provide a good solution for cases where it makes no sense to have a negative value. I think that part of the problem that few people use unsigned integers in C# (or that there isn't any in Java) is like the fact that it's hard to find const-correct code in C++ : it's difficult to make such code when you deal with third-party libraries or even code from colleagues that doesn't use these good practices. It's not that it's unfeasible, just that it gets hard to make good use of unsigned integers when you have to deal with code that just always use signed integers. Also, if you think that unsigned integers are a great practice and that Java is teh suxxor for not using them, well you should look at Java's "checked exception". Checked exception are a great concept, and a good practice imho: they basically say that if you use a method that can throws a checked exception, it is your duty to catch this exception in your code (or declare that it can throws the exception). But, you know what ? There are people in Java land that think that "checked exceptions" are bad, and even the C# designers decided not to include them. Why ? Because as often, theory is different from practice, and many people noticed that in many enterprise projects, some lazy programmers where just "swallowing" these exception, meaning that they were using empty try/catch blocks around the methods that were throwing these checked exception. And that takes some pain to debug such swallowed exceptions. So, beware of these "good practices", they might not always be your best friends. :) Ok and finally, language wars are getting old. So Java doesn't have unsigned integers ? Ok that sucks, but C++ doesn't have reflection and that sucks too. Seriously, I've used C++, Java and currently use C#, and I love all these languages. They aren't perfect, but you learn to deal with their shortcomings. Enough said ![/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons