Live data from Hacker News

Which programming language...?

iamgabeaudick.tumblr.com

31–37 of 37 posts

Re: Which programming language...?

#31
post #30

Earlier quoted context omitted.

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.

How do I make a GUI in 5 minutes using python. Can you please point me to a link / blog post. thanks.

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...?

#32
post #14
post #6

> To achieve a magical sense of childlike wonder that you have a hard time differentiating from megalomania: Objective C I felt no childlike wonder while doing Objective C and this compared to Java. It's less verbose, but it's nothing that good about it. It did remind me of lisp but just barely([]). Oh, an memory management wasn't something I was looking forward to...

less verbose, really? People are giving Java crap for having to do string1.equals(string2) instead of string1 == string2, but what about [string isEqualToString:string2]. Also concating strings in Objective-C makes my eyes bleed. I still like the dynamic aspects of the language (selectors etc.) though.

You're talking about Cocoa, not Objective-C. It's best to separate them, since some people love Cocoa but hate Objective-C and vice versa.

Re: Which programming language...?

#33
post #25
post #5

These posts make me sad. If you are in a position to choose the language you're working in, choose the one that makes you and your team happy (in a gestalt sense, of course). I don't mean to be overly reductionist. But the languages that I'm currently happiest with are statically-typed, compiled, and run on the JVM. When I'm in a position to choose, I opt for the one in which myself and my coworkers are most producti…

> But the languages that I'm currently happiest with are statically-typed, compiled, and run on the JVM. But you are sane. So many here...aren't...

How is it insane to prefer Ruby or Clojure or even C++? You may happen to agree with his preference, but there's a difference between saying, "yes, I prefer those languages too!" and "everyone who prefers any other language is insane."

Re: Which programming language...?

#36
We can bitch about how language implementations never live up to our ideals every day of the week, but people trying to get good advice on where to start get caught in the crossfire.

Heck, I started with BASIC, followed by C++. Now that I've got those out of the way, I know I can tackle all kinds of bullshit.

Python still seems most reasonable as a first language, to me. Not my favorite, these days, but local maxima, you know? (Probably followed by C, then Prolog. Lua and Erlang are practical syntheses, and should be picked up easily afterward.)

Re: Which programming language...?

#37
post #5

These posts make me sad. If you are in a position to choose the language you're working in, choose the one that makes you and your team happy (in a gestalt sense, of course). I don't mean to be overly reductionist. But the languages that I'm currently happiest with are statically-typed, compiled, and run on the JVM. When I'm in a position to choose, I opt for the one in which myself and my coworkers are most producti…

For someone who is completely new to programming, "statically-typed, compiled, run on the JVM" means about as much as "made-of-whale-bones, faster-than-light, and eleven-pounds-to-the-dollar". Just a thought, as long as we're still talking about telling new programmers where to start.
Post reply on HN