Advertising (This ad goes away for registered users. You can Login or Register)

The Official Programming Dictionary

Discuss about your favorite (gaming...or not) devices here. The most popular ones will end up getting their own categories
Programming discussions for your favorite Device
Forum rules
Forum rule Nº 15 is strictly enforced in this subforum.
User avatar
Xian Nox
Retired Mod
Posts: 2749
Joined: Fri Nov 05, 2010 5:27 pm
Location: Over the hills and far away

Re: The Official Programming Dictionary

Post by Xian Nox » Sun Jul 07, 2013 1:02 pm

GBOT wrote:
pspfanMOHH wrote:Java doesn't have string class? That is pretty messed up since 90% of all the languages has string classes, and when you start them you will be confused, I love strings btw because they give so much headaches with warnings and errors, any of you?
Java does have the String class. I named it as an example, do you know how it works internally? Well, a good practice would be making your own string manipulation functions, or even better, your own string class replicating all the functions your own way. Thats learning programming for me :)
Xian Nox wrote:Why have it easy when you can have it difficult, right? :lol:
That's the way I like it, rough :mrgreen:
This is not rough, this is inefficient. I know how a string is to be manipulated, but I don't need to know how the specific implementation of a specific library works. Frankly, I don't even care, all I care about is what I need to feed it, and what I get back. Following your logic of not using standard string manipulation classes, one shouldn't be using any libraries whatsoever. Sure, you're going to learn everything and stuff, but it is inefficient in any respect.
Acid_Snake wrote:
NightStar3 wrote:Exactly which string manipulation routines are you talking about?
take a look at what you can do with strings in python, then come back and tell me java doesn't miss any of that without some algorithm of some sorts.
I'm not great at python, so does this seem to be the complete string class reference?
pspfanMOHH wrote:OP Updated
With what? Rainbows?
ASCII is still merely a character-encoding scheme, not something used for "colors, etc."...
Declarations still don't need to assign a value.
Void still means undefined type.
Advertising

User avatar
pspfanMOHH
Posts: 660
Joined: Sat Jun 11, 2011 9:16 pm
Location: Grand Line, New World

Re: The Official Programming Dictionary

Post by pspfanMOHH » Sun Jul 07, 2013 2:08 pm

@Xian I added few words, I am writing down those I see new and not in OP while I help out in programming sections
Advertising

svenn
Posts: 66
Joined: Fri Dec 24, 2010 5:17 pm
Location: Belgium
Contact:

Re: The Official Programming Dictionary

Post by svenn » Fri Aug 23, 2013 9:27 am

NULL is not 0 (zero); In some languages perhaps its 0; but in fact NULL means "unknown" or "not described". 0 is a well determed value ... (unless you are one of those crazy math guys who does know better 8-) )

Your description of Assembly language also is a bit "unexplained", as far as I know its not "easier" to read then binary, since binary isn't really readable anno 2013. Its perhaps more explaining like this :
Assembly is a low-level language, meaning its very close to hardware. Since, to newby's (I think those read or lookup dictionary ... don't really find assembly "readable")
all explaining image : Image
Bug: Bug is a word that describes any unexpected problems with the software/program, a professional term to describe bug is an error.
That's only very very partially true; A bug is a "non-intended flow" of your code; An error is commonly referred to as "the text" the program/debugger returns; For example :

bug : (endless loop)

Code: Select all

i = 11;
while (i > 10) {
   do_my_code();
}
error : (syntax error)

Code: Select all

i = 11;
wh00000le (i > 10) {
   do_my_code();
}
So while allot of bugs can and will result into error, not all of them do; This is also what exploits are all about, these are bugs in code, that can be used for un-intended flow but (lucky for us) don't result in error;
Boolean: A Boolean consists of operators such as AND, OR, NOT, and XOR statements resulting in True or False statements.
I'm not really sure that correct, a boolean, commonly called bool or flag. Is actually a data-type, containing true or false. AND OR NOT, XOR and a few more are actually boolean operators, since they validate into a boolean value;

Code: Select all

true AND true -- > true
C: C is commonly used to describe the C: drive or the first hard driver on compatibility computers. Now days C Driver is known as My Computer or the Computer file with any types of disks.
1) in windows... Linux doesn't use this system;
2) its not the first "driver", its the first partition available for the user. Most likely stored at the primary disk.
Char: It is short for character, which is a data type that holds one character (letter, number, etc.) of data such as "c", "9", or "#"
In fact it does never hold a number; Always a "character"; The difference is in programming pretty large; 9 is a integer, integers can be used in math, while the char 9 cannot be used. I'm pretty sure you do know, but for newby's it is not so clear; ex :

