Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: Simulator Enhancements (03/13/24)

Author Topic: Learning to code.  (Read 9173 times)

Upgradecap

  • Admiral
  • *****
  • Posts: 5422
  • CEO of the TimCORP
    • View Profile
Learning to code.
« on: September 27, 2012, 07:08:56 AM »

So, i eventually decided that i'd give one of the coding languages a shot, and decided i'd give perl a chance, since it seems to be most simplistic out of them. Now, what i ask is if there are any good tutorials on a first script or anything of the sort for that? Anything?

:D
Logged

Sproginator

  • Admiral
  • *****
  • Posts: 3592
  • Forum Ancient
    • View Profile
Re: Learning to code.
« Reply #1 on: September 27, 2012, 08:09:22 AM »

So, i eventually decided that i'd give one of the coding languages a shot, and decided i'd give perl a chance, since it seems to be most simplistic out of them. Now, what i ask is if there are any good tutorials on a first script or anything of the sort for that? Anything?

:D
Try the basic hello world script :)
Logged
A person who's never made a mistake, never tried anything new
- Albert Einstein

As long as we don't quit, we haven't failed
- Jamie Fristrom (Programmer for Spiderman2 & Lead Developer for Energy Hook)

Thaago

  • Global Moderator
  • Admiral
  • *****
  • Posts: 7174
  • Harpoon Affectionado
    • View Profile
Re: Learning to code.
« Reply #2 on: September 27, 2012, 08:42:38 AM »

Go with Python!  :P
Logged

Sproginator

  • Admiral
  • *****
  • Posts: 3592
  • Forum Ancient
    • View Profile
Re: Learning to code.
« Reply #3 on: September 27, 2012, 08:50:45 AM »

Visual Basic is easy, and I can help with that one
Logged
A person who's never made a mistake, never tried anything new
- Albert Einstein

As long as we don't quit, we haven't failed
- Jamie Fristrom (Programmer for Spiderman2 & Lead Developer for Energy Hook)

JaytheJuggernaut

  • Ensign
  • *
  • Posts: 19
    • View Profile
Re: Learning to code.
« Reply #4 on: September 27, 2012, 09:02:06 AM »

I'm not into programming, took a basics course and decided it wasn't for me. The course itself was very well written. I don't know how it's changed, but this might interest you:
Udacity Beginner Python

Coursera probably has some kind of course as well.

EDIT: Thanks, icepick!

« Last Edit: September 27, 2012, 10:02:53 AM by JaytheJuggernaut »
Logged

icepick37

  • Admiral
  • *****
  • Posts: 1788
  • Go.
    • View Profile
Re: Learning to code.
« Reply #5 on: September 27, 2012, 09:20:39 AM »

;)  <-- click me

This is how you do it:

Code
[url=http://lmgtfy.com/?q=perl+beginner+tutorial];)[/url]
Logged
“I [may] not agree with a word that you say, but I will defend to the death your right to say it”
- Voltaire

Rowanas

  • Commander
  • ***
  • Posts: 140
    • View Profile
Re: Learning to code.
« Reply #6 on: September 27, 2012, 03:50:23 PM »

Programming is difficult stuff. It's like learning an entirely different language, and if you don't get it right first time, everyone in the room will look at you blankly.

I don't have the head for programming "grammar", so I can only recognise and find bugs, I can't actually code anything myself. I broke the Hello World I made at 7.
Logged

Sproginator

  • Admiral
  • *****
  • Posts: 3592
  • Forum Ancient
    • View Profile
Re: Learning to code.
« Reply #7 on: September 28, 2012, 01:34:19 AM »

Upgrade, start off with Visual Basic, it's object oriented so it a lot simpler, especially due to how it's all GUI based
Logged
A person who's never made a mistake, never tried anything new
- Albert Einstein

As long as we don't quit, we haven't failed
- Jamie Fristrom (Programmer for Spiderman2 & Lead Developer for Energy Hook)

Rowanas

  • Commander
  • ***
  • Posts: 140
    • View Profile
Re: Learning to code.
« Reply #8 on: September 28, 2012, 01:48:28 AM »

I wouldn't start with an object oriented language. Learning to couch things within other things is an additional trouble for people just starting out. Personally, I'd start with C, and indeed, I did. It's epic-classic, and guides abound for it. After that, you move on up to C++ (Object oriented) and that should also give you a pretty solid foundation for java, before moving out to other languages.
Logged

mendonca

  • Global Moderator
  • Admiral
  • *****
  • Posts: 1159
    • View Profile
Re: Learning to code.
« Reply #9 on: September 28, 2012, 03:58:14 AM »

I get on okay with Python, at least to a basic level.

Took me about 6 months of trying to get my head around the nature of object-oriented programming, but found that through sheer force of will and bloody-mindedness, it eventually made sense.

This is with a background of some C64 basic.

I remember being completely and utterly bemused though, until that watershed moment where it all seemed to just make sense.

Whatever you do, stick with it and don't be afraid to mess up and try and fix your mistakes, even if you feel like putting your face through the screen.

Also:

When you have a bug which you can't identify - It is NEVER an error with the language - it is always your fault, despite how hard you might try and convince yourself.
Logged


"I'm doing it, I'm making them purple! No one can stop me!"

Upgradecap

  • Admiral
  • *****
  • Posts: 5422
  • CEO of the TimCORP
    • View Profile
Re: Learning to code.
« Reply #10 on: September 28, 2012, 04:39:36 AM »


When you have a bug which you can't identify - It is NEVER an error with the language - it is always your fault, despite how hard you might try and convince yourself.

Yeah, i did get that in my first few scripts (which i pretty much hand-copied (meaning that i looked at the on the website, and then wrote the script)), but luckily, perl has a feature which looks out for various beginner mistakes of sorts. Haha, grasping any of the languages isn't hard, but it does take time. Luckily, i've been able to wrap my head around perl quite easily. And the tutorials it has (including the scripts it has too) are pretty easy and you can learn alot from them.
Thanks for all the advices, though! :D
Logged