Bay 12 Games Forum

Please login or register.

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

Author Topic: Learning to code - what, why and how.  (Read 6505 times)

chaoticag

  • Bay Watcher
  • All Natural Pengbean
    • View Profile
Learning to code - what, why and how.
« on: June 10, 2009, 06:03:20 pm »

I have this idea for a Roguelike in my head, but one problem for me is learning to code.

I want to find something that is easy to learn, wont provide headaches and, most importantly, can be learned at home through some sort of tutorial.

It also helps if the code is flexable enough, but I'm sure all languages can make the same program.
Logged

Calvin

  • Bay Watcher
  • @
    • View Profile
Re: Learning to code - what, why and how.
« Reply #1 on: June 10, 2009, 06:08:10 pm »

C++

Lua 2

They aren't hard to learn, and they are very flexible.

It's just learning to how to use it.
Logged

SolarShado

  • Bay Watcher
  • Psi-Blade => Your Back
    • View Profile
Re: Learning to code - what, why and how.
« Reply #2 on: June 10, 2009, 06:17:44 pm »

I've heard that Python's not too hard to learn (never tried it myself) and there's a library (pygame, i think) that a lot of games use.

I use Java and a little Perl. Never tried a making Roguelike. Good luck!
Logged
Avid (rabid?) Linux user. Preferred flavor: Arch

Labs

  • Bay Watcher
  • This aggresion will not stand, man.
    • View Profile
Re: Learning to code - what, why and how.
« Reply #3 on: June 10, 2009, 06:21:10 pm »

Never once coded in my life. I've heard great things about Python though.
Logged
I like to slip into bear caves around midnight and gently caress the carnivore inside before leaving a small cut of fresh fish and sneaking out.

Calvin

  • Bay Watcher
  • @
    • View Profile
Re: Learning to code - what, why and how.
« Reply #4 on: June 10, 2009, 06:32:35 pm »

Python's a mediocre progamming language.

It's simple, but the downfall is that it's simple.
You can't do as much stuff as C++ or lua.
Logged

Mephansteras

  • Bay Watcher
  • Forger of Civilizations
    • View Profile
Re: Learning to code - what, why and how.
« Reply #5 on: June 10, 2009, 06:38:45 pm »

On the other hand, a simple language is a good place to start if you want to learn how to code in general. The fancy stuff can wait until you've got some programs under your belt. Chances are you wouldn't be using any of the complex stuff off the bat anyway.
Logged
Civilization Forge Mod v2.80: Adding in new races, equipment, animals, plants, metals, etc. Now with Alchemy and Libraries! Variety to spice up DF! (For DF 0.34.10)
Come play Mafia with us!
"Let us maintain our chill composure." - Toady One

Calvin

  • Bay Watcher
  • @
    • View Profile
Re: Learning to code - what, why and how.
« Reply #6 on: June 10, 2009, 06:43:30 pm »

On the other hand, a simple language is a good place to start if you want to learn how to code in general. The fancy stuff can wait until you've got some programs under your belt. Chances are you wouldn't be using any of the complex stuff off the bat anyway.

But if you learn Python, then learn C++ or Lua, it'd give you somewhat a hard time.

You'll be writing odd stuff, realizing you made a mistake because the parameters of C++ or Lua doesn't use "Run(scriptsequence)"
Logged

Jack_Bread

  • Bay Watcher
  • 100% FRESH ♥HIPPO♥
    • View Profile
Re: Learning to code - what, why and how.
« Reply #7 on: June 10, 2009, 07:35:00 pm »

http://www.bay12games.com/forum/index.php?topic=30113

I have an idea for a rogue-like, too. The above link goes to Dasleah's Roguelike Development Megathread. There is an interesting tutorial under C++ which tells you how to use C++ by first having you code a roguelike. It stops right after drawing the room though. :P

Virex

  • Bay Watcher
  • Subjects interest attracted. Annalyses pending...
    • View Profile
Re: Learning to code - what, why and how.
« Reply #8 on: June 10, 2009, 07:48:39 pm »

You could start with basic, since it's quite, well, basic.

Other then that, you can learn any language (except for brainfuck, but seriously who the hell would attempt to write a rougelike in that??), if you´ve got the right tutorials-books. That´s also something to consider; getting yourself a good book might help a LOT, since quite frankly, on-line tutorials are often crappy...
Logged

Duke 2.0

  • Bay Watcher
  • [CONQUISTADOR:BIRD]
    • View Profile
Re: Learning to code - what, why and how.
« Reply #9 on: June 10, 2009, 07:50:51 pm »

 Let me tell you any book you get from the Library is basically a copy of whatever dummies book there is on the subject. And let me tell you, it isn't much better than online tutorials.

 So unless you have a book you have to buy or know a place online where I might be able to take a peek at such things(Cough cough), prepare for spending a couple-hundred on learning.

 Edit: Or somebody teaches you.
Logged
Buck up friendo, we're all on the level here.
I would bet money Andrew has edited things retroactively, except I can't prove anything because it was edited retroactively.
MIERDO MILLAS DE VIBORAS FURIOSAS PARA ESTRANGULARTE MUERTO

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: Learning to code - what, why and how.
« Reply #10 on: June 10, 2009, 08:19:53 pm »

With all the hype about C++, it seems everyone forgets about good old C.
It has the advantage of being designed for personal use  like almost ALL good languages rather than for other people to use it.

At the very least, C is a great way to get used to semicolons and proper bracket style before moving on, since you don't have to worry about all those fancy classes and stuff.
Logged
Eh?
Eh!

Armok

  • Bay Watcher
  • God of Blood
    • View Profile
Re: Learning to code - what, why and how.
« Reply #11 on: June 10, 2009, 11:32:24 pm »

I'd say Python to.
That, or, if you are a bit more ambitious, Linoleum...
Logged
So says Armok, God of blood.
Sszsszssoo...
Sszsszssaaayysss...
III...

Jack_Bread

  • Bay Watcher
  • 100% FRESH ♥HIPPO♥
    • View Profile
Re: Learning to code - what, why and how.
« Reply #12 on: June 11, 2009, 12:08:41 am »

I'm actually going to try to make a roguelike using Game Maker. I am currently putting in every character from the Extended ASCII Table in as a sprite. :P
Very Tedious.

Cthulhu

  • Bay Watcher
  • A squid
    • View Profile
Re: Learning to code - what, why and how.
« Reply #13 on: June 11, 2009, 12:57:46 am »

Yeah, that was my big problem with GameMaker.  It was easy to use but it took forever to do things.
Logged
Shoes...

Jack_Bread

  • Bay Watcher
  • 100% FRESH ♥HIPPO♥
    • View Profile
Re: Learning to code - what, why and how.
« Reply #14 on: June 11, 2009, 01:31:32 am »

I've finished doing that.
Pages: [1] 2 3 ... 5