Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have looked around, and there are no solid guidelines to converting Object Orientated C++ to Java. Most are references to conversion tools.
My question is what are the steps one should take to not get overwhelmed and lost, especially for heavily OO projects.
For example, given one method that accomplishes a task. That method is called, which is dependent on several other cpp, and those helper methods are also dependent on other cpp files, and so on. How should this be addressed?
What are techniques that can be used to break it down, while properly combining .hpp and .cpp?
I understand JNI can be used, however, it is desired to have only Java code, unless something can literally only be done in C++
Tips, suggestions, and ideas will be much appreciated.
PLEASE do NOT mark this as a DUPLICATE, there are only questions posted in respect to specific code, or using conversion tools, not for general techniques.
Also, if this is a terrible question, let me know, I'll take it down, no need to thumb it down. Thank you.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I work on Android and Java almost all the time. I am still at an intermediate level of experience in both. But whenever I code, I try follow and implement all the OOP concepts while programming even for small applications or programs.
I have a question that does creating a METHOD for each functionality (data passing, data retrieval, calling subroutines in other classes,
activities) is a good practice or a bad practice? And does creating
lot of methods(modules) degrade performance?
Any sort of help or explanation is truly appreciated.
Thanks in advance.
According to this and this, making more and more methods for everything is not a good idea in Android. In their words, "virtual method calls are expensive". They also recommend avoiding excessive use of design patterns and class hierarchies; see here and here.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I have a question for you concerning Java. I am basically a Java user and did most of my work with it. However, in the machine learning classes I took in college, we used mostly python with the scikit-learn and numpy packages.
Now I want to do a project where I crawl data from the web, store it in SQL databases, and then do machine learning on this data. Maybe some of you have experience with those things and share some of it? I mean, of course it is possible to do these things with java, but maybe you have had some particular experiences on why I should use something else or what to consider?
I am happy for all your thoughts :-)
Have a great weekend!
It turns out that programming language and database implementation are secondary problems. Think first about the machine learning you want to do. Review the existing packages (in any language) and pick one according to how well it fits the needs of the business problem you are trying to solve. Then work with whatever language is most convenient for that package. You will probably find that no single language is suitable for all parts of the problem; you will end up gluing together Java, Python, R, shell scripts, etc, to make a complete solution, and there's nothing wrong with that. Consider that your job is problem solving instead of programming in a specific language and go from there.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
It might sound stupid, but i decided to take the challenge to program the Translation Algorithm with help of OOP NetBeans - Java, having only basic knowledge of Java, and the theory only in the Translation Algorithm (Compiler).
I am here to ask for your assistance, if somehow any of you did something like Translation from one programming language into another I happy if you could provide me with the links to the information you've used or set me on to the right direction so I could start correctly!
Thank you in Advance
Best
Armani
Theory of compilation is a huge field of research, that among others include formal languages, graph theory, low level optimizations and more.
A good place to start learning about it is the Dragon Book .
If you are using java, a useful tool that helps you do most of the front-end tasks of a compiler is JavaCC
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I am working with Java at my current day job. When I learned programming, I learned C++, but haven't touched it (or had to) since 2002. I don't even remember how to do the simplest of things.
Lately, my work has been expressing a need for a C++ application built for windows.
I am looking for books/articles/blog-posts (resources) that:
teach the basics of C++?
for n00bz?
for someone who's already been programming?
teach the differences between C++ and Java?
teach the basics of the Visual .* platform?
teach the specificities of building with Visual Studio?
Why ask the question?
This question was brought on by the fact that my first program is 5 lines of C++ (sourced from documentation with a dependency on a DLL.) It's quite intimidating to figure out how to build it in the way I'd like to.
That being said, there are many elements in the snippet that I don't understand.
I definitely see that the original need is small, but I'd like to get some background on the platform/subject before I embark on even some simpler development (like the snippet) in the future.
Thanks in advance.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
Greetings!
I was wondering if it's possible to make music-based games in Java? I've played games like Beat Hazzard and Audiosurf and stuff like that and I was considering making one like that - that dynamically loads songs the user selects and finds pieces of information (like bass notes) and does something in return.
I don't even know where to start, but I have found ways to play music (through certain classes others provide or the Java Sound API). Anybody ever done anything like this before? Any help is appreciated.
Of course it is. I think the term you should be Googling for is Java Signal Processing and analysis.
There is a related SO post on this as well as numerous other Java libraries and source examples (see the Google search results from above.) Here is a page with applets that perform a variety of signal analysis. Might not be exactly what you need but should be a start. And MARF, from the SO post mentioned above, looks VERY promising!