Why 'equals' method is third person singular? [closed] - methods

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Why 'equals' method is third person singular...?
I think.. it means that I WILL SEE THE OBJECT AS THIRD PERSON.
yeah..I also agree with it.
Then.. why trim, add methods are not third person singular?
It makes me very confused :'(
Actually I sometimes thought that it may be natural for people who use languages that has grammatical difference among 1st, 2nd and 3rd person, because my language, Korean, has no grammatical difference among them.
So.. please give me answers :D

I think because Equals is boolean and takes another object as parameter, it makes a good semantic. A common usage is:
if(a.Equals(b)) {}
And it's beautiful.
Trim() is a kind of order you give to the object. it's like "do that stuff". Following this way, Equals should be something like TellMeIfYouAreEqualTo:P

Related

About monads and LINQ [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I stumbled upon some statements suggesting that LINQ is powered by monads.
Several C# programmers have asked what a monad is and how it's like LINQ. But I'm a Haskell programmer, and I'm asking what LINQ is and how it's like having monads.
The little I know about LINQ is that it lets you write arbitrary SQL in the middle of your C# code. I'm told it's meant to be possible to implement LINQ for other datatypes, but I've never seen it done. Presumably that's the part where things get interesting. (?)
Any comments or helpful reading would be appreciated.

Algorithm to check consistency? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
Assume:
There are hundred students and each on
of them are working on a common
project.
Ideally, being consistent implies that a student works everyday on the project at-least once.
If we have data like this:
Student 1 work day 1(worked)
day 2(worked)
day 3(took a break)
etc
Now is there any algorithm that can be used to check and rank students based on consistency ?
EDIT:
This is not a homework problem. I am developing a plugin in java that rates group work according to consistency. So I was wondering if there was an algorithm that can accurately predict consistency. I was thinking about using standard deviation but if there is something more precise, it would help.
I believe the quantity you are looking for is called variance. This describes consistency, if you were to say, use the time each day that a student works.

Algorithm to understand meaning [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I want to know if is there any specific algorithm that can be followed to understand the meaning of a word/sentence/paragraph. Basically, I want to write a program that will take text/paragraph as input and try to find out what its meaning is. And thereby highlight the emotions within the text.
Also, if there is an algorithm to understand things, can the same algorithm be applied to itself? It reduces the quest further to a point where we become interested in knowing meaning of meaning OR rather definition of definition.
You want Natural Language Processing and Semantic Technology. This is still a flourishing area in computer science. Look at things such as a Semantic Reasoner. You can start with Jena. There are also other things you can look at such as Academic Thesis papers.

what is Dynamic Linq query [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
i never work with DLINQ so i dont know the use of DLINQ. so can anyone show the situation where DLINQ is required and also show me the various use of DLINQ.
"While writing type-safe queries is great for most scenarios, there are cases where you want the flexibility to dynamically construct queries on the fly. For example: you might want to provide business intelligence UI within your application that allows an end-user business analyst to use drop-downs to build and express their own custom queries/views on top of data. "
from: this article

How to hide the text in the picture using the least significant bit? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 12 years ago.
How to hide the text in the picture using the least significant bit ?
It looks like you're not sure what you're asking. Perhaps go and research the general idea of steganography.
Short answer: don't.
Slightly longer answer: it's a very inefficient form of steganography, it won't work for JPEG images, and for GIF/PNG it'll basically make your image uncompressable.
If you need stega for anything else but curiosity or school assignments, research existing offerings.
The technique you're thinking of is called Steganography. Here's a good post which explains the technique. http://www.dreamincode.net/forums/topic/27950-steganography/

Resources