General question for programmers

General technological topics without their own forum go here

Re: General question for programmers

Post by fashizzlepop on Mon Jan 28, 2013 8:24 pm
([msg=72837]see Re: General question for programmers[/msg])

Or import in python.
The glass is neither half-full nor half-empty; it's merely twice as big as it needs to be.
User avatar
fashizzlepop
Developer
Developer
 
Posts: 2303
Joined: Sat May 24, 2008 1:20 pm
Blog: View Blog (0)


Re: General question for programmers

Post by KthProg on Mon Jan 28, 2013 8:25 pm
([msg=72838]see Re: General question for programmers[/msg])

lol im just now picking up python and ruby and maybe lua (since I dont know any scripting languages yet)
while were on the topic do you have any good pdfs for python?
a pdf came with ruby but I really need one for python.

what is this > ::
in c++?
never seen anything like that in VB
VB NET comes from a totally different lineage than other programs though. so almost all the syntax is different, except that Python is similar except but python has no end statements its all tab delimited

after glancing at that PDF I have to say Python looks literally exactly like VB lol...
Last edited by KthProg on Mon Jan 28, 2013 8:29 pm, edited 2 times in total.
User avatar
KthProg
Poster
Poster
 
Posts: 219
Joined: Wed Jan 23, 2013 7:06 pm
Blog: View Blog (0)


Re: General question for programmers

Post by -Ninjex- on Mon Jan 28, 2013 8:28 pm
([msg=72839]see Re: General question for programmers[/msg])

KthProg wrote:lol im just now picking up python and ruby and maybe lua (since I dont know any scripting languages yet)
while were on the topic do you have any good pdfs for python?
a pdf came with ruby but I really need one for python.


I would suggest you check out codecademy.com, but if you insist on a pdf Here
If you're not willing to learn, no one can help you. If you're determined to learn, no one can stop you.⠠⠵
The absence of evidence is not evidence of absence.
I can explain it for you, but I can't understand it for you.
^(-.^)>
User avatar
-Ninjex-
Addict
Addict
 
Posts: 1468
Joined: Sun Sep 02, 2012 8:02 pm
Blog: View Blog (0)


Re: General question for programmers

Post by KthProg on Mon Jan 28, 2013 8:30 pm
([msg=72840]see Re: General question for programmers[/msg])

thank you, its even more similar to VB than I thought lol
The file IO operation are even the same, like Readline, though thats more a VBA or VB6 thing.

except for the "list"
this is similar to an ArrayList but with more methods associated with it, I wonder if it has the same memory optimization as an ArrayList too.
Last edited by KthProg on Mon Jan 28, 2013 8:39 pm, edited 2 times in total.
User avatar
KthProg
Poster
Poster
 
Posts: 219
Joined: Wed Jan 23, 2013 7:06 pm
Blog: View Blog (0)


Re: General question for programmers

Post by -Ninjex- on Mon Jan 28, 2013 8:31 pm
([msg=72841]see Re: General question for programmers[/msg])

KthProg wrote:what is this > ::
in c++?


:: In a constructor, using a colon is used to initialize a variable and/or for calling on the parent constructor.
If you're not willing to learn, no one can help you. If you're determined to learn, no one can stop you.⠠⠵
The absence of evidence is not evidence of absence.
I can explain it for you, but I can't understand it for you.
^(-.^)>
User avatar
-Ninjex-
Addict
Addict
 
Posts: 1468
Joined: Sun Sep 02, 2012 8:02 pm
Blog: View Blog (0)


Re: General question for programmers

Post by KthProg on Mon Jan 28, 2013 8:37 pm
([msg=72842]see Re: General question for programmers[/msg])

lol could you give me an example i think this might be another area where VB and C++ are totally seperate.
in VBnet setting a variables value initializes it at runtime.
or if you want to initialize it at compile-time (if im using the term right) you use a Dim statement like

Code: Select all
Dim xVar as Integer = 1

or
Code: Select all
Dim yVar as Integer
yVar = 1
User avatar
KthProg
Poster
Poster
 
Posts: 219
Joined: Wed Jan 23, 2013 7:06 pm
Blog: View Blog (0)


Re: General question for programmers

Post by fashizzlepop on Mon Jan 28, 2013 8:45 pm
([msg=72845]see Re: General question for programmers[/msg])

:: is the scope resolution operator. It defines the scope of the variable.

You aren't going to learn C++ or understand anything by just picking random things that are different between VB and C++. They are Very different languages.

To learn python, I suggest "Learn Python The Hard Way"
The glass is neither half-full nor half-empty; it's merely twice as big as it needs to be.
User avatar
fashizzlepop
Developer
Developer
 
Posts: 2303
Joined: Sat May 24, 2008 1:20 pm
Blog: View Blog (0)


Re: General question for programmers

Post by KthProg on Mon Jan 28, 2013 8:47 pm
([msg=72847]see Re: General question for programmers[/msg])

lol is that a book or a statement?
I always learn by coding but being able to make associations especially when languages are as similar as VB and Python I think helps so I always read the PDF to figure out whats different and what a language has that's nonstandard like Pythons 'list'.
User avatar
KthProg
Poster
Poster
 
Posts: 219
Joined: Wed Jan 23, 2013 7:06 pm
Blog: View Blog (0)


Re: General question for programmers

Post by fashizzlepop on Mon Jan 28, 2013 8:49 pm
([msg=72849]see Re: General question for programmers[/msg])

It's a book.
The glass is neither half-full nor half-empty; it's merely twice as big as it needs to be.
User avatar
fashizzlepop
Developer
Developer
 
Posts: 2303
Joined: Sat May 24, 2008 1:20 pm
Blog: View Blog (0)


Re: General question for programmers

Post by KthProg on Mon Jan 28, 2013 8:50 pm
([msg=72850]see Re: General question for programmers[/msg])

C# is the unwanted child of Java and VB.
That is all.
User avatar
KthProg
Poster
Poster
 
Posts: 219
Joined: Wed Jan 23, 2013 7:06 pm
Blog: View Blog (0)


PreviousNext

Return to General

Who is online

Users browsing this forum: No registered users and 0 guests