Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Recent content by JavaJames

  1. J

    Java what is main(String[]args)

    Those questions are pretty standard for someone learning Java. So much so that the language has been updated to make it simpler for beginners. In the latest versions (22/23) of Java this is fully complete and legal program: void main() { print("Hello World"); }
  2. J

    From poker to coding

    A couple of points re the last code you posted: The great thing about Java isn't the language, it's the library or "API" that comes with it. Thousands of documented tested methods you can use to make your life easy. For example: Random: you got a random floating point number and then had to...
  3. J

    From poker to coding

    From what you have posted so far, I would stick with your current course for now. It seems to be giving you a sensible introduction to `Java, and you’re going to need everything you’re learning. If this was chess you would be learning the names of each piece and how they ca move - not too...
  4. J

    From poker to coding

    Beyond the terminal... Yes. In real life programmers separate the logic (data entry/retrieval/calculation etc) from the user interface. They write the logic as a set of methods that you can call to get whatever it is done. They don't care what the UI was. Then they (or someone else) writes...
  5. J

    From poker to coding

    Hi. Congratulations on your progress. Here’s an idea - now you have encountered arrays, look back at the last code you posted and see how much better that could be with arrays. I’ll answer the point about adding a gui front-end later (but, in a word, yes)
  6. J

    JavaScript jw player stops after a couple hours

    When things break after running for some time in a consistent way, memory leaks are always an obvious suspect. Eg: in the swap method, if something somewhere is retaining a reference to the old playlist there’s the potential for running out of memory. Do you have the tooling to check if it’s...
  7. J

    From poker to coding

    Hi Nick. Are you looking for feedback on the code you are publishing?
  8. J

    JavaScript Can not figure out how streaming works

    It looks like a button click starts the stream handler, which sits in a loop getting frames from the camera, compressing them, and sending them as a simple HTTP response to the client
  9. J

    A tomato pasta recipe (in programming languages)

    Ok. Just fyi recent versions of Java have “virtual threads” that exist just in the jvm. They are designed to handle server situations with thousands of threads. There’s a whole load of api enhancements to manage and synchronise them.
  10. J

    I was designing web sites before the WWW

    Apple Lisa launched Jan 83, but I know what you mean. I was writing on-line real-time financial reporting systems in 1974 using teletypes and acoustic couplers to dial into our time-sharing service on Xerox Sigma 9’s Things were so much simpler then
  11. J

    Navigating the Java Web Development Universe: Crafting an In-Depth Roadmap for Success

    Very good point. Looking at a Java application, depending on your viewpoint Java is either the glue that holds it all together, or the foundation on which it’s built. The rest is APIs, frameworks, databases, HTML, IDEs etc. You’ll need some skills with all those to become a full stack...
  12. J

    A tomato pasta recipe (in programming languages)

    I think the problem with this model is the “break’. The idea that one thread can arbitrarily terminate/abort another thread sounds like a recipe for disaster. Who knows what state the aborted thread will be in - is the oil fully hot or not? And who’s going to deal with the InterruptedException...
  13. J

    Understanding how keystores or secrets manager work for software running on linux

    According to This it looks like default encryption is linked to the logged-on user id
  14. J

    Old computer programming books still useful?

    Knuth is still relevant, but the rest aren’t worth the paper they’re printed on. Languages, frameworks, libraries, toolkits etc are all evolving faster than publishers can get a book produced (and if they’re not evolving that fast then they’re dead). The only source of really current info is the...
  15. J

    A tomato pasta recipe (in programming languages)

    Java: The fork method returns an instance of Future that you can use to check its status, get any returned results, cancel it etc eg var hwBranch = scope.fork( … … hwBranch.cancel(true);
Back
Top Bottom