Code: Select all

char myChar = 9;
int myInt = 9;
result = myChar +2; #result would contain 92
result = myInt +2; # result would contain 11
Declare/ Declaration: To define a variable it's value or char.
value is the content of the variable, char is a datatype; so :

Code: Select all

int value = 9;
char value = T;
(datatype) (variable name) = (value);
I like your topic idea but its needs some "finetuning".

User avatar
pspfanMOHH
Posts: 660
Joined: Sat Jun 11, 2011 9:16 pm
Location: Grand Line, New World

Re: The Official Programming Dictionary

Post by pspfanMOHH » Fri Sep 13, 2013 8:49 pm

I did this topic before I left on vac in airport when I get home I will all the errors thanks.

User avatar
Acid_Snake
Retired Mod
Posts: 3099
Joined: Tue May 01, 2012 11:32 am
Location: Behind you!

Re: The Official Programming Dictionary

Post by Acid_Snake » Sat Sep 14, 2013 10:30 am

svenn wrote:NULL is not 0 (zero); In some languages perhaps its 0; but in fact NULL means "unknown" or "not described". 0 is a well determed value ... (unless you are one of those crazy math guys who does know better 8-) )
Gonna have to STRONGLY disagree here. From a linguistic point of view, NULL means "nothing", "emptiness", etc, from a mathematical point of view, "nothing" means 0, and from a programming point of view, NULL is normally usually 0, but depending on the architecture it can be another number or code, but it's always gonna be the same thing.
What you call "unknown" or "not described" is what C/C++ calls "void".

User avatar
qwikrazor87
Guru
Posts: 2868
Joined: Sat Apr 21, 2012 1:23 pm
Location: The North Pole

Re: The Official Programming Dictionary

Post by qwikrazor87 » Sat Sep 14, 2013 11:37 am

Acid_Snake wrote:Gonna have to STRONGLY disagree here. From a linguistic point of view, NULL means "nothing", "emptiness", etc, from a mathematical point of view, "nothing" means 0, and from a programming point of view, NULL is normally usually 0, but depending on the architecture it can be another number or code, but it's always gonna be the same thing.
What you call "unknown" or "not described" is what C/C++ calls "void".
I'm gonna have to agree with Acid here.
0 == nothing.
NULL ==
Nothing == nothing.
0 == 0.
0 != (<1) || 0 != (>1).
0 == NOTHING.
NOTHING.

As you can see in this definition of zero, zero also == nil, which also == NULL.
http://whatis.techtarget.com/definition/zero-0

More links to zero and NULL.
http://nshipster.com/nil/

Code: Select all

Symbol 	Value          Meaning
NULL      (void *)0      literal null value for C pointers
nil       (id)0          literal null value for Objective-C objects
Nil       (Class)0       literal null value for Objective-C classes
NSNull    [NSNull null]  singleton object used to represent null
PSP 2001 - TA-085 - 6.61 PRO-C2
PS Vita 3G - PCH-1101 - 3.65 HENkaku Ensō
Maxwest Nitro 4 phone - Android 5.1
Laptop - Toshiba Satellite L305D-S5974 - Ubuntu 16.04 LTS

User avatar
pspfanMOHH
Posts: 660
Joined: Sat Jun 11, 2011 9:16 pm
Location: Grand Line, New World

Re: The Official Programming Dictionary

Post by pspfanMOHH » Sat Sep 14, 2013 7:12 pm

I believe I explained void too, so it does neglect the correction. I have the right define for null. I will be reading the rest of the corrections when I get on computer.

svenn
Posts: 66
Joined: Fri Dec 24, 2010 5:17 pm
Location: Belgium
Contact:

Re: The Official Programming Dictionary

Post by svenn » Fri Sep 27, 2013 9:19 am

