|
|
|
|
|
by awwx
6026 days ago
|
|
Here's the thing with call/cc: it's a powerful but low-level operator. It can be used for example to implement throwing and catching exceptions, or generators like Python's yield. However, once you've implemented generators or exception handling, then you'd use "throw" and "catch" and "yield" directly instead of calling call/cc to do those things. So when you say "when would I use call/cc in a program", it would be for some situation that doesn't already have an implementation for it, which is probably pretty rare when most of the things that you'd use call/cc for are already implemented. If you're interested in web programming with Scheme, I suggest taking a look at Arc (http://arclanguage.org/) which is (I find) a very pleasant language to program in and useful for basic web apps. For the first iteration of your application, keep it as simple as you can. Don't use a complicated framework if you don't need to. Don't store your data in a database if you can simply store it in files. There's plenty of time later to say "ah, this piece needs to be faster" and move that bit into a database or whatever. By then you'll know what you actually need, instead of vaguely guessing and spending a lot of time to store all your data in a database in the hope that it will turn out to what you need. While I suggest taking a look at Arc since it sounds like you'd be interested, I'm also guessing that Python is most likely going to be your best choice because it is a lot more mature, it does have a lot more libraries, and you already know it. But look for a way to do your project simply. Don't go off and use a complicated framework that has object-relational mapping and templates and junk if you don't need that stuff now. I hope this helps... :-) |
|
Thanks for the advice! It sounds as though I need to just get a version 1 out there, ASAP.
A problem with my idea is that it requires some pretty intense sysadmin knowledge, and my big stumbling block is either learning more about all that, or bringing in a partner.
Another issue, perhaps you've got suggestions regarding it, is security. How do I go about handling that? Passwords, information, etc?
Thanks again!