Monthly Archives: June 2005

The march of progress: C, C++, Java

Found on the Qt forum:

The march of progress:

C:
printf(“%10.2f”, x);

C++:
cout << setw(10) << setprecision(2) << showpoint << x; Java: java.text.NumberFormat formatter = java.text.NumberFormat.getNumberInstance(); formatter.setMinimumFractionDigits(2); formatter.setMaximumFractionDigits(2); String s = formatter.format(x); for (int i = s.length(); i < 10; i++) System.out.print(' '); System.out.print(s); No comments. Except that C code will work in C++ just fine. Even better than "native C++", actually, because it is more portable.

Opera 8.01

I suddenly needed to download latest Opera for Windows, and then decided to download latest Opera for Linux as well – just to check whether they made it usable (8.0 was NOT).
Well, I have been surprised! It is good. Really good! Well, maybe there is something I have not noticed yet (I am almost sure), but anyway – this IS what should have been called first stable release of Opera 8, while 8.0 was just beta actually.

Anyway, it is first time in my Opera experience when I have not found any new bugs after few minutes of trying it _and_ all the annoying bugs of previous versions were fixed. Have they finally realized that making good software even better is easier by making it more stable rather than by adding new features?

Well, not everything is so good – they still have not gave up annoying habit of changing keyboard shortcuts with each new version, for example. Why in the world should G become Shift+I and Shift+G become I? Are they thinking that getting used to new shortcuts is that fun? But that’s nothing compared to previous versions’ bugs, of course.

Oh, and almost forgot – what idiot removed help from distribution?! “Help” menu now leads user to the help on the Opera website. Just wonderful! Especially when your connection is under heavy load… Or when there is no connection at all for some reason.

But summary it is getting better. It is less like KDE now, with its “let’s change as much as we can and then fix as much bugs as we can, thus keeping total amount of bugs on approximately constant level!”. Not to mention Windows, of course, with its “let’s fix the bugs by adding new ones!” ^_-

There will be Qt 4 Open Source Edition for MS Windows

The best news ever! Trolltech people finally understood that there’s no point in keeping Qt Windows available only to commercial users. And so there will be Qt 4 Open Source Edition not only for X11 systems, but also for Windows. Which means that open source software developers finally will be able to easily create completely cross-platform software which runs not only on most UNIX dialects and Mac OS X but on Windows platforms as well. And since Qt itself is so good this will be a real paradise… For Windows developers, who are probably sick of buggy (and unportable) Borland products and expensive (and not very portable too) MS products, this is a true salvation! Well, at least it should be… but now it’s up for them to decide. Anyway, it is always good to have an additional option to choose from!

Жаль лишь, что нет никакой возможности использовать в работе коммерческую версию на законных основаниях…