Dynamic Typing is a property of a programming language where type checks are performed mostly at run time.
-5
votes
1answer
122 views
Which is easier: using static language dynamically or dynamic language statically? [closed]
In your experience, is it easier to utilize dynamic features in a static language (e.g., via dynamically loaded libraries or variant data types) or static features in a dynamic language (e.g., via ...
7
votes
3answers
200 views
Dynamic typing function arguments - how to keep readability high?
Dynamic typing newbie here, hoping for some wizened words of wisdom.
I'm curious if there is a set of best practices out there for dealing with function arguments (and let's be honest, variables in ...
3
votes
6answers
438 views
In Java, would you sacrifice type safety for a nicer programming interface
When and why would you generally sacrifice typesafety for a nicer programming interface?
Let me give you an example: if you had the choice between two event aggregators, which one would you prefer ...
8
votes
2answers
342 views
Why build data models in a dynamic language?
Background
This question stems out of an architectural discussion we had at work.
For the current project we are using Python and an object oriented database. There are input services that we ...
6
votes
3answers
223 views
Is changing the type of a variable partway through a procedure in a dynamically typed language bad style?
In Python (and occasionally PHP) where variables do not have fixed types, I'll frequently perform 'type transformations' on a variable part-way through my code's logic. I'm not (necessarily) talking ...
84
votes
16answers
21k views
What functionality does dynamic typing allow?
I've been using python for a few days now and I think I understand the difference between dynamic and static typing. What I don't understand is under what circumstances it would be preferred. It is ...
9
votes
5answers
596 views
Are dynamic languages at disadvantage for agile development?
From what I've read agile development often involves refactoring or reverse engineering code into diagrams. Of course there is much more than that, but if we consider the practices that rely on these ...
2
votes
2answers
176 views
New insights I can learn from the Groovy language
I realize that, for a programmer coming from the Java world, Groovy contains a lot of new ideas and cool tricks.
My situation is different, as I am learning Groovy coming from a dynamic background, ...
2
votes
4answers
399 views
Where does Microsoft currently stand on dynamic languages? [closed]
With languages Python and Ruby still having a good foothold in the market what is Microsoft's current stance on dynamic languages?
Does Microsoft have any plans to incorporate or invent it's own ...
0
votes
1answer
319 views
Dynamically load and call delegates based on source data
Assume I have a stream of records that need to have some computation. Records will have a combination of these functions run Sum, Aggregate, Sum over the last 90 seconds, or ignore.
A data record ...
5
votes
3answers
239 views
Dynamic typing across the whole technology stack - where to enforce data validity?
Over the past year or two, I've been playing with newer technologies in my side projects. As a web developer, I've gone from the following (and still the following, at work):
The 'classic' technology ...
3
votes
4answers
482 views
Higher coding standards for dynamic languages?
Due to the inherent risks associated with using dynamic languages (e.g. Python, Ruby) carelessly, what (if any) standards should be imposed on production code written in these languages?
9
votes
2answers
266 views
Developing a dynamic language
I have created several hand written compilers for very simple languages but now I want to try my hand at developing a dynamic language, similar to a simplified Python or Ruby. However, it was easy ...
2
votes
2answers
185 views
In javascript and other languages which lack a compiler, is unit testing a good method to ensure correct syntax and variable naming?
I've been working on a medium sized web application that makes very heavy use of javascript. I tend to introduce common errors per 10 lines of code with either an unknown variable name or function ...
5
votes
5answers
664 views
When and why should one create classes at runtime?
I have read many articles on the creation of dynamic types and classes at run time. For example, the TypeBuilder class in C# lets one create dynamic types. Python has this type function by which one ...
3
votes
5answers
664 views
Are design patterns independent of programming languages?
I have been recently working on Objective C and came across use of Delegate pattern.
I had seen all the patterns theoretically in Java, thanks to the Head First book.
But at times looking at ...
24
votes
8answers
1k views
What is the supposed productivity gain of dynamic typing?
I often heard the claim that dynamically typed languages are more productive than statically typed languages. What are the reasons for this claim? Isn't it just tooling with modern concepts like ...
5
votes
5answers
295 views
Type-clarifying comments and type checking in dynamic languages
I often feel that there's something wrong when I code blocks such as:
function foo (arg){ // arg: a SomeClass object
...
}
or
function foo (arg){
if (Object.prototype.toString.apply(arg) ...
1
vote
3answers
522 views
Warning-free Objective C code
I am currently creating my first iPhone app in Objective C and getting a lot of warnings because I've in many places taken advantage of the fact that Objective C is a dynamically typed language. I get ...
7
votes
5answers
510 views
What is better for prototyping: a statically-typed language, or a dynamically-typed one?
When working out the design for a new system, is it better to start with a statically-typed language (like Haskell), or a dynamically-typed language (like Ruby)?
Arguments I can think of:
With a ...
16
votes
4answers
1k views
Architectural differences between dynamic and static languages
Area there any major architectural differences when designing applications that will be built on static languages (such as C# or Java) and dynamic languages (such as Ruby or Python)? Wich are the ...
10
votes
2answers
447 views
What is the relationship between the Dynamic Language Runtime and C# 4.0?
Let's say I wanted to create a dynamic language compiler/interpreter, a Scheme interpreter perhaps, on the .NET platform as it exists today. Would I be better off using the Dynamic Language Runtime ...
5
votes
4answers
432 views
Can static and dynamically typed languages be seen as different tools for different types of jobs?
Yes, similar questions have been asked but always with the aim of finding out 'which one is better.'
I'm asking because I came up as a dev primarily in JavaScript and don't really have any extensive ...
17
votes
3answers
454 views
Are there any empirical studies on the effect of different languages on software quality?
The proponents of functional programming languages assert that functional programming makes it easier to reason about code. Those in favor of statically typed languages say that their compilers catch ...
5
votes
3answers
363 views
C# Dynamic types
I just read a chapter in a programming book about Dynamic types. Although they are quite neat I cant think of a single real world example where I would use them. Does anyone here actually use them and ...
8
votes
10answers
1k views
Is dynamic language always interpreted?
Looking at most (if not all) dynamic languages [i.e Python, PHP, Perl and Ruby], they are all interpreted. Correct me if I'm wrong. Is there any example of dynamic language that goes through ...
5
votes
3answers
345 views
How should I program with dynamic typing language even no type is noted on documentation?
I lived long time on static typed language world. All types were explicitly noted on each variables and arguments. Now I have to use some kind of dynamic typing language. (Smalltalk) The problem is ...
11
votes
10answers
984 views
Why dynamically typed languages do not let the developer specify the type?
The dynamically typed languages I know never let the developers specify the types of variables, or at least have a very limited support for that.
JavaScript, for example, doesn't provide any ...
6
votes
4answers
763 views
How does thinking on design patterns and OOP practices change in dynamic and weakly-typed languages?
There is a fairly helpful question already along these lines ("Non-OOP Design Patterns?"), but I am more curious about a transitional point of view for someone just getting started with dynamic and ...
19
votes
21answers
4k views
Is type safety worth the trade-offs?
I began coding in in Python primarily where there is no type safety, then moved to C# and Java where there is. I found that I could work a bit more quickly and with less headaches in Python, but then ...
4
votes
5answers
810 views
Learning to implement dynamically typed language compiler
I'm interested in learning how to create a compiler for a dynamically typed language. Most compiler books, college courses and articles/tutorials I've come across are specifically for statically typed ...
1
vote
2answers
184 views
I have heard “dynamic” changing during Runtime? Whats that?
i heard that these(say for example Groovy) languages have the capability of changing the variable name or call methods dynamically in runtime! What you meant by dynamic languages? And what is the real ...
11
votes
9answers
1k views
Dynamic vs Statically typed languages for websites
This statement suggests that statically typed languages are not ideal for web sites:
I’ll contrast that with building a
website. When rendering web pages,
often you have very many components
...
6
votes
4answers
445 views
How does one learn to program (and think) the Ruby way?
Why I Ask this Question:
I've just starting to learn Ruby (and by extension IronRuby since I work in the Microsoft world). I picked up IronRuby Unleased to teach me the basic syntax of Ruby, and any ...
12
votes
3answers
749 views
How do you navigate and refactor code written in a dynamic language?
I love that writing Python, Ruby or Javascript requires so little boilerplate. I love simple functional constructs. I love the clean and simple syntax.
However, there are three things I'm really bad ...
4
votes
3answers
1k views
What can I use instead of Interfaces in Ruby (or any other dynamic language)?
My goal is to define contracts between classes.
I like duck typing and all but I'd like also to define an interface between different layers of my application to clearly define which are the method ...
8
votes
13answers
3k views
Would a statically typed alternative to JavaScript on webpages be practical?
Preference for dynamic and static typing is largely a matter of taste, and different people find them more or less suitable in different situations.
My question is, would it be technically possible ...
35
votes
5answers
2k views
Dynamically vs Statically typed languages studies
Do there exist studies done on the effectiveness of statically vs dynamically typed languages?
In particular:
Measurements of programmer productivity
Defect Rate
Also including the effects of ...
24
votes
9answers
2k views
Do dynamic typed languages deserve all the criticism? [closed]
I have read a few articles on Internet about programming language choice in the enterprise. Recently many dynamic typed languages have been popular, i.e. Ruby, Python, PHP and Erlang. But many ...
