Bay 12 Games Forum

Please login or register.

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

Author Topic: Learning Programming  (Read 4045 times)

Virex

  • Bay Watcher
  • Subjects interest attracted. Annalyses pending...
    • View Profile
Re: Learning Programming
« Reply #30 on: June 14, 2011, 08:46:34 am »

Goto is not inherently evil (ask Donald Knuth if you don't believe me), but it's there for corner cases. If you can cut out 3 nested loops and a bunch of return statements with a goto then it could be useful (assuming people can still follow your code), but usually you get the opposite effect. (Notable exception being most Assembly languages where goto is the instruction to turn to when you need complex conditional statements, loops or even recursion)
« Last Edit: June 14, 2011, 08:49:05 am by Virex »
Logged

ILikePie

  • Bay Watcher
  • Call me Ron
    • View Profile
Re: Learning Programming
« Reply #31 on: June 14, 2011, 08:54:47 am »

Yeah, most loops are just a set of gotos (or jumps) and an if statement.

Also, I would definitely give C# a try (on Windows, of course) before using C++. Actually, I'd try anything before trying C++.
Logged

Virex

  • Bay Watcher
  • Subjects interest attracted. Annalyses pending...
    • View Profile
Re: Learning Programming
« Reply #32 on: June 14, 2011, 09:01:16 am »

Logged

zeet

  • Bay Watcher
  • Programming lunatic.
    • View Profile
Re: Learning Programming
« Reply #33 on: June 14, 2011, 09:13:14 am »

People are making c++ sound like some dark magic better left untouched.

First of all,the idea that c++ is super unsafe is kinda an overstatement. Yes, you can do operations that would crash the computer and go unnoticed by the compiler, but for that you have to actually know how to get around many of the builtin safetynet of errors the compiler will throw if you make bad code.

Hard is probably spot on, the language is static, so you need to know your programflow quite well before you can successfully program. But when you learn to use polymorphism and templates, you can actually avoid many of the hardships of normal static programming, and just focus on programing. But it is still very rewarding to learn.
Logged

ILikePie

  • Bay Watcher
  • Call me Ron
    • View Profile
Re: Learning Programming
« Reply #34 on: June 14, 2011, 09:23:46 am »

I didn't say it's "dark magic," I just said it isn't a language I'd recommend starting with. It won't crash your computer, and it is very rewarding to learn, but the various .NET languages are a much better place to start.

Anything?
That is so cool. Also, Brainfuck.
Logged

zeet

  • Bay Watcher
  • Programming lunatic.
    • View Profile
Re: Learning Programming
« Reply #35 on: June 14, 2011, 09:30:58 am »

I prefer ook!

http://www.dangermouse.net/esoteric/ook.html

Finally a programming language for orangutans.
Logged

MorleyDev

  • Bay Watcher
  • "It is not enough for it to just work."
    • View Profile
    • MorleyDev
Re: Learning Programming
« Reply #36 on: June 14, 2011, 11:51:31 am »

Heh Brainfuck...actually a Brainfuck interpreter is one thing I'd recommend as a good (relatively) simple programming challenge once you think you're ready.

As for a starting language, well....You'll never see me recommending starting with a BASIC variant despite my own experience starting with QuickBASIC and then FreeBASIC. Likewise you'll never see me recommend anything like GameMaker.

C# is what I'd recommend, though I know a lot of people recommend Java...I wouldn't, but that's because I just don't like it much xD I can use it and do a lot with it but I still don't like it -,.,-
« Last Edit: June 14, 2011, 11:55:05 am by MorleyDev »
Logged

Dwarf

  • Bay Watcher
  • The Light shall take us
    • View Profile
Re: Learning Programming
« Reply #37 on: June 14, 2011, 03:57:22 pm »

Logged
Quote from: Akura
Now, if we could only mod Giant War Eagles to carry crossbows, we could do strafing runs on the elves who sold the eagles to us in the first place.

Tyius

  • Bay Watcher
    • View Profile
Re: Learning Programming
« Reply #38 on: June 14, 2011, 04:01:05 pm »

Lol does anyone "like" Java?
Logged
The murders are for their own good. I regret none of them. All were sound decisions made to balance the scales in favor of prosperity.

Virex

  • Bay Watcher
  • Subjects interest attracted. Annalyses pending...
    • View Profile
Re: Learning Programming
« Reply #39 on: June 14, 2011, 04:19:27 pm »

Lol does anyone "like" Java?
I like Clojure, does that count?
Logged

Dwarf

  • Bay Watcher
  • The Light shall take us
    • View Profile
Re: Learning Programming
« Reply #41 on: June 14, 2011, 04:28:03 pm »

Malbolge is much more brainfucky than brainfuck.
Logged
Quote from: Akura
Now, if we could only mod Giant War Eagles to carry crossbows, we could do strafing runs on the elves who sold the eagles to us in the first place.

Max White

  • Bay Watcher
  • Still not hollowed!
    • View Profile
Re: Learning Programming
« Reply #42 on: June 14, 2011, 04:31:33 pm »

*Sob*
I just wanted to join in...

EDIT: Also... Anything!

Levi

  • Bay Watcher
  • Is a fish.
    • View Profile
Re: Learning Programming
« Reply #43 on: June 14, 2011, 04:44:34 pm »

*Sob*
I just wanted to join in...

EDIT: Also... Anything!

Ha, I laughed at "IM IN YR LOOP UPPIN YR VAR TIL BOTH SAEM VAR AN 10"
Logged
Avid Gamer | Goldfish Enthusiast | Canadian | Professional Layabout

Max White

  • Bay Watcher
  • Still not hollowed!
    • View Profile
Re: Learning Programming
« Reply #44 on: June 14, 2011, 04:48:56 pm »

LOLCODE: Best programmers joke since 'Freinds can access each others private attributes'
Pages: 1 2 [3] 4 5