dynamic-languages Questions

13

I recently had the necessity of rewriting a javascript function in javascript, dynamically. The ease with which I did it, and how fun it was, astounded me. Over here I've got some HTML: <div i...
Bacteriostat asked 13/7, 2009 at 13:18

26

Solved

I'm not that into dynamic programming languages but I've written my fair share of JavaScript code. I never really got my head around this prototype-based programming, does any one know how this wor...
Pneumatic asked 21/2, 2009 at 12:31

14

Solved

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 allows modifying a program's own code easily. I read...
Osvaldooswal asked 16/6, 2010 at 21:59

9

Solved

In Javascript it would be: var newObject = { 'propertyName' : 'propertyValue' }; newObject.propertyName; // returns "propertyValue" But the same syntax in Python would create a dictionary, and t...
Dimpledimwit asked 7/10, 2009 at 0:43

4

Solved

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.ap...
Ankylosaur asked 6/10, 2010 at 10:55

4

Solved

Are you aware of any DDD efforts in a dynamic language ? Practical resources on DDD tend to decrease quite dramatically when straying from enterprise-oriented solutions (a google search exlu...
Siphonophore asked 17/11, 2009 at 12:34

2

Solved

Computers can only understand machine language. Then how come interepreters execute a program directly without translating it into machine language? For example: <?php echo "Hello, World!" ; ...

3

Solved

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 ty...
Hospitable asked 16/9, 2011 at 16:0

5

Solved

I'm hoping that Ruby's message-passing infrastructure means there might be some clever trick for this. How do I determine the calling object -- which object called the method I'm currently in?
Anecdotal asked 24/4, 2010 at 3:43

9

Solved

Someone on the Herding Code podcast No. 68, http://herdingcode.com/herding-code-68-new-year-shenanigans/, stated that IOC containers had no place with Python or Javascript, or words to that effect....
Oddball asked 16/2, 2010 at 14:47

5

Solved

I'm still kind of new to Objective-C and I'm wondering what is the difference between the following two statements? [object performSelector:@selector(doSomething)]; [object doSomething];
Hypesthesia asked 29/9, 2009 at 15:1

2

Solved

I am learning about operating systems and the thing that I do not understand exactly are heaps and stacks. I know the benefits and how each works, but in the case of dynamic languages I can not fig...
Swindle asked 14/6, 2014 at 19:1

3

Solved

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. Des...
Sweetbread asked 21/4, 2010 at 22:9

6

Solved

Why are programs that have dynamically typed languages usually interpreted rather than compiled?

9

Solved

What are the advantages and limitations of dynamic type languages compared to static type languages? See also: whats with the love of dynamic languages (a far more argumentative thread...)
Naughton asked 24/9, 2008 at 4:5

5

Solved

I suppose this could apply to any dynamic language, but the one I'm using is JavaScript. We have a situation where we're writing a couple of controls in JavaScript that need to expose a Send() func...
Cilo asked 14/9, 2009 at 4:4

17

In static languages like Java you need interfaces because otherwise the type system just won't let you do certain things. But in dynamic languages like PHP and Python you just take advantage of duc...
Eleaseeleatic asked 18/9, 2008 at 10:59

1

Solved

There are a lot of questions on SO about static vs dynamic typing, but I haven't found a lot about a language having both. Let me explain. It seems that dynamically typed languages have an e...
Fanning asked 15/11, 2012 at 14:49

1

Solved

In dynamic languages, how is dynamically typed code JIT compiled into machine code? More specifically: does the compiler infer the types at some point? Or is it strictly interpreted in these cases?...
Urbane asked 28/8, 2012 at 18:57

5

Solved

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 (renam...
Barber asked 23/2, 2010 at 11:14

3

Solved

In Python, you can assign an arbitrary attribute from outside the defining class: class Profile(models.Model): user = models.OneToOneField(User) name = models.CharField(max_length=140) p = Pro...

3

I'm currently writing a JavaScript compiler in ANTLR+Java. I've read questions here on Stack Overflow on how to proceed with the execution - and the answer is always that it would be way too hard ...

3

Is it possible to write a simple and fast function in C# that will execute arbitrary methods from a string? For example, if I set MyString="MessageBox.Show("Some Message")" and then call ExecuteStr...
Codification asked 21/1, 2010 at 5:29

9

Solved

Ruby is slow at certain things. But what parts of it are the most problematic? How much does the garbage collector affect performance? I know I've had times when running the garbage collecto...
Hidebound asked 18/6, 2009 at 8:28

4

Solved

can anybody explain C C++ Java regarding dynamic typed or static typed language. I read somewhere that C C++ and Java are all static language. But I recall there are other opinions about these. V...
Stephanistephania asked 6/3, 2011 at 0:27

© 2022 - 2024 — McMap. All rights reserved.