Writing in a Dynamic Language? Naming Matters More.
bitnative.com
Writing in a Dynamic Language? Naming Matters More.
1–8 of 8 posts
Re: Writing in a Dynamic Language? Naming Matters More.
#2Re: Writing in a Dynamic Language? Naming Matters More.
#3Even better approach would be to minimize having business logic in dynamic/weakly typed languages at all. Scripts like JS are most suited for rich GUIs.
I'm not dropping a language just because of how functions are defined.
Re: Writing in a Dynamic Language? Naming Matters More.
#4Part of this seems to be the grep-ability of identifiers. In the ruby community there seems to be more of a push towards constructing DSLs, which seems to cause developers to write more generic single word methods and variable names. Searching through a decent sized codebase tends to result in a lot of noise/reuse. In the python world, it seems that methods at least tend to be a little more verbose and more easily identifiable. Explicit imports in python do help quite a bit also.
Has anyone else noticed a similar pattern, or am I being biased here?
Re: Writing in a Dynamic Language? Naming Matters More.
#5Even better approach would be to minimize having business logic in dynamic/weakly typed languages at all. Scripts like JS are most suited for rich GUIs.
Re: Writing in a Dynamic Language? Naming Matters More.
#6Re: Writing in a Dynamic Language? Naming Matters More.
#7Yeah, definitely. Since jumping from full time Java to full time Python a few years ago I've learned this lesson the hard way a number of times.. It's definitely worth naming for grep-ability to ease refactorings. I'm sure this post will garner at least a few STATIC TYPING > SCRIPTING LANGUAGE comments, but I think that's short sighted. There are definitely advantages and disadvantages to both. Refactoring and code-f…