flat assembler
Message board for the users of flat assembler.

Index > Heap > Example vs. sample

Author
Thread Post new topic Reply to topic
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr
Have you ever think about difference between them? Probably each one define it in its own way.
Post 15 Apr 2013, 21:02
View user's profile Send private message Reply with quote
MHajduk



Joined: 30 Mar 2006
Posts: 6034
Location: Poland
MHajduk
baldr wrote:
Have you ever think about difference between them? Probably each one define it in its own way.
To me, the word "sample" somehow associates with something "partial" while "example" gives an impression of something more "complete" and "well explained".

Am I right?
Post 15 Apr 2013, 21:12
View user's profile Send private message Visit poster's website Reply with quote
HaHaAnonymous



Joined: 02 Dec 2012
Posts: 1180
Location: Unknown
HaHaAnonymous
[ Post removed by author. ]


Last edited by HaHaAnonymous on 28 Feb 2015, 21:03; edited 1 time in total
Post 15 Apr 2013, 21:25
View user's profile Send private message Reply with quote
ACP



Joined: 23 Sep 2006
Posts: 204
ACP
baldr wrote:
Have you ever think about difference between them? Probably each one define it in its own way.


Agree.

Obviously the context you are using both words can be crucial. Consider malware research where there is a clear difference between virus example and virus sample.
Post 15 Apr 2013, 22:56
View user's profile Send private message Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2913
Location: 0x77760000
typedef
"Blood sample"
"Blood Example"

"Being a president is a tough job, take Obama for example"

"Being a president is a tough job, take Obama for sample"
Post 16 Apr 2013, 02:01
View user's profile Send private message Reply with quote
AsmGuru62



Joined: 28 Jan 2004
Posts: 1409
Location: Toronto, Canada
AsmGuru62
Sample sounds like more of a physical nature.
Sample of <something physical>.

Example is of more logical nature.
Example of algortihm or example of making a cake.
Post 16 Apr 2013, 12:33
View user's profile Send private message Send e-mail Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17279
Location: In your JS exploiting you and your system
revolution
Sample: A portion of a larger thing (physical or not). Usually being used to provide an indication of the make-up of the entire thing.

Example: An entire thing that shows some particular trait or outcome.

You can have a sample of an example. And naturally you can also have an example of a sample.
Post 17 Apr 2013, 09:38
View user's profile Send private message Visit poster's website Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 2915
Location: [RSP+8*5]
bitRAKE
For completeness, or rather hilarity we should not forget the example's example, and sample's sample. An extended version of the later case is realized in homeopathic medicine - where an extremely diluted substance is imagined to have attributes of the whole.

An example of an example's example is much more difficult to sample. Laughing

_________________
¯\(°_o)/¯ unlicense.org
Post 17 Apr 2013, 12:53
View user's profile Send private message Visit poster's website Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr
I did a (rather quick) research using MW and OED, it leaves me with feeling that example refers to something whole, and sample being a part of bigger (and more complete) one.

That makes me think that MHajduk's and ACP's expanations are (at least) plausible.

AsmGuru62's analogy seems to be somewhat artificial. Recipe of a cake is as physical as the cake itself (as a result from applying recipe). Nevertheless, it may be acceptable.

typedef, revolution and bitRAKE had shown decent skill at wordplay. Good for you. Wink

The gist of my question was whether (presumably correct, but unusable itself) fragment of code is an example or a sample?
Post 17 Apr 2013, 14:21
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17279
Location: In your JS exploiting you and your system
revolution
baldr wrote:
The gist of my question was whether (presumably correct, but unusable itself) fragment of code is an example or a sample?
It could be either or both. Example and sample are not mutually exclusive.

A fragment of code could be a sample of coding style.

A fragment of code could be an example of how to do division.

A fragment of code could be a sample of coding style and be an example of how to do division.
Code:
hp equ [highpart]
lp equ [lowpart]
mov edx,hp
mov eax,lp
div [bottomthing]    
Post 17 Apr 2013, 16:37
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.