4 ms·
I love C# but I would start new projects on Java exactly for that reason. As soon as you need something special it's most likely available on Java but often not
by maxxxxx 9y ago
I love C# but I would start new projects on Java exactly for that reason. As soon as you need something special it's most likely available on Java but often not on C#.
- Retric 9y agoThere are a lot of ways outside of the C# sandbox so you can always just call Java code if you need it.
- maxxxxx 9y agoHow?
- Retric 9y agoCall a Web service, call a console application, read/save a file to disk, use a database, SOAP, etc etc.
- maxxxxx 9y agoSure. Not sure if it's worth going through that effort though. Especially if you need a tight integration with the Java library.
- Retric 9y agoYea, if you need to heavily leverage library X then use whatever it's written for. However, if you simply need a way to generate a few simple PDF's or something then that's a different story. Personally, I prefer to use the most productive language for a project I can get away with because the largest risk is you are simply never going to finish it.
- manigandham 9y agoJNI bindings work and allow C#/.NET to call into Java libraries without a problem. It's a standardized interface for Java interop, a good example is how Apache Ignite runs in the .NET version which launches a JVM process and communicates with it from the CLR.
- justboxing 9y ago> As soon as you need something special it's most likely available on Java but often not on C# Like what? Care to elaborate?
- maxxxxx 9y agoI did a project where full text search was the main feature. At that time Lucene was the number one project for that. There was a C# version but totally outdated. It was a really difficult situation with no good choices: Port the Java code myself? Wrap in into some kind of server? Move to Java? My conclusion was that next time I'd be better off learning Java. C# seems better but there is a lot of cool stuff written in Java so it's probably not that bad. When I look at machine learning and AI it seems Python and Java also are the best options with everything else way behind.
- dep_b 9y agoSQL server has that, I think it was even the vanilla free version. And it was fast. Going from 10 second queries to instant again. Can't tell you how it compares to Lucene.
- maxxxxx 9y agoMy project was a little more involved than what SQL Server functionality provides. For most use cases SQL Server full text or SOLR would be sufficient but this was very researchy with writing custom analyzers and scorers (not sure if I get the terminology still right).
- justboxing 9y ago> At that time Lucene was the number one project for that Ha. I remember this. My co-worker was trying to do the same in .Net, but while he was looking the Lucene port to .net was well underway, so you were probably 6 months to a year ahead of him. I guess all I can say is that you are a pioneer. Most of the special things in Java eventually get ported to .Net.