Home of The JavaSpecialists' Newsletter

069bResults of last survey

Posted: 2003-05-02Category: PerformanceJava Version: Dr. Heinz M. Kabutz
 

Abstract: 

 

This is a quick follow-up to let you know the score of the survey from the last newsletter. In the newsletter I mentioned that i += n is the same as i = (type_of_i)(i + n). A number of readers were surprised that I should mention such an obvious bit of information in an advanced Java newsletter. They were in the minority. Only 32 of the responses indicated that they already knew that information, and a staggering 174 readers responded that they did not know. That comes to only 15.53% of Java Specialists knowing about this. Imagine how few Java beginners know about this?

The quote was attributed to Ralph Waldo Emerson.

Beno Patrik from CLEVERLANCE wrote, suggesting that we could add the cast from int to double to the formula. That would mean that i += n is the same as i = (type_of_i)((type_of_n)i + n), if n is of higher precision than i. I did realise that when I was writing the newsletter, but did not want to muddy the waters. That is a typical upcast that we would expect. The one that I mentioned was a downcast, losing precision, and that we would not expect without a compiler error.

Yesterday, Andrew Righthouse and I spent the public holiday updating the "Feeding the 5000" webpage. We've added new pictures, and Andrew explained a bit more about what the people of the townships experience daily. South Africa is a concentrated example of the sufferings of this world. Less than 10km away from where I live is poverty where people live below the breadline. Visitors who come to South Africa are disturbed about this; that some should live in big houses, drive fancy cars, and others in the same town would be starving. It is dreadful, a legacy of an evil system that will take years to right. Yet the contrast that is so evident in South Africa is a picture of the suffering of the whole world. We have rich countries and poor countries. They are perhaps separated by 1000's of kilometers, but that does not make the poor nations disappear. They are still there, whether you like it or not.

Heinz

 

Comments

We are always happy to receive comments from our readers. Feel free to send me a comment via email or discuss the newsletter in our JavaSpecialists Slack Channel (Get an invite here)

Related Articles

Browse the Newsletter Archive

About the Author

Heinz Kabutz Java Conference Speaker

Java Champion, author of the Javaspecialists Newsletter, conference speaking regular... About Heinz

Superpack 2018

Superpack 2018 Our entire Java Specialists Training in one huge bundle more...
Java Training

We deliver relevant courses, by top Java developers to produce more resourceful and efficient programmers within their organisations.

Java Consulting

We can help make your Java application run faster and trouble-shoot concurrency and performance bugs...

Java Emergency?

If your system is down, we will review it for 15 minutes and give you our findings for just 1 € without any obligation.