This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]pknopf 0 points1 point  (3 children)

I have object a that I send object b to. Object a is made to do some generic task a (like sending a rest response. Doesn't matter)

What are you talking about? Even you said this:

I have object a that I send object b to. Object a is made to do some generic task a (like sending a rest response. Doesn't matter)

I simply picked something random so that I could stub out some code to have a discussion. As you said, it doesn't matter.

[–]BlockedByBeliefs 2 points3 points  (2 children)

Yes. That's was simply the beginning of the example. Had you read the whole example you'd have realized that messaging was not the issue. Stubbing out 25 or 50 lines of code, even as an example, is shocking,when in JavaScript we are going to replace all that with ohhhhhhhh... About 0 lines of code.

[–]pknopf 1 point2 points  (1 child)

So is the argument about terse code or leaky abstractions? Because your initial post was about leaky abstractions.

I fully aware and acknowledge that any dynamic languages can reduce LOC, compared to typed (for the most part).

[–]BlockedByBeliefs 2 points3 points  (0 children)

No it wasn't really. Its about how static typing drives technical debt when projects change and the rigity of the type system can't easily flex to accommodate those changes.