Questions tagged [dynamic-languages]

Dynamic languages are a class of high-level programming languages whos behaviors is determined at runtime rather than compile time.

157 questions
23
votes
8 answers

Learning Python for a .NET developer

I have been doing active development in C# for several years now. I primarily build enterprise application and in house frameworks on the .NET stack. I've never had the need to use any other mainstream high level languages besides C# for my tasks,…
Abhijeet Patel
  • 6,562
  • 8
  • 50
  • 93
21
votes
2 answers

What were the (then) unpublished optimizations that Steve Yegge referred to in "Dynamic Languages Strike Back"?

I was reading the transcription of Steve Yegge's Dynamic Languages Strike Back presentation, when I noticed this comment when he begins to discuss trace trees: I'll be honest with you, I actually have two optimizations that couldn't go into this…
Adam Paynter
  • 46,244
  • 33
  • 149
  • 164
20
votes
4 answers

dynamic object construction in javascript?

When I want to call a function in javascript with arguments supplied from elsewhere I can use the apply method of the function like: array = ["arg1", 5, "arg3"] ... someFunc.apply(null, array); but what if I need to call a constructor in a similar…
einarmagnus
  • 3,507
  • 1
  • 21
  • 31
18
votes
5 answers

Why do dynamic languages like Ruby and Python not have the concept of interfaces like in Java or C#?

To my surprise as I am developing more interest towards dynamic languages like Ruby and Python. The claim is that they are 100% object oriented but as I read on several basic concepts like interfaces, method overloading, operator overloading are…
Perpetualcoder
  • 13,501
  • 9
  • 64
  • 99
18
votes
9 answers

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?
16
votes
3 answers

Using Groovy MetaClass to overwrite Methods

I have a POJO that uses a service to do something: public class PlainOldJavaObject { private IService service; public String publicMethod(String x) { return doCallService(x); } public String doCallService(String x) { …
14
votes
7 answers

High-level languages for out-of-the-box GUI desktop application programming

After I discontinued programming in C++ while entering into web authoring I was spoilt by PHP's high level constructs like hash tables or its dynamic, weak typing. I remembered the angst of C/C++ pointers and the maze of low-level Win32 API handles…
13
votes
4 answers

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)?
yodie
  • 431
  • 5
  • 14
13
votes
7 answers

What are the features of dynamic languages (like Ruby or Clojure) which you are missing in Scala?

What do you lose in practice when you choose a statically-typed language such as Scala (or F#, Haskell, C#) instead of dynamically-typed ones like Ruby, Python, Clojure, Groovy (which have macros or runtime metaprogramming capabilities)? Please…
Alexey
  • 9,197
  • 5
  • 64
  • 76
12
votes
4 answers

Any need for dependency injection in Dynamic Languages?

In order to write testable C# code, I use DI heavily. However lately I've been messing around with IronPython and found that as you can mock any methods/classes/functions etc... you like, the need for DI is gone. Is this the case for dynamic…
Finglas
  • 15,518
  • 10
  • 56
  • 89
11
votes
3 answers

advantages of play framework for people coming from php / ruby / python

One of the strongest selling points of play framework is it's development cycle, just fix the code, go back to your browse, hit reload, and go one, all without the write, compile, deploy, hassle typical of j2ee web development. Nevertheless, for web…
opensas
  • 60,462
  • 79
  • 252
  • 386
11
votes
6 answers

Can you have too much of “dynamic” in dynamic languages?

In last few months I have been making a transition from Java to Groovy and I can appreciate many of the benefits it brings: less code, closures, builders, MOP that in the end makes framework like Grails possible, ease with mocking when writing…
Dan
  • 11,077
  • 20
  • 84
  • 119
10
votes
13 answers

Python/Ruby as mobile OS

I was wondering why smartphone/mobile device OSs are not written to allow dynamic languages as the language of choice? iPhone uses Objective-C, Google Android uses Java, Windows Mobile uses any manner of .NET language. What would be the reasoning…
Tacoman667
  • 1,391
  • 9
  • 16
10
votes
3 answers

Simulating duck typing in Java

The problem: I'd like to be able to generically access in Java any property/field on a Java ojbect similarly to how a dynamic language (think Groovy, JavaScript) would. I won't know at the time I'm writing this plumbing code what type of object it…
mckamey
  • 17,359
  • 16
  • 83
  • 116
10
votes
5 answers

Is Automatic Refactoring Possible in Dynamic Languages?

Perhaps I am limited by my experience with dynamic languages (Ruby on Netbeans and Groovy on Eclipse), but it seems to me that the nature of dynamic languages makes it impossible to refactor (renaming methods, classes, pushing-up, pulling-down,…
Dan Rosenstark
  • 68,471
  • 58
  • 283
  • 421
1
2
3
10 11