method-names Questions
11
Solved
I'm tempted to add a suffix like "Ex" to differentiate methods (with similar signatures) that throw Exceptions from those that don't.
Is there such a convention?
Philoctetes asked 23/7, 2009 at 1:45
4
Solved
I'm documenting a Scala class with overloaded methods. How can I distinguish them when referring to them in scaladoc comments? For example, if I have
/**
* The most important method is [[Doc.foo]...
Postmortem asked 13/3, 2013 at 19:9
3
Solved
Considering this code :
var o = {};
o.f = function(){};
new o.f;
Chrome prints o.f {} into the console. Do you know how this o.f part is called? More importantly, is there any way to get this re...
Macadam asked 9/1, 2014 at 7:24
4
Solved
Is it possible to get the name of another method in the same class but without using a manually written string?
class MyClass {
private void doThis()
{
// Wanted something like this
print(oth...
Worcestershire asked 4/8, 2013 at 5:50
2
Solved
I have the following two methods that I am wondering if they are appropriate:
public bool IsGetter(MethodInfo method)
{
return method.IsSpecialName
&& method.Name.StartsWith("get_", Stri...
Ursel asked 23/5, 2013 at 16:5
6
Solved
Possible Duplicate:
count vs length vs size in a collection
In Java in particular, on Strings, you call string.length(), whereas in Lists you call list.size(). Is there a technical di...
Mucky asked 4/2, 2010 at 21:38
4
Solved
In Ruby, a standard convention is to use a question mark at the end of a method name to indicate the method returns a boolean result:
[].empty? #=> true
Another standard convention is to end...
Ventris asked 21/10, 2009 at 2:18
1
© 2022 - 2024 — McMap. All rights reserved.