11 March 2016 - Forum Rules
Started by Rexius55, January 22, 2022, 05:12:25 PM
Quote from: FAST6191 on January 22, 2022, 10:47:36 PM6 of one, half a dozen of the other.Both are high level languages. Both will be around in 15 years. Both have extensive GUI libraries and capabilities, and are more than capable of the low level fiddling. Both will make something of more than acceptable speed.For my money, and those of several others, then not having to have the Java runtime installed is a nice thing (I have actively avoided it for years now, and most others if they have it will be because minecraft). At the same time being on Java gives it a better shot at being OS independent (possibly even mobile phone/android port if you are rolling that way) where C++ might get more annoying (especially if you lean into the Windows APIs and libraries). Java might be an easier in than C++ but C++ has a higher ceiling for performance and capabilities.To that end does either language appeal to you on an intellectual, educational or professional level? A lot of people will make these sorts of programs to learn/improve/explore a language/library/concept they plan to use in day to day life and with the perk of it holding their interest more than hello world 5000000.
Quote from: piken on January 23, 2022, 08:14:15 AMWith the rare exception of SnowBro's tile editor, you don't find many emulation tools in Java, which could hamper efforts to get help from others or get pull request contributions if others don't know it. The language is alive in enterprise, and alive on Android, but on desktop, it's pretty dead, and even on the other platforms, it's being eaten by Kotlin or Scala or other more concise JVM substitutes. Visiting https://www.romhacking.net/?page=utilities and filtering by OS, you'll see:51 - Java147 - DOS1169 - Windows (presumably a mix of C/C++/C# and possibly Delphi)My next project will use C++ with SDL2 (targeting Windows and Ubuntu), and maybe also compiled via Emscripten to WebAssembly so people can directly run it in a browser too before downloading it, but that's just me.C# is an option commonly found in emulation utilities - also plenty of libraries, easy UI design, capable of low level bit manipulation, and works across platforms (via Mono on Linux). If you haven't considered it yet, I'd investigate that one too.
Quote from: KingMike on January 22, 2022, 11:42:42 PMPeople still use Java?I haven't heard of anyone writing in that in at least 10 years. Closer to 15.I'd imagine probably the only reason I still installed it was Tile Molestor.
Quote from: MysticLord on January 23, 2022, 08:51:35 PMI vote for Python 3.x, and against Java. Especially against anything with a GUI in Java. There is a ton of undocumented or just plain unknown behaviors with Spring, JavaFx is no longer supported (?) by Oracle, and Oracle is constantly making it harder for people to write or even run Java without paying a license fee. I don't know if there's an OpenJDK download for Windows that Just Works anymore, and it's honestly not worth it. I spent a few years coding an editor for a game in Java that I had to throw away because the GUI had some sort of concurrency or cache coherence issue that I couldn't resolve.There are a few things here written in C# that are cross platform.Granted I am a moron but perhaps morons have a wealth of experience from which the can speak.
Quote from: Balgar on January 28, 2022, 07:39:35 AMYou should work with the language with which you feel most comfortable when developing. Java is a language in continuous growth (goes by the JDK-17) but rather for the development of services and systems in distributed environments and it is true that for the development of desktop applications it offers only 3 options: Java AWT (outdated), Java Swing (more or less outdated) and JavaFX (modern) which has now been separated from the latest JDK distributions to be a standalone library. On the other hand, if you don't end up being convinced by Java, I would recommend you use C++ with some kind of SDL2 or Qt library. (I forgot to mention that to make desktop applications in Java you don't need to use the Spring framework, which is a framework designed for webapps and service oriented development).
Quote from: Balgar on January 28, 2022, 07:39:35 AMOpenJDK: https://openjdk.java.net/ || https://openjdk.java.net/projects/jdk/17/Respect JavaFX this is taken from the official oracle website: JavaFX has been open sourced and redesigned to be available as a stand-alone library rather than being included with the JDK. Starting with Java SE 11, JavaFX is not included in the Oracle JDK. Support for JavaFX on Java SE 8 will continue until March 2025.
QuoteHow to download and install prebuilt OpenJDK packagesJDK 9 & LaterOracle's OpenJDK JDK binaries for Windows, macOS, and Linux are available on release-specific pages of jdk.java.net as .tar.gz or .zip archives.As an example, the archives for JDK 13 may be found on jdk.java.net/13 and may be extracted on the command line using$ tar xvf openjdk-13*_bin.tar.gzor$ unzip openjdk-13*_bin.zipdepending on the archive type.
Quote from: MysticLord on January 28, 2022, 08:41:24 PMhttps://openjdk.java.net/install/Hope you're ready to teach newbs to install openJDK manually to Windows, to keep track of bugs, and keep it updated. Plus if you use a feature that is depreciated or doesn't exist in the version they have installed, you need to depend on them giving you accurate reports on the version they are using (which in my experience as a Java programmer most users can't do, or won't do but will tell you they did do after you spend months trying to reproduce errors they found and wrecking your codebase).Or you could use any other language.
Quote from: Balgar on January 29, 2022, 06:13:18 AMIs this really a problem?
Quote from: MysticLord on January 29, 2022, 10:36:32 PMYes, you're adding hoops for your users to jump through to use your tools. More hoops means fewer users and more errors. A compiled binary that just works or something very simple to install and use like Python creates the fewest barriers for users.
Quote from: Balgar on January 30, 2022, 06:09:40 AM... in the end the user will invest 5 minutes in performing said installation to use the tool.
Quote from: MysticLord on January 31, 2022, 12:25:50 AMI admire your optimism.
Page created in 0.051 seconds with 20 queries.