As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
In most cases, we put verb before noun when we're naming a function, which is clearly and explanatory, such as OpenFile() or CloseConnection(). But some verbs are nouns too, so we can see WordCount() or SpellCheck(), and so on.
I prefer CountWords(), putting predicate before object, which provides a consistent look with GetXXX(), SetXXX() and OpenXXX().
Which one do you prefer?
I prefer countWords(). Other alternative for me is getWordCount().
I like getWordCount()
Apart from just the action, I like to prefix the function with an actual verb of the function in relation to the caller. setProperty(), getWords() [to return the actual list of words], createWordList(), etc, etc.
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
Are there any code samples or papers on the subject? I have not been able to find any resources directly related to the question after a bit of research.
It appears it has. I found two papers here and here, and there are probably other. The second one was published at NAACL (a high-quality conference) and contains a bunch of relevant references.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Out of curiosity, what programming languages do not have an "If" statement?
First language that somehow operates completely without
an If Then control structure gets the answer.
-1 given to languages no one has actually heard of (eg: "My friend made a programming language in college called 'EwoK' that used a 'when' statement instead...")
Most assembly languages do not have an if statement, instead, they branch or jump to another location based on the result of a logical comparison or processor flag check.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I want to implement a searching algorithm for sequence of words. For that i need good efficiency for handling string operations.
It completely depends on the kind of string pattern-matching you're expecting to perform. For example, Perl has an excellent and very efficient regular expression matcher.
If you're after regex, this is really cool. I'm not sure if anyone has taken this and implemented it in a way that is useful. But practically, grep and perl are the tools I use most often and prove to be 'fast enough' in most cases. They handle the hard parts. "Matching a sequence of words" isn't hard.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
Can you suggest any quick and concise resources for learning SEO techniques?
Beyond John's comment - which is TRUE, here is a list I have compiled (see the rest at http://www.qnq.com.au/resources/online-seo-link-repository/)
In no particular order and with no favour:
http://www.google.com/webmasters/docs/search-engine-optimization-starter-guide.pdf
https://docs.google.com/Present?docid=dc3qhbxg_1217d9mwjwg3
http://www.bruceclay.com/web_rank.htm
http://www.websitepublisher.net/seo-guide/
http://www.highrankings.com/tentips
http://www.hobo-web.co.uk/seo/
http://sethgodin.typepad.com/seths_blog/2007/10/how-to-create-1.html
http://www.webconfs.com/15-minute-seo.php
http://www.seomoz.org/blog/the-web-developers-seo-cheat-sheet
http://www.conversationmarketing.com/2010/07/on-page-seo-cheatsheet.htm
http://www.seo-theory.com/wordpress/2008/09/22/nine-lessons-in-search-engine-optimization/
http://searchengineland.com/25-super-common-seo-mistakes-51888
http://www.seobook.com/archives/001792.shtml
http://www.seobook.com/seo-strategy
http://www.bing.com/community/blogs/webmaster/archive/2009/06/26/site-architecture-and-seo-file-page-issues-sem-101.aspx
http://www.searchenginejournal.com/bing-rankings-cheat-sheet/29847/
http://blog.vkistudios.com/index.cfm/2009/9/2/Server-Status-Codes-and-SEO
http://sixrevisions.com/content-strategy/user-friendly-seo/
http://www.youtube.com/watch?v=ecI_hCBGEIM – great 1hr long
presentation from Google
Make it through that list, and you'll be well on your way.
Remember - “Knowing is not enough; we must apply!” – Goethe
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I think I might be using the wrong words, however I am looking for books/website on pre-programming design. Not patterns but use cases, requirements etc. I would love a book that goes over all the preparation with the UML diagrams etc.
Any help would be greatly appreciated.
As well if there is a better term to use then design document please correct me.
This is one book