As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I want to write a Mediation Software in Java and I want to know which design patterns I should use to do this.
NB : A Mediation Software is used in the domain to telecommunication to collect and distribute file to differents outputs via FTP.
Thank you.
Don't start by looking for design patterns. Start by making the requirements very clear and then considering the objects and responsibilities that emerge from satisfying the requirements. As you improve your object design you start to find a need to control dependencies and increase flexibility, and at that point you being to see design patterns.
For example: suppose you receive several different data formats and need to transform them in the mediation. Then you might have some transformer classes able to do say JSON->XML, CSV->XML, SpecialData->XML. You begin to see commonality between those transformer classes and how instances are created. Then patterns such as Facade or AbstractFactory might emerge.
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Our current system is based on a Spring/Hibernate/Java/MySQL stack. We have a relationship with a company for which we will end up doing a portion of the IT work. They are currently building a system using an outside vendor which is based on PHP/MySQL. I would like to make an argument that they should reconsider and switch to a Java-centric platform. My main argument is that we can utilize our current (Java-based) skillset for system maintenance and enhancements, instead of having a system which requires knowledge of both PHP and Java. However, they have asked if there is any technical reason why this couldn't happen.
It would be great if I could bring some technical arguments to table which show the two platforms are incompatible. However, I've googled the differences, and as far as I can tell, there wouldn't be any particular technical issues. For example, we could use web services for the systems to communicate.
So, the question is, is there anything one could say about PHP which makes it either incompatible with or just not as "good" as Java? E.g security, scalability and other enterprise considerations? I know it's a vague question, but it would be very helpful to get some input.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Anyone know any existing library in the market? or open source project? The library should be able to convert picture or any images to cartoon-like image.
Please suggest me if you have use anything like that before.
Depends on what you mean by cartoon-like. Sometimes, applying some filters and doing some other minor operations might give you a decent result. If that is what you are after, you could use something like JavaCV (which is a wrapper for OpenCV.
This library should provide you with access to some graphical tools which should allow you to manipulate the image to obtain what you are after.
If on the other hand you are after a caricature type of cartoon, I think that you would need to use some AI techniques since caricatures usually involve the exaggeration of some physical feature, and for that, you would need AI to extract the said feature.
Finally, you can take a look at this previous SO thread which contains some other pointers on how you can convert an image to a cartoon.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
Subjective Logic is fundamental as part of my next project, and I was just wondering if there are any implementations already out there. I've read some things (not a lot) about the operators but I'm still unsure as to how it is implemented.
Preferably I would like a C/Java/Go/Python implementation
I dont see any example codes for subjective logic after a google search. This concept is more into AI and logic based languages like Prolog will have to be employed. Also if you have a rule evaluation engine (like CLIPS rule-engine as mentioned here), then good to go.
There are couple of algorithms proposed which leverage subjective logic and can be coded in java or C right away.
The demo page contains a Java applet which can be used to visualise networks of trust using subjective logic. While no source can be obtained for the applet up front, the applet JAR file can be decompiled using a program such as JD (java decompiler) and from there reverse engineered.
The code somewhat provides a library and is the only example of subjective logic in code I've seen.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I've built a private messaging system on a site, and I want to implement a spam filter, preferably in Java.
So ... I'm interested if there a Java library implementing this already, or if I have to start building my own. What I found so far is this Bayesian Filtering: http://www.shiffman.net/teaching/a2z/bayesian/
Are there any other good Java libraries??
What do you recommend me?
Thanks
PS: the system is using private messages between site members and is not an email system.
Depends on the type of spam. Bayesian is good against off-topic messages, but if the spam is very similar to legit messages, you might want to set up some sort of sender reputation. The way SO works is a good example; you need to earn points by participating before you can use the more powerful features of the site. This could be subverted if spammers were to somehow break into the computers of high-rep users, or otherwise manage to hijack their reputation.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Anybody knows a good book that can help me understand test driven programming and how it is done in jee6? Ive never really used that approach(or at least correctly). I am very curious abut this topic i would like to give it a try in my java web projects.
So if any good literature recommendation, please let me know.
You don't need a book for that, to my opinon. You need to know, how to create and run unit tests (for different programming languages and frameworks).
The idea of test driven development (TDD) is fairly simple:
read the requirements (no requirements -> no TDD)
write a test, that tests the requirements. The test will fail initially.
write code until the test passes (and don't write any extra stuff!)