Acid_Snake wrote:
svenn wrote:NULL is not 0 (zero); In some languages perhaps its 0; but in fact NULL means "unknown" or "not described". 0 is a well determed value ... (unless you are one of those crazy math guys who does know better 8-) )
Gonna have to STRONGLY disagree here. From a linguistic point of view, NULL means "nothing", "emptiness", etc, from a mathematical point of view, "nothing" means 0, and from a programming point of view, NULL is normally usually 0, but depending on the architecture it can be another number or code, but it's always gonna be the same thing.
What you call "unknown" or "not described" is what C/C++ calls "void".
You don't disagree, you show examples of what NULL means in C/C++; As I pointed out, in some languages NULL infact means 0; though in "the official programming dictionary" you can't say NULL == 0; since that isn't correct in some languages; (Such as JavaScript)

NULL+1 != 1 in javascript. In C++ by all means, there is nothing better to describe "nothing" as void. Fact is that if NULL was always 0, you wouldn't need to explain it here; But NULL gets returned when something din't work and there is nothing to return, in contrary where 0 means you get a workable integer;

http://saladwithsteve.com/2008/02/javas ... -null.html

Even though, you prolly will dis.
http://en.wikipedia.org/wiki/Null - Null pointer (sometimes written NULL), used in computer programming for an uninitialized, undefined, empty, or meaningless value

0 is absolutely not meaningless;
pspfanMOHH wrote:I believe I explained void too, so it does neglect the correction. I have the right define for null. I will be reading the rest of the corrections when I get on computer.
I hope it doesn't take you another 2 weeks to get to your computer, or your computer might be NULL. :D

User avatar
hgoel0974
Retired Mod
Posts: 2154
Joined: Mon Jul 23, 2012 11:42 pm
Location: Maia, Pleiades Nebula

Re: The Official Programming Dictionary

Post by hgoel0974 » Fri Sep 27, 2013 10:20 am

Actually a null pointer is pointing to the address 0x0 which can never be valid, that's why they have the null reference exceptions
whereas I believe a void* is just an ordinary pointer.
"If the truth is a cruel mistress, then a lie must be a nice girl"

User avatar
Acid_Snake
Retired Mod
Posts: 3099
Joined: Tue May 01, 2012 11:32 am
Location: Behind you!

Re: The Official Programming Dictionary

Post by Acid_Snake » Fri Sep 27, 2013 2:50 pm

[spoiler]
svenn wrote:
Acid_Snake wrote:
svenn wrote:NULL is not 0 (zero); In some languages perhaps its 0; but in fact NULL means "unknown" or "not described". 0 is a well determed value ... (unless you are one of those crazy math guys who does know better 8-) )
Gonna have to STRONGLY disagree here. From a linguistic point of view, NULL means "nothing", "emptiness", etc, from a mathematical point of view, "nothing" means 0, and from a programming point of view, NULL is normally usually 0, but depending on the architecture it can be another number or code, but it's always gonna be the same thing.
What you call "unknown" or "not described" is what C/C++ calls "void".
You don't disagree, you show examples of what NULL means in C/C++; As I pointed out, in some languages NULL infact means 0; though in "the official programming dictionary" you can't say NULL == 0; since that isn't correct in some languages; (Such as JavaScript)

NULL+1 != 1 in javascript. In C++ by all means, there is nothing better to describe "nothing" as void. Fact is that if NULL was always 0, you wouldn't need to explain it here; But NULL gets returned when something din't work and there is nothing to return, in contrary where 0 means you get a workable integer;

http://saladwithsteve.com/2008/02/javas ... -null.html

Even though, you prolly will dis.
http://en.wikipedia.org/wiki/Null - Null pointer (sometimes written NULL), used in computer programming for an uninitialized, undefined, empty, or meaningless value

0 is absolutely not meaningless;
pspfanMOHH wrote:I believe I explained void too, so it does neglect the correction. I have the right define for null. I will be reading the rest of the corrections when I get on computer.
I hope it doesn't take you another 2 weeks to get to your computer, or your computer might be NULL. :D
[/spoiler]
You are looking at this definition from a high level perspective, which is ALWAYS the wrong way to look at computers, or every other mathematical or physical form. As I explained before, in semantics, mathematics AND computing, NULL == 0, I don't care what Javascript tells you, JavaScript is high level, so it separates itself from everything related to what a computer really is and gives you a false feeling of what a computer is and how it works. To give you a better view of why JavaScript's Null can't really be considered "null" in itself, take a look at python's version of Null and how it really works at low level, you will then see that JavaScript's Null != the mathematical, semantc and computing definition of Null.

Post Reply

Return to “Programming and Security”