Should I choose scripts or compiled code for small tasks?

I am a Java programmer and I like my compiler, static analysis tools and unit testing modules as tools that help me quickly provide reliable and efficient code. JRE is almost everywhere, wherever I work, too.

Given this situation, I see no reason why I would ever want to use scripting scripts, vb scripts, etc., no matter how small the task is, if I wear one of my other hats, such as my cool one black federation of the system administrator.

I don't wear other hats too often , under what circumstances should I choose scripts to write compiled code?

+5
source share
11 answers

Everything that you consider the most effective for you!

I had an employee who seemed to use a different language for each task; Perl for fast word processing, PHP for small internal web applications, .NET for our main product, cygwin for the file system. He preferred to use the technology that is most specific to this task.

Personally, I think that switching context between technologies is painful. My daily work is in .NET, so pretty much I find it. In most tasks, I find it more efficient to bring down something in C # using SnippetCompiler than I could hack into PowerShell or a scripting environment.

+2
source

Java, JRE - , , , . , perl python, . perl python, , .

+2

, , , , . , , , .

+2

, . , IDE, script .., script , script. Java-, :)

+1

, . . script , . Java, , Java , groovy (http://groovy.codehaus.org/). , java, java-.

+1

( ), . - , . , .

, , , , .

+1

Java, .

, .

. Java-, bash .

+1

IDE, , ..

0

, " , ". Java , . , . , . , .

Ruby , - , , ( Gems) , JAR - . , .

0

, . , : " , - ,...", , , , .

, , python, ruby ​​ perl, . , script, .

0

I use scripting languages ​​to write programs that are not expected to be supported outside of multiple executions. Most of these languages ​​are lightweight on the boiler plate syntax and have REPL. Both of these features provide rapid prototyping.

Since you already know Java, you can try JVM languages ​​like Groovy, JRuby, BeanShell, etc. Scala has a much lighter syntax than Java, has REPL, is statically typed and runs on the JVM - you can give this a shot too.

0
source

All Articles