|
I've been working some Java alg exercises on paper and I've just had a brainfart.code:
|
# ¿ Jul 11, 2014 08:08 |
|
|
# ¿ Apr 27, 2024 07:24 |
|
Java should be easier to learn than python in some respects because Java doesn't handle tuples and lists natively. The only thing that might be hard for someone that only knows Python is the fact that Java is type sensitive. Python uses 'duck typeing' while Java uses explicit declaration of what things have to be. I don't use Python as deeply as it can be used so I can't comment on everything but I do know lambda expressions were recently added to Java 8, so that brings Java closer to what Python can do.
|
# ¿ Jul 13, 2014 20:32 |
|
Volmarias posted:Java also needs an IDE whereas with Python you really can get away with a smart text editor for a long time. Pick up Eclipse or IntelliJ and spend a little time learning to use it. Most IDEs can check syntax and scope as you type (I assume due to the Just-in-Time compiling nature of Java) so you can catch errors. Also due to the strong Type casting of Java, the IDEs can more easily (and correctly) do intellisense suggestions. Other use for an IDE being that it simplifies the issue of setting up Classpaths for when you build JARs/WARs. Kenishi fucked around with this message at 01:00 on Jul 14, 2014 |
# ¿ Jul 14, 2014 00:51 |
|
Those are part of the Java standard library. If I have to import the thing to use it then its not natively part of the language. Plus I've always found the manipulation of lists/tuples in Python to be a lot easier than using the Java library ones.
|
# ¿ Jul 14, 2014 10:16 |
|
Anyone familiar enough with SWT to explain how the Region.add(int[] pointArray) works? I'm trying to create a rounded rectangle region for a Shell and am not sure how the size of the array/indexs translate to points.
|
# ¿ Oct 5, 2014 00:27 |