Techist - Tech Forum

Techist - Tech Forum (http://www.techist.com/forums/)
-   Programming (http://www.techist.com/forums/f11/)
-   -   Vocab (http://www.techist.com/forums/f11/vocab-214829/)

kmote 08-29-2009 03:04 PM

Vocab
 
I would like to say first that I have not checked any of these, I am going by what I use and any corrections and additions are welcome.

I'll start with easy with some symbols to save my poor brain. Preferred names are first and possible alternatives come after.

Symbols

() parentheses, brackets

[] brackets, square brackets

{} braces, curly brackets

<> chevrons, inequality signs

. dot

# hash, sharp

~ tilde

& ampersand

^ caret, hat

* asterisk, multiplication

` backtick

' single quote

" double quote

| vertical bar, pipe

- subtraction, hyphen

+ addition

! exclamation point, bang

\ backslash, bash

/ forward slash, whack, division

#! shebang (contraction of sharp and bang)

Coding terms

Array - A named variable that holds a number of other variables of a specific type.

Exception - A specific condition that is met during program execution; generally used for generating error messages, but can also be used for branching to a different execution path of the program.

Function - A block of code that can be called from somewhere else in the code.

Loop - A code block that repeats while a condition is true.

Pointer - A variable that is linked to, or "points to", a specific memory address / block of addresses. Is used to directly modify the memory or memory space that a variable is associated with.

Queue - Similar to a stack, except uses FIFO concept (First In, First Out). Think of it like a line (or queue) of people waiting for a ticket. The first person in line will receive their ticket before the person that comes in line after them.

Stack - a set of variables, objects, etc. laid out consecutively in memory. Uses FILO concept (First In, Last Out). The first variable in, will be the last one "popped" off the top of the stack.

[variable] Type - Many languages require that a variable holds a certain type of data. The range of types available depend on the language.

Variable - In short this is a "space" where a value is kept. A name is used to keep track of this space.

Operators

[left++] - evaluate then increment
[++right] - increment then evaluate
[left--] - evaluate then decrement
[--right] - decrement then evaluate
[left == right] - test equality between left and right
[left != right] - test inequality between left and right
[left < right] - test left less than right
[left <= right] - test left less than or equal to right
[left > right] - test left greater than right
[left >= right] - test left greater than or equal to right
[left || right] - test left or right is true
[left && right] - test left and right is true
[left += right] - assign left to the value of left + right
[left -= right] - assign left to the value of left - right
[left *= right] - assign left to the value of left * right
[left /= right] - assign left to the value of left / right

yzmxer608 08-29-2009 05:32 PM

Re: Vocab
 
I guess these are pretty easy:

* multiplication
- subtraction, hyphen
+ addition
/ division

CrazeD 08-29-2009 05:35 PM

Re: Vocab
 
! exclamation point, bang

\ backslash, bash

/ forward slash, whack

kmote 08-29-2009 06:23 PM

Re: Vocab
 
Added. Didn't know about bash and whack.

Baez 09-04-2009 01:16 PM

Re: Vocab
 
Add shebang when talking shell or perl.

oldskool 09-05-2009 07:13 AM

Re: Vocab
 
Quote:

Originally Posted by Baez (Post 1706116)
Add shebang when talking shell or perl.

^ Lol, for real ? Wow. What next, "she bop?" :p

Baez 09-05-2009 12:39 PM

Re: Vocab
 
lol it's for real oldskool.

Shebang means #! together.

The shebang line refers to the location of shell or perl and is written on the very first line of code.

Usually looks like:

#!/bin/sh
or
#!/usr/bin/perl

kmote 09-05-2009 12:45 PM

Re: Vocab
 
Added it. I thought it was spelled shabang... till now.

oldskool 09-05-2009 01:13 PM

Re: Vocab
 
Quote:

Originally Posted by Baez (Post 1706355)
lol it's for real oldskool.

Shebang means #! together.

The shebang line refers to the location of shell or perl and is written on the very first line of code.

Usually looks like:

#!/bin/sh
or
#!/usr/bin/perl

@Baez,

Thanks for that clarification :p

Baez 09-05-2009 11:21 PM

Re: Vocab
 
Hey anytime buddy.

Isn't that a Ricky Martin song too?


All times are GMT -5. The time now is 06:43 PM.

Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.