Java has no NULL.
How does it handle an invalid memory reference?
Terrible!
Name:
Anonymous2008-02-23 0:55
??48
The null keyword is used for the null reference. It's actually funny, proponents of Java always boast how there's no more null pointer segfaults, however they ignore the fact that there is the common unchecked null reference exception ;)
UI programming in Windows native C/C++ is so fucking shit that it motivated me to learn Java, so I could at least pretend I was back in the world of X, with sensible event handling and layout.
OP could use C++ on .Net, but they go together like oil and water.
Name:
Anonymous2008-02-23 14:35
No .NET ploz, just halp 2 designed GUI
Name:
Anonymous2008-02-23 14:48
Windows UI programming just too fucking complicated to put into a post like this. Go and get hold of a copy of Petzold on Windows and work through that like the rest of us had to.
Or use a better set of tools like JRuby on the JVM
# Valid as of JRuby 1.0
# This is the 'magical Java include line'.
include Java
# With the 'include Java' above, we can now refer to things that are part of the
# standard Java platform via their full paths.
frame = javax.swing.JFrame.new("Window") # Creating a Java JFrame.
label = javax.swing.JLabel.new("Hello")
# We can transparently call Java methods on Java objects, just as if they were defined in Ruby.
frame.getContentPane.add(label) # Invoking the Java method 'getContentPane'.
frame.setDefaultCloseOperation(javax.swing.JFrame::EXIT_ON_CLOSE)
frame.pack
frame.setVisible(true)
>>63
Tcl/Tk is cheating. Even if that itself is written in C.
Name:
Anonymous2008-02-23 16:40
>>65
Yes, clearly using a language designed for the job in question is cheating. After all, that would be easy and painless, and we wouldn't want that, now would we?
I'll let you argue with >>66
Yes, clearly using a language designed for the job in question is cheating. After all, that would be easy and painless, and we wouldn't want that, now would we?
Name:
Anonymous2008-02-24 13:02
>>71
The Win32 API + C/C++ runtime take up some space as well.
>>61 hello.cs(1,7): error CS0234: The type or namespace name `Windows' does not exist in the namespace `System'. Are you missing an assembly reference?
hello.cs(1,1): error CS0246: The type or namespace name `System.Windows' could not be found. Are you missing a using directive or an assembly reference?
Compilation failed: 2 error(s), 0 warnings
Name:
Anonymous2008-02-24 14:39
Fuck that noise. Just need to design some GUIs, ya dig?