dynamic-languages

How do you know if a JavaScript library you are using will break your code after an upgrade?

So, you are using a bunch of javascript libraries in a website. Your javascript code calls the several APIs, but every once in a while after an upgrade, one of the API changes, and your code breaks, without you knowing it. How do you prevent this from happening? I'm mostly interested in javascript, but any answer regarding dynamically ...

Interface in a dynamic language?

Interface (or an abstract class with all the methods abstract) is a powerful weapon in a static-typed language such as C#, JAVA. It allows different derived types to be used in a uniformed way. Design patterns encourage us to use interface as much as possible. However, in a dynamic-typed language, all objects are not checked for their t...

Any way to determine which object called a method? [Ruby]

I'm hoping that Ruby's message-passing infrastructure means there's some clever trick for this... How do I determine the calling object -- which object called the method I'm currently in? ...

groovy variable function

I'm not even sure about how to title this qn. But, hope there is an easy way to do it in dynamic language like groovy. say I have a class Service, where I delegate the business logic. the methods in it are funA(), funB()... funX(). Now I have a controller class, where I call the service closure, which can be invoked like service.funA(...

Dynamic languages for embedded devices?

I need to deploy a dynamic language to a small embedded Linux device, and have difficulty finding the right one: I want to build a small web-application with this language (with a small framework like Sinatra or Camping ) and write some scripts for maintenance. I would prefer Ruby, as I have some experience in it, but after several days...

Aside from performance concerns, why is Java still chosen over Groovy/JRuby etc.?

[This is an empirical question about the state-of-the-art: I am NOT asking if Java is cooler or less cool than the dynamic languages that work in the JVM.] Aside from cases where performance is a main decision factor, do companies/developers still willingly chose Java over Groovy, JRuby or Jython? Edit: If the answer is "yes," why? P...

Lisp vs Python -- Static Compilation

Why can Lisp with all its dynamic features be statically compiled but Python cannot (without losing all its dynamic features)? ...

Is this an example for parametric polymorphism?

Hi i am educating myself oop principles. I would like to know if this is a correct example of Cardellis definition of parametric polymorphism. Please enlighten me. The example is in cfml's script based syntax. <cfscript> Parent = createobject("component","webapp.model.Parent").init(); Child = createobject("component","webapp.model.Chil...

Advantages/disadvantages of Python and Ruby

Possible Duplicate: What does Ruby have that Python doesnt, and vice versa? I know this is going to seem a little like all the other python vs ruby question out there, but I'm not looking specifically to pick one over the other all the time. My question is, essentially, why would you use one language over the other when you a...

Why does Apple use Objective-C for iPhone development? (App Store)

I'm interested to know your opinion on why Apple uses a language such as Objective-C for app development. Does Apple's app store allow apps written only in this language? Does apple even look at your source-code or does it just care of the binary output? I learned that most of their app rejection (in the app store) is based upon apps cr...

Self Modifying Code

I am recently thinking about writing self-modifying programs, I think it may be powerful and fun... So I am currently looking for a language that allow modifying program own code easily.. I read about C# (as a way around) and the ability to compile -and execute- code in runtime, but that is too hurting.. I am also thinking about assembl...

Why don't we require interfaces in dynamic languages?

Is it just because of dynamic typing we don't require a concept of interfaces(like in Java and C#) in python? ...

Getting started programming in dynamic languages in Android ((J)Ruby, Clojure...)

I've been looking around, and I can't seem to find any definitive answer or headway that seems "up to date". I've seen some interesting projects like Duby, and am looking into it a bit. I've seen Jruby unsuccessfully used to compile ruby into .dex. I've also been looking, independently, into Clojure and have realized that they might a...

What does a dynamic language like python give you? Coming from a c#/java background. show me the light!

Possible Duplicate: Whats with the love of dynamic Languages I'm coming from a c#/java background i.e. strongly typed, OOP language. I'm very much interested in Python, but I need to learn a little more about the advantages of a dynamic language. What power does it really give me? (in web applications). Can someone outline...

Converting an XML String into Code in C#

I have a reporting module in an ASP.NET webforms app (C#) that uses dynamic controls for the parameters for each report. These dynamic controls are built from an XML column in a SQL Server 2008 DB. XML structure: <Report Parameters> <Parameter> <Name>CustomerId</Name> <Control /> </Parameter> <Parameter> ...

Scripting Languages

I am looking for a good scripting language to link to my program. I am looking for 2 important attributes: Scripting language should be hard linked into the executable (not requiring 3rd party installations). This is important to me to simplify distribution. Scripting should allow some run-time debugging option (When running a script ...

Does a Clojure proxy always invoke super.method()?

While using Clojure proxies, fns passed to proxy should override existing methods or are they called in conjunction with super.method()? In the following code, RequestHandler.get() is invoked along with the proxy get []. ;see: http://github.com/paulosuzart/JTornado (ns org.ctornadoweb) (import '(org.jtornadoweb Web$RequestHandler)) (im...

Groovy Scripting - Regex Replacements - Code Review My Script

Use Case: Take an HTML file with comments in a specific format (a format I specified), and change it to a JSP page that fills in these special areas with custom JSP code. Simple Example: <html> <!-- start:custom-title-content --> <h1>this is the generic title content used to develop the HTML page</h1> <!-- end:custom-title-content --...

PHP: Code checker since PHP is a loose type / dynamic language?

I have a small PHP web-based application that is beginning to grow moderately in size. I'm starting to become concerned with managing my PHP code base, given PHP is a loosely/weak typed, dynamic language. How do others manage their code based for loosely/weak typed, dynamic languages? Do pre-parsers exist for PHP that allow me to runs...

Which is the most preferred language to start with dynamic languages

After working for on JAVA for a long time now i feel like also learn some other language just for a change. This time i want to spend some time learning and reading one of the dynamic languages. Which is the most appropriate one that covers most of the features offered by dynamic languages and the syntax which probably is fun and also ...