Questions tagged [dynamic-languages]
The dynamic-languages tag has no usage guidance.
18 questions
11
votes
9
answers
6k
views
At what point does using a statically typed language gain more benefit than using a dynamically typed language with optional type declaration? [closed]
In my understanding, the strengths of not using type are flexible and newbie-friendly, and the strengths of using type are easier to debug and reading code. However now you can use types on ...
0
votes
1
answer
83
views
Structuring a Compiler in a Dynamic Language (JavaScript)
For learning purposes, I'm trying to build a compiler in JavaScript for a tiny custom language and turn it into WASM. So far, I've got a lexer and parser, that turn my code into an AST, my question is ...
0
votes
4
answers
1k
views
What makes (or why is) a language Server-Side?
Since Swift 3 is boasting its new capabilities, it occurs to me that I don't actually know why Swift is server-side. I've been hunting "Full Stack" and the listings have MEAN, they have C#/ASP, some ...
4
votes
5
answers
641
views
How are mixed, sizeless lists implemented in higher level languages?
Most higher level (or scripting) languages out there have data structures that can hold different types of data (like numbers, strings and even functions) in the same structure, and you can also add ...
5
votes
2
answers
2k
views
Does this code follow duck typing?
The principle of duck typing says that you shouldn't care what type of object you have - just whether or not you can do the required action with your object. For this reason the isinstance keyword is ...
23
votes
4
answers
2k
views
Why would many duck-typed dynamic programming languages use a class-based approach instead of prototype-based OOP?
Since quite many dynamic programming languages have the feature of duck typing, and they can also open up and modify class or instance methods at anytime (like Ruby and Python), then…
Question 1)
...
1
vote
2
answers
1k
views
What's the benefit of having everything as an object in dynamically typed programming language? [closed]
modern dynamic programming languages like Python, Ruby and Javascript all take the approach of treating everything as an object, what's the benefit of this approach, and what's the curse of it?
...
-1
votes
1
answer
1k
views
Is there a purely technical term for 'monkey patching' [closed]
EDIT The original title of the question was Is there a non-derogatory term for 'monkey patching'. As I have learned that the term is actually not derogatory, or is at least not meant to be, I changed ...
249
votes
6
answers
81k
views
Why do dynamic languages make it more difficult to maintain large codebases? [duplicate]
Large codebases are more difficult to maintain when they are written in dynamic languages. At least that's what Yevgeniy Brikman, lead developer bringing the Play Framework to LinkedIn says in a video ...
1
vote
2
answers
522
views
How to write comments to explain the "why" behind the callback function when the function and parameter names are insufficient for that?
How should I approach writing comments for callback functions? I want to explain the "why" behind the function when the function and parameter names are insufficient to explain what's going on.
I ...
121
votes
8
answers
14k
views
Why does the US government disallow dynamic languages for secure projects?
I know some people that are currently working on a project for the US military (low security level, non-combat human resources type data).
An initial state of the project code was submitted to the ...
8
votes
3
answers
942
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
5
answers
580
views
Is this how dynamic language copes with dynamic requirement? [closed]
The question is in the title. I want to have my thinking verified by experienced people. You can add more or disregard my opinion, but give me a reason.
Here is an example requirement: Suppose you ...
1
vote
1
answer
173
views
Is it justified to use project-wide unique function and variable names to help future refactoring?
Refactoring tools (like ReSharper) often can't be sure whether to rename a given identifier when, for example refactoring a JavaScript function. I guess this is a consequence of JavaScript's dynamic ...
11
votes
5
answers
5k
views
Is Liskov Substitution Principle incompatible with Introspection or Duck Typing?
Do I understand correctly that Liskov Substitution Principle cannot be observed in languages where objects can inspect themselves, like what is usual in duck typed languages?
For example, in Ruby, if ...
3
votes
2
answers
443
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, ...
4
votes
4
answers
655
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?
57
votes
11
answers
5k
views
IDEs for dynamic languages - how far can you get?
I find it frustrating how the speed of development that dynamic languages should offer gets significantly compromised by the lack of completions and other assets that IDEs would give you in their ...