Jump to content
Sign in to follow this  
ylli122

ArmA 3 Scripting

Recommended Posts

Anyone arguing over whether C# or Java would be better has obviously never written anything in SQF.

Share this post


Link to post
Share on other sites
Anyone arguing over whether C# or Java would be better has obviously never written anything in SQF.

I agree, but overall, whether it'd have been C# or Java they went with, it'd have been a step forward.

Personally, I prefer Java, but only because I'm not a fan of .NET, either would be good for the task at hand here.

Share this post


Link to post
Share on other sites
no compile at run time (atleast not in a way familiar in sqf, and when I read it it didn't look like a pretty workaround) so no dynamic code :(

With Java you must compile code before using it. Dynamically loading compiled code is easy.

Reminder for "Java vs C#" talk: List_of_JVM_languages, C# for JVM

Share this post


Link to post
Share on other sites
I just realized Java doesn't have ability to preprocess, or compile at run time (atleast not in a way familiar in sqf, and when I read it it didn't look like a pretty workaround) so no dynamic code :(

Actually Java is a dynamic runtime language as opposed to C++ for example which is a static language, so it is very much suited to dynamic code.

Since Java 6 you can can dynamically create classes at runtime (which is incredibly powerful), see this blog here ...

http://www.javablogging.com/dynamic-in-memory-compilation/

Also once you understand interfaces and factories, you will see that you are able to do things you never dreamed of possible in a procedural based language.

http://docs.oracle.com/javase/tutorial/java/IandI/

http://javaboutique.internet.com/tutorials/factory/

Trust me ... you are going to love Java when you get used to it.

Share this post


Link to post
Share on other sites

Well I agree with the point that anything is better than SQS and SQF (even though I will stick to SQF for small stuff like moveincargo) I cannot wait to start learning Java. It'll be a new learning curve for me because I am an avid fan of .NET. :)

Share this post


Link to post
Share on other sites

.NET or Java programming in the sense of the huge libraries, virtual machines, and environments we use in our day jobs is probably not relevant here. I'm guessing they are just using the Java language for writing scripts, which as some have mentioned, would be a significant improvement over sqs and sqf. At this level, the differences between C# and Java are not that important, in my opinion, and I've used both professionally.

What I'm more concerned about anyway is the behavior and documentation of the game API. Please let there be clarity, consistency, and control for multiplayer scripting!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×