News for hackers. Stuff that matters.
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()