Victory Road  

Go Back   Victory Road > General > Technology
FAQ Community Today's Posts Search

Notices

 
 
Search this Thread
  #1  
Old September 25, 2012, 10:22:48 AM
SyracuvatTenlii's Avatar
SyracuvatTenlii SyracuvatTenlii is offline
Regigigas
 
Join Date: Jul 2011
Location: Arizona's Tundra
Posts: 746
Default So, Python, right? Me neither...

Okay, seriously, I just had to throw this out there. I'm in my Computer Science I class for my CS major, and I had come in there with the prior "knowledge" that I had to know Javascript relatively well when coming in there, so with a little help of a friend of mine, CodeAcademy, I felt pretty confident. To my surprise, however, it turned out that the subject matter had recently changed, and rather than Java, the class is now centered around a language known as Python.

My true experience with legitamite programming as it is currently is scant, but at least I've heard of languages like C, C++, Java, BASIC, Revolution *shudders* oooooohhhhhh...Revolution...but, Python was something I've never even HEARD of coming into this class. Any input from the good board frequenters as to their opinion/knowledge about this somewhat lesser known language?
  #2  
Old September 25, 2012, 10:37:43 AM
Ditto616's Avatar
Ditto616 Ditto616 is offline
Moderator

 
Join Date: Jul 2009
Location: SW Michigan
Posts: 982
Default

My first programming class was in Python. I came in with next to no prior knowledge in any programming at all and I got a 3.5 in the class, mainly because I have a very bad habit of procrastination. From what I can tell with other languages, Python has very basic commands. You'll be fine... Probably
  #3  
Old September 25, 2012, 11:07:33 AM
Twiggy's Avatar
Twiggy Twiggy is offline
Kyurem
 
Join Date: Oct 2011
Location: Somewhere interesting?
Posts: 2,098
Default

I suppose I have something to thank. We started with web dev stuff, JavaScript and PHP. After that, I think it's C++ time. I wonder whether I'll ever touch Python.
  #4  
Old September 25, 2012, 12:48:14 PM
PokeRemixStudio's Avatar
PokeRemixStudio PokeRemixStudio is offline
Moderator

 
Join Date: Aug 2009
Posts: 2,066
Default

Python is comparable to Java or Javascript. Some notable differences in Python's syntax are the lack of brackets and semicolons, and using colons to indicate a block of code instead. The variable types have different names, like str instead of String. But Python has the same object-oriented capabilities as Java/Javascript.

Code:
class Student:
    def __init__ (self, name, age, gender):
         self.name   = name
         self.age    = age
         self.gender = gender
 
Sue = Student("Susan Miller", 20, "f")
print Sue.age
Output is 20
  #5  
Old September 25, 2012, 01:16:45 PM
JeffTheKiller's Avatar
JeffTheKiller JeffTheKiller is offline
Zoroark
 
Join Date: Aug 2012
Location: Iowa
Posts: 283
Default

Question. (that's not a question) Be quiet Craig. Anyway, so what is python in layman's terms.

Last edited by JeffTheKiller; September 25, 2012 at 01:17:13 PM.
  #6  
Old September 25, 2012, 03:14:58 PM
NismoZ's Avatar
NismoZ NismoZ is offline
Kyurem
 
Join Date: May 2010
Location: Rochester, NY
Posts: 2,014
Default

I have nothing to contribute to the thread but there is a relevant xkcd    
  #7  
Old September 25, 2012, 06:05:01 PM
Cat333Pokémon's Avatar
Cat333Pokémon Cat333Pokémon is offline
Administrator

 
Join Date: Nov 2006
Location: Nevada
Posts: 10,303
Default

This semester will be the first where I will use at least a little Python. I currently know almost nothing about the language, but I have heard of it and seen it run.
  #8  
Old September 25, 2012, 06:11:48 PM
KingOfKYA's Avatar
KingOfKYA KingOfKYA is offline
Volcarona
 
Join Date: Sep 2008
Location: On The PC
Posts: 523
Default

KYA likes python.

You can read everyone code... because it forces everyone to use the same formating.

Python is some times called executable pseudo code. Ether way its good starting language because it makes you use readable code. For example you could do this.

C(like)
Quote:
for( $items in array){ runFunction($item); doThisToo(5)}
or
Quote:
for( $items in array){
runFunction($item);
doThisToo(5)
}
Python You must space it as followes (and no ;(){}[] $ etc...
Code:
for items in array
   runFunction(item)
   doThisToo(5)

Random tip for new programers always set some rules.
My basic rules:
never use plural forms of words.
abrivated names always 3 char
use camel case (forExampleThisIsCamelCase) some like - or _ though ether way pick one and stick to it.

Last edited by KingOfKYA; September 25, 2012 at 06:22:03 PM.
  #9  
Old September 25, 2012, 06:28:58 PM
JeffTheKiller's Avatar
JeffTheKiller JeffTheKiller is offline
Zoroark
 
Join Date: Aug 2012
Location: Iowa
Posts: 283
Default

Quote:
Originally Posted by JeffTheKiller View Post
Question. (that's not a question) Be quiet Craig. Anyway, so what is python in layman's terms.
So I'll take that as a no on the Python for dummies
  #10  
Old September 28, 2012, 05:01:29 PM
Quadcentruo's Avatar
Quadcentruo Quadcentruo is offline
Giratina
 
Join Date: Nov 2009
Location: Unknown area
Posts: 3,684
Default

Quote:
Originally Posted by JeffTheKiller View Post
Question. (that's not a question) Be quiet Craig. Anyway, so what is python in layman's terms.
Python, from what I can gather, is a type of programming code (like Java or C++). It's simply another way to make a program, but with different ways to make the code.
  #11  
Old September 28, 2012, 06:39:02 PM
PokeRemixStudio's Avatar
PokeRemixStudio PokeRemixStudio is offline
Moderator

 
Join Date: Aug 2009
Posts: 2,066
Default

Python's pretty popular among game developers too
  #12  
Old September 28, 2012, 07:06:14 PM
Quadcentruo's Avatar
Quadcentruo Quadcentruo is offline
Giratina
 
Join Date: Nov 2009
Location: Unknown area
Posts: 3,684
Default

Quote:
Originally Posted by PokeRemixStudio View Post
Python's pretty popular among game developers too
If I remember correctly, Python is what Ditto has to use for his game development class.
  #13  
Old September 29, 2012, 08:23:42 AM
Ditto616's Avatar
Ditto616 Ditto616 is offline
Moderator

 
Join Date: Jul 2009
Location: SW Michigan
Posts: 982
Default

Quote:
Originally Posted by Quadcentruo View Post
If I remember correctly, Python is what Ditto has to use for his game development class.

Indeed I did, though it was a really, really, really simple one. There are many different modules, like PyGame, the one that I had to use for the game design. It really broadens out what the language can do. There's even a graphing one, which is kind of useful.
 

Forum Jump


All times are GMT -8.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Victory Road ©2006 - 2024, Scott Cat333Pokémon Cheney
Theme by A'bom and Cat333Pokémon