Programing

Anything Techy that you need support for.

Programing

Postby Robopanda333 » Thu Feb 15, 2007 11:17 pm

Apparently people are getting into this stuff so i thought it would be good to create this thread so people with low knowledge could ask stupid questions and get answers... this can be any language, but it would help if someone on here knows it... otherwise we could just guess...
also i guess we could brag about our mad awesome programming projects here.... but it is mainly for helping people...
my languages are
(ok) =>
Java, C++, action script, GML4, batch(who isn't), qbasic....hmtl-ish....umm...
(not so hot)=>
php, java script, ruby(as in rpg mk xp)...and that is all i can think of... but in my experiance most languages follow similar rules (some are the SAME ...java <=> c# ) so just basic knowledge may be all you need.
don't hessitate to ask. Wink
Chidori wrote:Don't worry, Everything is gonna Happy ♥

Image
User avatar
Robopanda333
Site Admin
Site Admin
 
Posts: 467
Joined: Mon Dec 18, 2006 11:59 pm
Location: in my parents Basement

Re: Programing

Postby tsuckow » Fri Feb 16, 2007 9:05 am

Pretty Good
  • C++
  • Java
  • Php
  • XHtml
  • Html
  • AOK AI
  • SQL
  • Actionscript 2
  • Batch

Decent
  • Bash
  • CSS
  • Javascript
  • Ajax
  • VB
  • VBA

Could use some work
  • ASP
  • Perl
  • Second Life

Aint got a clue
  • Ruby
  • .Net

Sure im missing some, ill update it as needed.
Image
tsuckow
Site Admin
Site Admin
 
Posts: 192
Joined: Mon Dec 18, 2006 11:46 pm
Location: Earth

Re: Programing

Postby Stabbity Style » Fri Feb 16, 2007 10:58 pm

Stabbity Style
Fleet Admiral
Fleet Admiral
 
Posts: 204
Joined: Sun Jan 14, 2007 9:25 pm

Re: Programing

Postby Robopanda333 » Mon Feb 19, 2007 11:33 pm

isn't it sad that it has all the problems with java and almost none of the advantages of c++... wow... i heard about 'd' months before it came out, apparently (seeing as it came out last month) but it really didn't look too special... and now i know it isn't very special... i will stick with java, now seeing as it looks like it is going to stay for atleast untill i get into the industry.
Chidori wrote:Don't worry, Everything is gonna Happy ♥

Image
User avatar
Robopanda333
Site Admin
Site Admin
 
Posts: 467
Joined: Mon Dec 18, 2006 11:59 pm
Location: in my parents Basement

Re: Programing

Postby Robopanda333 » Tue Feb 27, 2007 2:15 am

C++ POINTERS
i wrote this to explain pointers to a friend... take a look...

pointers... yay!
basicly what a pointer is, is a variable that holds a memory adress a similar consept as a reference... and that is about it...
ok so now that you know that...
Declaring a pointer
lets say you got a var that is an int called iOMG and you want a pointer of it...
first create a pointer
Code: Select all
int * pntOMG =0;

always initialize a poiner to 0 first or let the bad stuff happen
what bad stuff...?
lots of bad stuff... for instance...
Code: Select all
float * pWhatEv;
for(i=0; i=100 ; pWhatEv = (pWhatEv * 2)/pWhatEv)
{}

what is pWhatEv pointing to? what memory are you changeing... what is the effect on the program/os/computer... only bad that's what.
"if you are lucky it will just crash" ~Jesse Liberty

ok so back to iOMG... we have the variable pntOMG defined to null/0 so we want to make it point to (get it... a pointer "points") iOMG.

so then you go
Code: Select all
pntOMG = &iOMG;


that is it... all there is to it... plz take note of the & char... it says address of... or where the variable is in memory...of course you can do that in one fewer step...
Code: Select all
int * pntOMG =&iOMG;

the problem here is that you better be sure iOMG is defined... or ELSE!

now using the pointer... the pointer is a variable that defaults to itself... you must tell it that you want the other thing that it points to SO...

Code: Select all
pntOMG = 50; //sets the mem value to 50 ...aka BAD!
*pntOMG = 50;// sets &iOMG (or value pointed to) to 50... GOOD!


notice the char * which basicly means "the value stored at"...

note the pointer in NOT the same as the variable the BOTH exisit in memory... don't get confused!

ok so why would you want to do this EVER i mean you got the variable so why do it at all... well consider this...

Code: Select all
void Sq(int mynum)
{
    mynum= mynum*mynum;
    return;
}
int main()
{
    int mynum;
    std::cin>>mynum;
    Sq(mynum);
    std::cout<<mynum;
    return 0;
}


one could assume that mynum after going through that Sq function would be squared... right? WRONG! when you pass a variable into a function only a COPY of the variable is passed so while in the function 2 mynums exist each with a different scope, and because of that when the function passes the value couted is the same as inputed. so how do we fix this... well many ways... but lets use POINTERS!

Code: Select all
void Sq(int * mynum)
{
    *mynum= mynum*mynum;
    return;
}
int main()
{
    int mynum;
    int * pnum = &mynum;
    std::cin>>mynum;
    Sq(pnum);
    std::cout<<mynum;
    std::cout<<*pnum;
    std::cout<<pnum;
    return 0;
}


i am pretty sure that is right... now when a copy of pnum is created it is a copy of the mem adress so nothing is different because both the original and the copy point to the same place...
this exaple could be done in much better ways without pointers but it shows why you would want pointers...

they also allow you to read and write values of private members of classes...(kind of a loop hole)

and the last reason to use them is to use the heap... which is basicly your memory... that is a whole other chapter in this book though and i will tell you about it if you get this stuff and you want to know...
Chidori wrote:Don't worry, Everything is gonna Happy ♥

Image
User avatar
Robopanda333
Site Admin
Site Admin
 
Posts: 467
Joined: Mon Dec 18, 2006 11:59 pm
Location: in my parents Basement

Re: Programing

Postby tsuckow » Tue Feb 27, 2007 11:53 am

For thoses wanting to learn Java, heres a free online book.

http://math.hws.edu/javanotes/
Image
tsuckow
Site Admin
Site Admin
 
Posts: 192
Joined: Mon Dec 18, 2006 11:46 pm
Location: Earth

Re: Programing

Postby Robopanda333 » Mon Jul 16, 2007 11:48 pm

1m4g1ne a 14ngua63 th4t i5 wr1t73n l1k3 th15. i5 l337.
i think it would be called the l337 speak programing language and it is real....
for example
Code: Select all
Gr34t l33tN3$$?
M3h...
iT 41n't s0 7rIckY.

l33t sP33k is U8er keWl 4nD eA5y wehn u 7hink 1t tHr0uGh.
1f u w4nn4be UB3R-l33t u d3f1n1t3lY w4nt in 0n a b4d4sS h4xX0r1ng s1tE!!! ;p
w4r3Z c0ll3cT10n2 r 7eh l3Et3r!

Qu4k3 cL4nS r 7eh bE5t tH1ng 1n teh 3nTIr3 w0rlD!!!
g4m3s wh3r3 u g3t to 5h00t ppl r 70tAl1_y w1cK1d!!
I'M teh fr4GM4stEr aN I'lL t0t41_1Ly wIpE teh phr34k1ng fL00r ***j3d1 5tYlE*** wItH y0uR h1dE!!!! L0L0L0L!
t3lEphR4gG1nG l4m3rs wit mY m8tes r34lLy k1kK$ A$$

l33t hAxX0r$ CrE4t3 u8er- k3wL 5tUff lIkE n34t pR0gR4mm1nG lAnguidGe$...
s0m3tIm3$ teh l4nGu4gES l00k jUst l1k3 rE41_ 0neS 7o mAkE ppl Th1nk th3y'r3 ju$t n0rMal lEE7 5pEEk but th3y're 5ecRetLy c0dE!!!!
n080DY unDer5tAnD$ l33t SpEaK 4p4rT fr0m j3d1!!!!!
50mE kId 0n A me$$4gEb04rD m1ghT 8E a r0xX0r1nG hAxX0r wH0 w4nT2 t0 bR34k 5tuFf, 0r mAyb3 ju5t sh0w 7eh wAy5 l33t ppl cAn 8E m0re lIkE y0d4!!! hE i5 teh u8ER!!!!
1t m1ght 8E 5omE v1rus 0r a Pl4ySt4tI0n ch34t c0dE.
1t 3v3n MiTe jUs7 s4y "H3LL0 W0RLD!!!" u ju5t cAn'T gu3s5.
tH3r3's n3v3r anY p0iNt l00KiNg sC3pT1c4l c0s th4t, be1_1Ev3 iT 0r n0t, 1s whAt th1s 1s!!!!!

5uxX0r5!!!L0L0L0L0L!!!!!!!

is a hello world program. seriously... i think i want to learn it, alas there are no real good interpreters out but it seems pretty simple (if you say know all that ASM stuff...) but ya.. hweird.

EDIT:

i think that is all great BUT as i was looking for an interpherter i found somthing *better*
a LOLCODE programing language. as in
Code: Select all
HAI
CAN HAS STDIO?
VISIBLE "HAI WORLD!"
KTHXBYE


not only is it no where near as combersome and anoying looking it is almost readable... that is if you can read LOLcat stuff...
and if you wern't won over yet check this
Code: Select all
HAI
CAN HAS STDIO?
PLZ OPEN FILE "LOLCATS.TXT"?
   AWSUM THX
      VISIBLE FILE
   O NOES
      INVISIBLE "ERROR!"
KTHXBYE


this is full of win
Chidori wrote:Don't worry, Everything is gonna Happy ♥

Image
User avatar
Robopanda333
Site Admin
Site Admin
 
Posts: 467
Joined: Mon Dec 18, 2006 11:59 pm
Location: in my parents Basement

Re: Programing

Postby tsuckow » Wed Jul 18, 2007 1:18 pm

wow.
Image
tsuckow
Site Admin
Site Admin
 
Posts: 192
Joined: Mon Dec 18, 2006 11:46 pm
Location: Earth


Return to Tech-Support

Who is online

Users browsing this forum: No registered users and 0 guests