All Questions
Tagged with dynamic-languages programming-languages
4 questions
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
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 ...
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 ...