Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 [2] 3

Author Topic: The Python Thread  (Read 2480 times)

Max White

  • Bay Watcher
  • Still not hollowed!
    • View Profile
Re: Looking for a C++ compiler (?)
« Reply #15 on: September 07, 2011, 07:53:25 pm »

*Sigh*
And another one falls into the bad practice of a duck typing language. Seems the dark side is winning.

jc6036

  • Bay Watcher
  • Bilious Slick
    • View Profile
Re: Looking for a C++ compiler (?)
« Reply #16 on: September 07, 2011, 08:55:06 pm »

I'm going to have to look into a more practical language eventally, but I just want to get some comprehension down first with a relativitaly easy language.
Logged

Lectorog

  • Bay Watcher
    • View Profile
Re: Looking for a C++ compiler (?)
« Reply #17 on: September 07, 2011, 09:27:15 pm »

I'm going to have to look into a more practical language eventally, but I just want to get some comprehension down first with a relativitaly easy language.
If you want an easy language as an introduction to programming in general, learn HTML. Really (really) easy, and teaches you the basics of programming in general. That can also be followed-up by CSS and JavaScript, which are easy to learn and work with HTML.

I went to a summer camp for computer science; while I already knew HTML, our class learned enough HTML to create a rather advanced web page in about 8 hours. It's not hard.
Logged

Fenrir

  • Bay Watcher
  • The Monstrous Wolf
    • View Profile
Re: Looking for a C++ compiler (?)
« Reply #18 on: September 07, 2011, 09:34:20 pm »

I'm going to have to look into a more practical language eventally, but I just want to get some comprehension down first with a relativitaly easy language.
If you want an easy language as an introduction to programming in general, learn HTML. Really (really) easy, and teaches you the basics of programming in general. That can also be followed-up by CSS and JavaScript, which are easy to learn and work with HTML.

I went to a summer camp for computer science; while I already knew HTML, our class learned enough HTML to create a rather advanced web page in about 8 hours. It's not hard.

Are you serious? HTML is not a programming language, and so it will not teach you the basics of programming. You simply must be jesting, so I apologize if I missed the joke.
Logged

Lectorog

  • Bay Watcher
    • View Profile
Re: Looking for a C++ compiler (?)
« Reply #19 on: September 07, 2011, 09:39:27 pm »

I'm going to have to look into a more practical language eventally, but I just want to get some comprehension down first with a relativitaly easy language.
If you want an easy language as an introduction to programming in general, learn HTML. Really (really) easy, and teaches you the basics of programming in general. That can also be followed-up by CSS and JavaScript, which are easy to learn and work with HTML.

I went to a summer camp for computer science; while I already knew HTML, our class learned enough HTML to create a rather advanced web page in about 8 hours. It's not hard.

Are you serious? HTML is not a programming language, and so it will not teach you the basics of programming. You simply must be jesting, so I apologize if I missed the joke.
Sorry there. It's not a programming language, but it is a form of coding (if I'm using the word correctly). It just gives a feel for the overall process. It in no way prepares you for actual programming.
EDIT: I guess... it can help teach you how to learn?
Logged

Fenrir

  • Bay Watcher
  • The Monstrous Wolf
    • View Profile
Re: Looking for a C++ compiler (?)
« Reply #20 on: September 07, 2011, 09:47:20 pm »

Either way, HTML is just a good thing to know anyway.
Logged

Max White

  • Bay Watcher
  • Still not hollowed!
    • View Profile
Re: Looking for a C++ compiler (?)
« Reply #21 on: September 07, 2011, 10:05:32 pm »

HTML is a good way to learn about markup languages, but not programming languages. Having said that, XML is a handy tool to know how to use, and HTML would make a good introduction to that I guess.

But seriously, nobody uses HTML anymore.

jc6036

  • Bay Watcher
  • Bilious Slick
    • View Profile
