Dynamic typing good practices?

  • Thread starter Hugh Sasse Staff Elec Eng
  • Start date
H

Hugh Sasse Staff Elec Eng

Once again I have seen a long thread on Dynamic vs Static typing.
That's OK, it's an important thing to discuss and understand.
When I was formally taught programming it was with a staticly typed
language. Had I actually been through a taught course on a
dynamically typed language this next question would probably not arise:

What are the good programming practices of particular merit for
dynamically typed languages?

AFAICS the main one seems to be test driven design/development.
Yes, this *can* be applied to statically typed languages, but has
particular merit in languages like Ruby.

Are there others that I really ought to know about?

Hugh
 
M

Martin DeMello

Hugh Sasse Staff Elec Eng said:
Once again I have seen a long thread on Dynamic vs Static typing.
That's OK, it's an important thing to discuss and understand.
When I was formally taught programming it was with a staticly typed
language. Had I actually been through a taught course on a
dynamically typed language this next question would probably not arise:

What are the good programming practices of particular merit for
dynamically typed languages?

What I find dynamic languages like Ruby help with is an aggressive
elimination of boilerplate code. If I find myself doing the same thing
over again, I usually stop and refactor the code before proceeding; in
the long run it makes the code easier to develop and more maintainable.

martin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,738
Latest member
JinaMacvit

Latest Threads

Top