473,395 Members | 1,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Web functions idea

I was musing recently about how one could, for example, set up a really
simple mailing subscription list. It occurred to me that a really simple
way to implement it would be to use xmlrpc.
So there could be a function
subscribe(emailAddress),
which would send an email for confirmation, and another function
confirm(emailAddress, password)
which would confirm the address ... and so on.

Now, the problem is that, if you use xmlrpc, it requires some kind of
fiddly software that the client would have to install. What you would
really want is some kind of web interface instead of xmlrpc - a kind of
"web driven xmlrpc" (that would eliminate the need of an actual xmlrpc
server).

The point of it being this: a developer would just write the functions
that he needed, a la xmlrpc, which would be "exposed" to this new module
(let's call it webrpc) - and webrpc would examine the function, work out
how many arguments it had, and display a form for the user to fill out.
From an application writer's point-of-view, it abstracts away the whole
web process, leaving him free to just concentrate on the underlying
function implementation.
Nov 29 '05 #1
3 979
Mark Carter wrote:
I was musing recently about how one could, for example, set up a really
simple mailing subscription list. It occurred to me that a really simple
way to implement it would be to use xmlrpc.
So there could be a function
subscribe(emailAddress),
which would send an email for confirmation, and another function
confirm(emailAddress, password)
which would confirm the address ... and so on.

Now, the problem is that, if you use xmlrpc, it requires some kind of
fiddly software that the client would have to install. What you would
really want is some kind of web interface instead of xmlrpc - a kind of
"web driven xmlrpc" (that would eliminate the need of an actual xmlrpc
server).
Congratulations, you've just rediscovered REST !-)
The point of it being this: a developer would just write the functions
that he needed, a la xmlrpc, which would be "exposed" to this new module
(let's call it webrpc) - and webrpc would examine the function, work out
how many arguments it had, and display a form for the user to fill out.
From an application writer's point-of-view, it abstracts away the whole
web process,
I'm afraid doing web developpement without a minimal knowledge of "the
whole web process" is somewhat unrealistic.
leaving him free to just concentrate on the underlying
function implementation.


Turbogears is probably what you're looking for (if not quite what you
describe).

--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'o****@xiludom.gro'.split('@')])"
Nov 29 '05 #2
bruno at modulix wrote:
Mark Carter wrote: Congratulations, you've just rediscovered REST !-)
Huzzah!
Turbogears is probably what you're looking for (if not quite what you
describe).


Thanks. It looks quite interesting.

Nov 29 '05 #3
The client software can be written in JavaScript that makes
xmlrpc calls to the server (AJAX). That way there is no
installation required.

But there are loads of free, debugged mailing list programs
out there that use email as the interface. You should take
a look there first.

-Larry Bates

Mark Carter wrote:
I was musing recently about how one could, for example, set up a really
simple mailing subscription list. It occurred to me that a really simple
way to implement it would be to use xmlrpc.
So there could be a function
subscribe(emailAddress),
which would send an email for confirmation, and another function
confirm(emailAddress, password)
which would confirm the address ... and so on.

Now, the problem is that, if you use xmlrpc, it requires some kind of
fiddly software that the client would have to install. What you would
really want is some kind of web interface instead of xmlrpc - a kind of
"web driven xmlrpc" (that would eliminate the need of an actual xmlrpc
server).

The point of it being this: a developer would just write the functions
that he needed, a la xmlrpc, which would be "exposed" to this new module
(let's call it webrpc) - and webrpc would examine the function, work out
how many arguments it had, and display a form for the user to fill out.
From an application writer's point-of-view, it abstracts away the whole
web process, leaving him free to just concentrate on the underlying
function implementation.

Nov 29 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: hokiegal99 | last post by:
A few questions about the following code. How would I "wrap" this in a function, and do I need to? Also, how can I make the code smart enough to realize that when a file has 2 or more bad...
99
by: David MacQuigg | last post by:
I'm not getting any feedback on the most important benefit in my proposed "Ideas for Python 3" thread - the unification of methods and functions. Perhaps it was buried among too many other less...
23
by: heted7 | last post by:
Hi, Most of the books on C++ say something like this: "A virtual destructor should be defined if the class contains at least one virtual member function." My question is: why is it only for...
7
by: jolie.demiranda | last post by:
Dear all, I'm fairly new to C++ so forgive me is this topic may have been convered before... I'm having a problem with pointers to member functions. Essentially what I want to achieve is the...
6
by: harry | last post by:
Hi ppl I have a question about memory layout of a class. Consider the code below: class Base1 { virtual void f() { cout << "Base1::f" << endl; } virtual void g() { cout << "Base1::g" <<...
44
by: bahadir.balban | last post by:
Hi, What's the best way to implement an overloaded function in C? For instance if you want to have generic print function for various structures, my implementation would be with a case...
47
by: Albert | last post by:
So structures are useful to group variables, so you can to refer to a collection as a single entity. Wouldn't it be useful to also have the ability to collect variable and functions? Ask K&R...
110
by: Gregory Pietsch | last post by:
I'm writing a portable implementation of the C standard library for http://www.clc-wiki.net and I was wondering if someone could check the functions in math.h for sanity/portability/whatever. I'm...
20
by: J de Boyne Pollard | last post by:
MThe library functions which are included to allow process Mlaunch, forking, and termination, imply that it is both Mpossible and desirable for a process to fork itself. This is Ma fundamental...
5
by: dhtml | last post by:
On Feb 17, 4:58 am, Thomas 'PointedEars' Lahn <PointedE...@web.de> wrote: In Spidermonkey Functions absolutely do have a name:- var x = function y() { console.log(arguments.callee.name); };...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.