Skip to main content

Questions tagged [dynamic-languages]

12 votes
9 answers
6k views

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 ...
Ooker's user avatar
  • 335
0 votes
1 answer
95 views

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 ...
Pandawan's user avatar
0 votes
4 answers
1k views

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 ...
Stephen J's user avatar
  • 155
4 votes
5 answers
712 views

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 ...
user6245072's user avatar
5 votes
2 answers
2k views

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 ...
overexchange's user avatar
  • 2,325
25 votes
4 answers
3k views

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) ...
iceX's user avatar
  • 711
1 vote
2 answers
2k views

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? ...
Boyu Fang's user avatar
  • 121
-1 votes
1 answer
2k views

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 ...
kostja's user avatar
  • 419
250 votes
6 answers
82k views

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 ...
Jus12's user avatar
  • 2,531
1 vote
2 answers
589 views

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 ...
snowmantw's user avatar
  • 143
121 votes
8 answers
14k views

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 ...
Patrick's user avatar
  • 2,912
8 votes
3 answers
970 views

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 ...
Alexandr Kurilin's user avatar
3 votes
5 answers
624 views

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 ...
Amumu's user avatar
  • 834
1 vote
1 answer
179 views

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 ...
Attila Kun's user avatar
11 votes
5 answers
6k views

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 ...
Alexey's user avatar
  • 958

15 30 50 per page