English 中文(简体)
Finding the joy of Javascript or searching for another UI-focused languages?
原标题:

I m a GUI designer/interactive musician wanting to improve my programming chops. I already know the basics(variables, loops, arrays, if/else, some logic), but I m looking to learn in a structured way. I ve seen some great books/tuts on Python and Processing (and even Flash)that aim to teach the fundamentals of programming in a fun and accessible. I ve drooled on these books and considered learning Python many times, but to be honest, I don t know if these languages could be usefull for me on a professional sense. I need something directly related to interactive interface scripting/programming and JS seems to be my best bet (I ve been trying AS3 but the OOP stuff made it somewhat hard for me).

I know JS can be fun (Jquery is). But I just can t find learning sources that are as compelling as the aforementioned material. All I find are tutorials and books that teach web development topics, such as form validation and ajax. I ve tried looking for JS game frameworks, but all of them seem to be built for experienced developers and lack documetation or begginer s tutorials.

So, any directions on finding the joy in JS? Perhaps suggestions on other UI-focused languages ? Thanks for reading this long question.

问题回答

Have you had a look at Head-First Javascript? It seems to me to be a programming tutorial that s not inferior to the best ones available for, say, Python -- sure, it deals with web programming too (while a Python-based book might not), but, why s that extra info a bad thing?

Javascript isn t so much a "joy" as it is a "necessary evil". jQuery just makes it less evil. Actually that s not entirely fair: part of the "evilness" of Javascript is just all the cross-browser difference, not the language itself (which is actually quite modern).

But like learning anything, I don t think it s all that fun if you re just learning for learning s sake. Even a good book, tutorial or other resource won t do that (at least for me). I find it far more rewarding (and successful) if I have something in particular I m trying to achieve or do.

If you know basic control structures and syntax then you know enough to pick something and try and implement it. You ll get stuck along the way (a lot early on) as you try and figure out actually how to do things. You ll probably do some of them really badly but that s OK. All that experience gives you a useful context when you do more reading and can appreciate the actual problems that something is discussing or solving.

If you are really looking for the joy of GUI programming, then I suggest you C#. Get yourself VS 2008 or above.

Just imagine, you have a great GUI designers that allow you to script you layout through drag and drop, and all you have to do, is to fill in the proper event and the program will just run like magic. Hand coding is kept to the minimum

Any programming language popular enough to have books written about it that you ve seen in stores will be professionally useful to you. I think you have a good approach in looking for something that excites you. If those Python books make your heart race, pick one up and dive in. If you find something else that you love, go for it. You re gonna need that love to get you through all the hard work and frustration of learning to program.

You might want to take a look at Tcl/Tk. Although the language is sort of arcane, and the library is at least in principle available in other languages, notably python and perl, the toolkit in its native language is really very clear and concise.

I think you want to work on web interface programming not GUI (windows forms).. Jquery is the best way to go and when it comes to web dev there is no escaping from Javascript.. I try and comiple some good sites .. give me some time

I suggest finding the joy in JavaScript. It sounds to me like your market may be in the browser, in other words, downloaded applications aren t what you re looking for. If this is the case, you don t have much of a choice: JavaScript or Flash.

If you had trouble with OOP, I suggest you find the joy in that first. As the joy of both JavaScript and AS3 (as you already know) can only be found once you find the joy in OOP, which will server you far better as a programmer in general.

As far as books, I recommend, JavaScript The Good Parts by Douglas Crockford, who is widely considered one of the top authorities on the subject.

Ok this is an old post, hope this still be useful to you. Try this book: "Modern Javascript Develop and Design" by Larry Ullman, he s a great author with a very clear and easy to follow style. I have learn PHP basic, intermediate and advanced with his books, even some OOP, so I think this could be a great tool for your learning path.





相关问题
Can Django models use MySQL functions?

Is there a way to force Django models to pass a field to a MySQL function every time the model data is read or loaded? To clarify what I mean in SQL, I want the Django model to produce something like ...

An enterprise scheduler for python (like quartz)

I am looking for an enterprise tasks scheduler for python, like quartz is for Java. Requirements: Persistent: if the process restarts or the machine restarts, then all the jobs must stay there and ...

How to remove unique, then duplicate dictionaries in a list?

Given the following list that contains some duplicate and some unique dictionaries, what is the best method to remove unique dictionaries first, then reduce the duplicate dictionaries to single ...

What is suggested seed value to use with random.seed()?

Simple enough question: I m using python random module to generate random integers. I want to know what is the suggested value to use with the random.seed() function? Currently I am letting this ...

How can I make the PyDev editor selectively ignore errors?

I m using PyDev under Eclipse to write some Jython code. I ve got numerous instances where I need to do something like this: import com.work.project.component.client.Interface.ISubInterface as ...

How do I profile `paster serve` s startup time?

Python s paster serve app.ini is taking longer than I would like to be ready for the first request. I know how to profile requests with middleware, but how do I profile the initialization time? I ...

Pragmatically adding give-aways/freebies to an online store

Our business currently has an online store and recently we ve been offering free specials to our customers. Right now, we simply display the special and give the buyer a notice stating we will add the ...

Converting Dictionary to List? [duplicate]

I m trying to convert a Python dictionary into a Python list, in order to perform some calculations. #My dictionary dict = {} dict[ Capital ]="London" dict[ Food ]="Fish&Chips" dict[ 2012 ]="...

热门标签