News for hackers. Stuff that matters.
Re:Which programming language...? by donw on Thursday May 06, 2010 @06:10PM (#1325893)
I don't; it's obviously written by Yet Another Bitter Python Hacker, and isn't even really that funny.

I think that the best First Programming Language to learn would still be C, followed by some flavor of Lisp. C, because it's both practical and teaches you how your computer works at a low level, and Lisp, because it shows you how powerful computers can be when you strip them down to the mathematical bone.

Everything else is just some balance between the two.

Re:Which programming language...? by rimantas on Thursday May 06, 2010 @06:50PM (#1326005)

  isn't even really that funny.
Yep, this one was better: http://james-iry.blogspot.com/2009/05/brief-incomplete-and-m...
Re:Which programming language...? by DanielRibeiro on Thursday May 06, 2010 @09:34PM (#1326404)
Not only better, but also factual. Even Neal Gafter agreed with it: http://twitter.com/gafter/status/1739264519
Re:Which programming language...? by PostOnce on Thursday May 06, 2010 @07:24PM (#1326076)
I 'learned' C first, never did anything useful. C is not beginner friendly simply because it provides no instant gratification. Python is instant gratification for newbies. You can make a GUI in five minutes. In C you have to READ A BOOK first. Console apps don't thrill young people. GUIs do.

My two cents, take it for what it's worth.

Re:Which programming language...? by runT1ME on Thursday May 06, 2010 @08:31PM (#1326271)
Actually, this is the best push for Python i've ever seen. Its not a great production grade language, but I agree, getting people interested in programming is more important than getting them to grok the hard parts of programming (C/C++)
Re:Which programming language...? by yogione on Thursday May 06, 2010 @09:42PM (#1326425)
How do I make a GUI in 5 minutes using python. Can you please point me to a link / blog post. thanks.
Re:Which programming language...? by PostOnce on Thursday May 06, 2010 @10:17PM (#1326507)
google 'tkinter'

Here's an example I just made:

#-----begin------

from Tkinter import * #part of standard library

def reverse():

    s=entrybox.get() #get text from entry widget

    entrybox.delete(0,END) #delete text from entry widget

    entrybox.insert(0,s[::-1]) #reverse text, insert it
root=Tk() #create a window

entrybox=Entry(root) #create an entry widget

entrybox.pack() #display it in the window

button1=Button(root, text='Press Me', command=reverse)

button1.pack()

entrybox.insert(0,'type here') #add a default value

root.mainloop()

Re:Which programming language...? by jacoblyles on Thursday May 06, 2010 @06:27PM (#1325943)
It is interesting that you don't recommend any languages with a proper type system. Do you believe types are not important?
Re:Which programming language...? by cageface on Thursday May 06, 2010 @07:26PM (#1326078)
I'm guessing you're referring to languages like Haskell here. I think the work people are doing on types in those languages is fascinating but it also seems like work in progress and I wouldn't recommend those languages to a beginner. The key concepts in the lisp-like languages (closures, higher-order functions, garbage collection etc) are easier to understand in a dynamic language IMO.
Re:Which programming language...? by runT1ME on Thursday May 06, 2010 @08:33PM (#1326275)
>The key concepts in the lisp-like languages (closures, higher-order functions, garbage collection etc) are easier to understand in a dynamic language IMO.

How so? F# and Scala, and Haskell aren't dynamically typed languages...

Re:Which programming language...? by angrycoder on Thursday May 06, 2010 @06:50PM (#1326006)
I'm gonna take a guess and say he has been programming for more than 2 years and realizes that types really don't matter.
Re:Which programming language...? by donw on Thursday May 06, 2010 @06:50PM (#1326007)
Define 'proper' type system; C is a static, strongly typed language, with the important feature that the type system is simple enough for an inexperienced programmer to understand and be capable of implementing.
Re:Which programming language...? by Avshalom on Thursday May 06, 2010 @07:16PM (#1326063)
I'm pretty sure C is considered weak in it will automatically cast from one type to another.
Re:Which programming language...? by camccann on Thursday May 06, 2010 @08:14PM (#1326219)
C's "types" are just interchangeable methods of interpreting a pile of bits. That's not a strong type system, that's types on the honor system.
Re:Which programming language...? by Miky on Thursday May 06, 2010 @07:31PM (#1326095)
C's type system is restrictive enough to get annoying occasionally, but doesn't protect you from loads of things it could, since it is not strongly typed.
Re:Which programming language...? by calcnerd256 on Thursday May 06, 2010 @06:52PM (#1326010)
By "proper" do you mean mandatory? Otherwise, people are going to yell "CLOS" at you.