hyuri: (Thoughtful)
[personal profile] hyuri
you want to know why nobody uses the XML-RPC interface for their LJ clients? it’s a pain in the ass, that’s why.

granted, once I’m done tying it all together it should be much easier to add stuff, but damn! the flat protocol is really simple: convert everything to a string (with the handy‑dandy ToString() method everything has) and run it through HttpUtility.UrlEncode(). the XML-RPC libraries aren’t so easy to get started. I’d probably still be beating my head against the wall if I hadn’t chanced across ljArchive.

Date: 2004-07-25 05:22 pm (UTC)
From: [identity profile] soltice.livejournal.com
It was also the same reason that my professors made me use XML-RPC when I coded a LJ client in haskell for a project.

Oh well, they didn't believe me and my team members could pull it off anyways -- and we proved them wrong. hehehe...

Date: 2004-07-25 06:51 pm (UTC)
From: [identity profile] rizen.livejournal.com
What are you talking about? It's not hard. I did it when I was adding LJ support to gnome-blog. Although Seth refuses the patch because the LJ people say that they're going to BlogAPI, then Atom, and not to use the LJ API.

Date: 2004-07-25 06:54 pm (UTC)
From: [identity profile] rizen.livejournal.com
Here's the code, if you care to see it:

http://www.surreality.us/livejournal.py

Date: 2004-07-25 07:16 pm (UTC)
From: [identity profile] hyuri.livejournal.com
Well sure, it’s real easy with a “typeless” language like Perl or Python. Try it in, say, C#, with XML-RPC.NET (http://www.xml-rpc.net). That’s what I’m working on. Fun, it is not. Easy, it is not. Quick, simple, small; it is none. A royal pain in the ass, it most certainly is.

Date: 2004-07-25 08:32 pm (UTC)
From: [identity profile] rizen.livejournal.com
Actually, the fact that it's typeless isn't what helps here. What helps is the dynamic nature of the language. The object and its methods and members can be constructed at runtime.

This of course demands the question, "If C# makes it so hard, why are you using it?" Programming languages are tools. You wouldn't try driving a screw with a hacksaw, would you?

Date: 2004-07-25 11:29 pm (UTC)
From: [identity profile] hyuri.livejournal.com
Because LJ.NET is written in C#. LJ.NET is a client I like to use, and C# is generally an easy language to handle. I’ve given some thought to checking out XmlRpcCs, but I’ve already put a number of hours into XML-RPC.NET. Kinda depends on whether I can figure out where this damned null reference is coming from...

Profile

hyuri: (Default)
hyuri

November 2014

S M T W T F S
      1
2345678
9101112131415
161718192021 22
23242526272829
30      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 23rd, 2026 02:33 pm
Powered by Dreamwidth Studios