Re: Looking for a C++ compiler (?)
« Reply #22 on: September 07, 2011, 10:08:29 pm »

I'm already in a web design class, and HTML is on it's way, and I knew a little already sooo. . .yeah. Python is really awesome. Just now getting some stuff absorbed, and am currently learning about functions like if and else. I already knew a tiny bit from another language that I dabbled in, and it's helping a lot. I am having trouble with the libtcodpy module, however, as I can't seem to get it imported in order to begin work on the game with rogue basins instructions. :-/
Logged

David Holmes

  • Bay Watcher
    • View Profile
Re: Looking for a C++ compiler (?)
« Reply #23 on: September 08, 2011, 07:29:05 pm »

*Sigh*
And another one falls into the bad practice of a duck typing language. Seems the dark side is winning.

You do not know the power of the dark side!

I'm going to have to look into a more practical language eventally, but I just want to get some comprehension down first with a relativitaly easy language.

I would say Python is an extremely practical language for the tasks for which it's suited.  Java is a very practical language for many other tasks. Even C++ has tasks for which it's the most practical, but that category has been shrinking for years and will likely continue to do so.

People have all sorts of religion about programming languages, but in reality choice of language should be made based on suitability for the task at hand. Every mainstream language has some large category of problems it was excellent at solving at least at one time, otherwise it would never have become mainstream.

If you're serious about becoming a programmer, you'll likely learn and use all three and more.  I interact with all three on a daily basis, and while circumstances cause me to use Java the most, Python is still my favorite of those.
Logged

Max White

  • Bay Watcher
  • Still not hollowed!
    • View Profile
Re: Looking for a C++ compiler (?)
« Reply #24 on: September 08, 2011, 07:32:38 pm »

Only a sith would deal in such informal logic!

jc6036

  • Bay Watcher
  • Bilious Slick
    • View Profile
Re: Looking for a C++ compiler (?)
« Reply #25 on: September 08, 2011, 07:34:15 pm »

Welp, I just looked at the glossary, and found out what duck typing is. Basically, what you see is what you get. Or, If it looks like a duck, and quacks like a duck, then it must be a duck. Whats so bad about that?
Logged

Max White

  • Bay Watcher
  • Still not hollowed!
    • View Profile
Re: Looking for a C++ compiler (?)
« Reply #26 on: September 08, 2011, 07:36:22 pm »

Not exactly. More like if you make it walk like and duck, and make it talk like a duck, and it agrees, it might as well be a duck.

You can't program defensively. People can stitch together what ever they want however they want, and store the most inappropriate things in random places.

Duelmaster409

  • Bay Watcher
  • [DOES_NOT_FIGHT]
    • View Profile
Re: Looking for a C++ compiler (?)
« Reply #27 on: September 08, 2011, 08:31:45 pm »

You could go balls-deep using nothing but notepad or Notepad++ and g++ compiling via command line (MinGW). To make this task easier, you could use a .bat file to automatically compile all your code in a snap.

If you want to go for a more sane approach, Code::Blocks is a good choice.
Logged
Dwarf fortress: Teaching uni level geology to sadistic elf killers for years.

jc6036

  • Bay Watcher
  • Bilious Slick
    • View Profile
Re: Looking for a C++ compiler (?)
« Reply #28 on: September 08, 2011, 08:41:22 pm »

I need a little bit of help here. Ok, So I've downloaded python and libtcod, but whenever I try to import libtcod I get a Windows error 126:the specified module could not be found error. The solution on Roguebasin isn't working, and it's keeping me from progressing from even the first step on the rogue like tutorial. Can I have some advice on how to proceed, since I really need that module?
Logged

David Holmes

  • Bay Watcher
    • View Profile
Re: Looking for a C++ compiler (?)
« Reply #29 on: September 08, 2011, 09:12:40 pm »

How are you running it?  Do you have your .py file and the module files you need all in the same directory?  Are you running it from a command line out of that directory?
Logged
Pages: 1 [2] 3