Yahoo! Launches Python Developer Center 125
SimonW writes "Yahoo! has launched a Python Developer Center as part of their Developer Network. The new site explains how to access Yahoo!'s many web service APIs using Python, and includes tutorials on using Python with REST, JSON, XML and RSS. The site joins Yahoo!'s existing developer centers for PHP and JavaScript."
Javascript (Score:5, Insightful)
Python developer, I think this is great. I'm glad that Python is gaining more acceptance.
If the quality is on par with their Javascript library, we're in for a real treat
Re:Javascript The 'L' Word. (Score:2)
The web already has a Lisp dialect. It's called XML.
Re:Javascript The 'L' Word. (Score:1)
You're not helping things. (Score:5, Insightful)
And yes, Scheme is a great language, and I love it, but it's not the best thing for every situation. If you truly think one language is the best choice for everything, then you're a total idiot.
Also, no even slightly popular browser supports client side scripting with Scheme, and most web hosts don't offer server-side scripting with it either.
Re:You're not helping things. (Score:1)
That's right! If you write applications that require fewer than 5 different languages for ongoing maintenance, you're just fitting a square peg into a round hole! You're just one of the "I have a hammer so everything is a nail" people! Your custom JVM written in C should be interpreting java byte codes that have embedded Python scripts that build Javascript output that interpret TCL for maximum flexibility! Bah
Having it both ways (Score:1)
First to insult me as a Lisp bigot, then you try to associate yourself with it. Amusing! You Python bottom feeders shouldn't be so sensitive.
Re:Having it both ways (Score:2)
Re:Rogues gallery of languages (Score:2)
I could live with it (Score:2)
I can't say I have specialized in it, but I have used it. If you are going to program with side effects (OO) it doesn't get any simpler. I could live with it. How can anyone explain the madness of Python's fashionability over smalltalk?
Re:I could live with it (Score:1)
2. Libraries.
Re:I could live with it (Score:2)
Re:I could live with it (Score:2)
Let's take an example:
I don't like C++ as a language. But I much rather develop a Win32 database front-end in C++ Builder rather than Python. Why? Because this specific tool was perfected for that specific task with a proper IDE and a great framework. Likewise, there are tasks for which Python is the bes
Re:Rogues gallery of languages (Score:2)
Oh is it?
Scheme with or without macros?
Scheme without macros is a laughably weak language compared to Python.
Scheme with macros can not be said to be simpler than Python.
More expressive? Show me any good expressive Scheme program that can not be expressed with round-the-same-length Python program, that is also easier on the eyes?
Re:Rogues gallery of arguments (Score:1)
Re:Rogues gallery of arguments (Score:2)
Can you do it? Saying "Scheme is more expressive" requires some backing up.
And there was still no reply about Scheme with or without macros.
Misconceptions about scheme (Score:2)
Some do. I use yasos which is part of slib. You must be a C++ person who doesn't like macros because one of the priests of strong typing told you not to. A pity. Macros are an irreplacable feature being forgotten now in dumbed down languages. Read Paul Graham's On Lisp someday and get clued in.
???
Scheme supports Lists, vectors, and alists and iteration natively.
Re:Misconceptions about scheme (Score:1)
I am very experienced in C++, and it totally sucks. Yet you go ahead and make the assumption that I would advocate usage of such an RSI-inducing language. I was also using Lisp decades ago when you were probably still in grade school, and I am very familiar a couple of dozen other languages. Sorry to break your bubble, but Scheme isn't the panacea that you make it out to be. It's a good language for writing compilers or implementing other languages, but beyond that niche it's not s
Re:Misconceptions about scheme (Score:2)
To display such ignorance after these long decades doesn't speak well of you.
This is an argument? Any language goes through this period of balkanization. How ma
Re:Javascript (Score:2)
Re:Javascript (Score:2)
Re:Javascript (Score:1)
I actually think that if anything it makes things harder to read. For an scripting language that is supposed to be easy then specific begin and end blocks for different kinds of statements are always a good idea. So you know that "th
Re:Javascript (Score:1)
lack of block begin/close is just lame
Why? It's the same amount of functionality in less code.
and makes the stuff harder to read
Have you ever tried to read a Python program? Python's one of the most readable programming languages around. Part of this is because it doesn't use entirely superfluous syntax like curly braces everywhere.
it goes against one of the main principles of programming . Programs must have an start and an end.
What are you talking about? You do realise that the beginni
Re:Javascript (Score:2)
just because it is readable to you, that is used to it, don't mean is automaticly readable to everyone. Block delimiters, be they brackets like C derived languages or the "do" "end" from other languages like ruby do help reading. The lack of delimiters make it harder to understant when two blocks end at
Actually try Python (Score:2)
Only after using it for a little while we understood that we can never go back.
The way I resisted whitespace in the beginning now seems so stupid..
There really is no real claim against significant whitespace except the knee-jerk reaction of ".. but
If you actually try to use Python, you'll never want to go back to cluttering your visual space with unnecessary noise {}.
There's always the ob
Re:Actually try Python (Score:1)
And, please, I'd rather crawl through a ditch full of broken bottles than suffer through even one more "bracket audit."
"... four, five,
In a large program, though, I do tend to use comments to identify the end of blocks.
Python is a great language. People who get hung up on a piddling syntax thing like this are missing the point.
Minor question (Score:2)
To me, this implies that in a large program, you have very large blocks.
Why don't you just divide them up into very small functions so that each function is trivial and very easy to verify for correctness, and incidentally very easy to follow the indentation of?
Re:Minor question (Score:1)
You're right in that the issue that I'm addressing is really large blocks, particularly when there are nested blocks of any size as well. My tendency is to use functions for code that will be repeated at some point. My concern with your suggestion is that arbitrarily dividing up a block of related code into functions would just cause other readability problems (havi
Division into functions (Score:2)
I strongly disagree with this method. I agree with the whole functions' section in the Linux kernel coding style.
I think that you should divide functions such that each function is trivial and more importantly trivially verifiable. With good naming conventions and division of responsibilities, you don't need to "jump between functions" as you only read the functions for implementation details. The interface and what they do should
Re:Actually try Python (Score:2)
When I first learnt python I assumed the whitespace thing would be no big deal, it's only after using it for a while that I saw how moronic it was.
Re:Actually try Python (Score:2)
No offence, but I believe you are lying here. I mean, I think that a little white lie of "yeah I used it a lot and then I thought so" is much easier on your keyboard and much more probable than you ACTUALLY USING PYTHON and disliking the whitespace. People who actually use Python for REAL work, really tend to become fans of the significant whitespace.
10 year old
Re:Actually try Python (Score:2)
None taken, python fan boys wishing reality were different is well documented.
See, you did it again.
You mis-spelt "of course they don't work, you have to use this totally different editor feature", there you go wishing reality away again. I can see how you must ge
Re:Actually try Python (Score:2)
See, you did it again.
I can take your becoming offensive as strong evidence that you indeed lied there.
Ofcourse my belief that was a lie is simply based on experience arguing with several real-life developers who lie that they used Python because they know that otherwise their whitespace knee-jerk reaction is silly and they are portrayed as dumb.
You mis-spelt "of course they don't work, you have to use this totally di
Re:Actually try Python (Score:2)
You called me a liar, without knowing anything about me ... and presumably without even looking at my website. I'm pretty bored arguing with you, as you're just giving the party line of "Oh, that opinion's not really a problem ... you just think it is, but you're wrong" combined with offensivly suggesting I'm just stupid for not realizing this on my own. So allow me to just say: Your opinion is wrong, you ignorant pyth
Re:Actually try Python (Score:2)
By that definition, almost everyone is a liar.
So don't be too hard on yourself. You only lied a little white lie about using a lot of Python.
Its really no big deal.
Re:Javascript (Score:2)
They're all good, they're all useful, and they're all readable (although Perl comes at the bottom of my list.)
But your block-ending comment is inane. You can never know *what* block was ending (ie, what control or condition statement started the block) without scrolling up, indentation-dependant or curly-brace dependant. You must use *really* fancy closing brakets; the kind that actually contain meta-data on the block they're closing or something.
I kinda li
Re:Javascript (Score:2)
I like ruby much better, too bad it is not as popular as python. But the main point here is that all of this is a matter of ta
Re:Javascript (Score:2)
Whython (Score:3, Interesting)
I wonder why they've made this foray into the Python world? I know they decided to focus on PHP a few years back. Did they find some tasks were easier to accomplish in Python? Or are they simply trying to reach out to another developer community?
2004 (Score:2, Funny)
Re:Whython (Score:3, Informative)
Re:Whython (Score:1)
http://simon.incutio.com/archive/2006/08/08/ydn [incutio.com]
Re:Here's to progress (Score:2)
No, providing a few dev tools does not make past mistakes 'better'. But it does show they can actually care.
How refreshing! (Score:1, Interesting)
Every time I see a story about Yahoo concerning developers, it's exactly what I want to hear. While their competitors are saying "do no evil", Yahoo seems to be living it.
I don't know if I'm quite there yet, but my hard-to-break habit of Googling everything might be worth breaking if this kind of developer-focused attitude from Yahoo continues like it has. It's at least very tempting.
Re:How refreshing! (Score:4, Funny)
Re:How refreshing! (Score:3, Insightful)
Regards,
Steve
Re:How refreshing! (Score:5, Interesting)
What Yahoo is doing is great, but you're not giving Google nearly enough credit.
You might be right. But I've had the chance to use the Web API's for Yahoo, Google, and MSN. Yahoo's Web Search API has been much easier to use than Google's or MSN's. I know there are many other API's to use than just web search, but I've been impressed with what I've seen from Yahoo, more so than from the others.
Direction is everything, and you have to admit Yahoo has been moving in the right direction lately. Here's to hoping they don't lose focus of what's giving them such good publicity! =)
Re:FIXED (Score:2)
Uhh.. Not to nit-pick... ok, yes, to nit-pick (sorry!), I think Yahoo's competitors are saying "Don't be evil" [google.com] not "Do no evil".
You're not the only one making this mistake [googlefight.com].
Re:How refreshing! (Score:2)
Need I remind you about the X10 popups? That caused me to switch my home page over to Google and have never, ever looked back.
Perhaps Yahoo is just playing catchup to google with crap like search.yahoo.com and now this. Seems like they are no longer innovating but they are just copying.
Seen their new Mail client? Fully Ajax driven. Hmmm. Gmail anyone?
Re:Now Ruby! (Score:1)
Yawn. (Score:2, Funny)
Guido! Let my whitespace go!
Re:Yawn. (Score:3, Funny)
Snakes and a Train?
Whitespace (Score:5, Insightful)
I know everybody gets hung up on the whitespace thing when they look at Python. But you know what? Once you start actually coding in it for any significant amount of time, it's not a big deal. When you first start, I know you expect it to be really annoying, but that simply doesn't turn out to be the case. The supposed problem evaporates.
Every time you hear anybody moan about Python's significant whitespace, ask them how long they've spent actually writing Python. You'll see the same thing as I do - that virtually everybody complaining has never given Python a chance, and that virtually everybody who has given Python a chance has realised that the significant whitespace isn't a big deal.
Re:Whitespace (Score:1, Funny)
Re:Whitespace (Score:2)
Re:Whitespace (Score:2, Informative)
Underscores! __init__ __new__ __getattr__ __setattr__ __len__ __getitem__ . . .
range(1,5) = [1, 2, 3, 4]
The list goes on and on and on and on and on. Python has an incredible number of infuriating misfeatures for such a useful language.
Python sort of pretends to be a functional language, and you can do a lot
Re:Whitespace (Score:2)
No ternary operator? Firstly, this isn't C, and secondly, you'll be happy to know that people who're unwilling to learn new approaches have bitched often and hard enough that it now exists in a pythonic form: http://www.python.org/dev/peps/pep-0308/ [python.org] You'll find the PEP interesting for at least two reasons (hint: i
Re:Whitespace (Score:2)
Re:Yawn. (Score:1)
Why don't you write a Rails/Yahoo API tutorial?
Re:Yawn. (Score:2, Funny)
Re:Yawn. (Score:2)
Abstraction || Versatility
That's what I thought too. I was very skeptical until I actually started learning rails. I now see why it is getting very popular, because it takes advantage of some of the unique aspects of Ruby to blur that dividing line. It actually provides both abstraction and versatility. You get a lot of help out of the box or through an increasing number of plugins, but there are also convenient hooks to customize apps in pretty much any way you want.
Howto (Score:4, Informative)
Furthermore, unlike their previous offerings, they have released little new code here. The only code they have released is an API to their search engine. The rest seem to be HOWTOs on how to python to access their services.
Still good info though. Thanks
Product Placement (Score:2)
Launch...?
Python....?
Snakes on a Plane!!!
Yep, it's another Product Placement deal. Pretty shameless -- all the searches shown in the movie start at yahoo.com, and yahoo.com plugs the movie right down to the programmer level. Pitiful.
Value of their feeds? (Score:4, Interesting)
While browsing through this, I noticed the following in ther Weather RSS feed page:
The feeds are provided free of charge for use by individuals and non-profit organizations for personal, non-commercial uses.
and then
Yahoo! also reserves the right to require you to cease distributing these feeds at any time for any reason.
So, while it's cool and all, is there any value to using their weather RSS feed (and I assume it's similar with other services), beyond my ability to play with them? I mean, even I'm not making any money off it, presumably, if I put the effort in accessing those feeds, I expect them to be available to me in the future? Or do they provide a paid-for version for this?
Re:Value of their feeds? (Score:2)
I would imagine that its just
Re:Value of their feeds? (Score:4, Insightful)
Your expectations seem to be ever so slightly unrealistic.
Re:Value of their feeds? (Score:2)
Great, and good packages (Score:5, Informative)
Not only did they release a nice guide, but the guide is actually good: while the first XML library they talk about in XML parsing is xml.dom.minidom, they also explain how to use the XML API with effbot's ElementTree (and link to both ElementTree and cElementTree), which is more than likely the best Python XML library. And the recommend UFP (Universal Feed Parser) for RSS parsing.
The worst thing you can say about them is that they did their homework, kudos to the Yahoo guys.
Re:Great, and good packages (Score:1)
*applaudes yahoo*
Re:Great, and good packages (Score:2)
Not only is your sentence redundant, but your sentence is actually redundant.
Re:Great, and good packages (Score:2)
Snakes are naturally quiet (Score:2, Interesting)
Which is fine with me. As long as Yahoo and other outlets keep that in mind that is. Python is no
Re:Snakes are naturally quiet (Score:2)
Re:Snakes are naturally quiet (Score:3, Informative)
So the
Re:Snakes are naturally quiet (Score:2)
Re:Snakes are naturally quiet (Score:2)
I also am having a hard time recalling any good OReilly Python books that came out recently. That may have something to do with this as well.
creator of Python works at Google (Score:2)
Excellent news (Score:1)
Re:Is Python created by a religious person? (Score:3, Funny)
I don't know anything about Ruby's creator, but Larry Wall has always creeped me out too. I sure was happy when Python came along - a sensible language created by a logical Dutchman.
Matz said to be LDS (Score:2)
Re:Is Python created by a religious person? (Score:2)
Re:Is Python created by a religious person? (Score:1)
On the other hand, perhaps Larry IS God . . .
Re:Is Python created by a religious person? (Score:3, Interesting)
Hard to do if you are a GNU user (Score:5, Funny)
You are narrowing your options considering who [stallman.org] who developed the initial versions of GCC.
Re:Is Python created by a religious person? (Score:2)
Re:Is Python created by a religious person? (Score:1)
So God writes in Forth, not Lisp, as many supposed.
Re:Is Python created by a religious person? (Score:1, Insightful)
I'm an atheist too, and the point is to keep our minds open and willing to accept and change our thoughts.
You cannot ignore other people just because of their religion, that is not what an atheist stands for, we are against those lines of thinking.
Would you not take your medication if you found it it was invented by a religious person?
Re:Is Python created by a religious person? (Score:1)
A religion is a belief system.
LK