World: r3wp
[!Cheyenne] Discussions about the Cheyenne Web Server
older newer | first last |
Graham 20-Oct-2008 [3249x5] | *do |
I think ... will try again. | |
Nope, neither of those work. I neeed to have the code in my login.rsp page as well. | |
Tried again ... *do does work afterall. | |
Either that or I'm having a very non-deterministic day | |
Graham 21-Oct-2008 [3254x3] | Looks like I'm going to have a very few pages as entry points to the application ... and so all the code will only be in a few pages. |
Anyone got a suggestion on how to modularise the app even more .. | |
I guess the more general question is how does one write large apps in RSP ... | |
Henrik 21-Oct-2008 [3257] | the same way you would a normal rebol app? there isn't much difference to RSP from running functions in a console. |
Dockimbel 21-Oct-2008 [3258] | Think about RSP as just the display layer. Your application should be in .r script like you would do for any other REBOL app. |
Graham 21-Oct-2008 [3259] | The View in MVC? |
Dockimbel 21-Oct-2008 [3260] | Right. |
Graham 21-Oct-2008 [3261] | Ok, that makes sense ... I didn't want 10 pages of code between <% %> ! |
Dockimbel 21-Oct-2008 [3262x2] | Build your app as it could have an alternative VID UI instead or just HTML. |
That would be bad pratice. | |
Graham 21-Oct-2008 [3264x2] | well, I guess there isn't much published on what is good practice on writing RSP pages :) |
And i've never done PHP etc | |
Dockimbel 21-Oct-2008 [3266] | True, but's it's no different from best pratices in ASP, JSP,... |
Graham 21-Oct-2008 [3267x3] | No experience with any of those either ... but I've got a clue now :) |
What exactly is the difference between 'do and '*do ? | |
ie. when should I use '*do ? | |
Dockimbel 21-Oct-2008 [3270] | '*do is just the native DO. |
Graham 21-Oct-2008 [3271x2] | I know |
So, why should I need to fall back to '*do ? | |
Dockimbel 21-Oct-2008 [3273] | Webapps are, from v 19, contained in their own context (object!). 'do will first bind the loaded code to the webapp context before executing it. |
Graham 21-Oct-2008 [3274] | and if you're not using a webapp? |
Dockimbel 21-Oct-2008 [3275x2] | *do is just a fallback, if 'do is crashing your code ;-). It should be used, but as I had some context issues while testing with my own webapps, I've added it as a workaround while figuring out how to fix those issues. |
if the RSP is not inside a webapp, then 'do will just call the native do. | |
Graham 21-Oct-2008 [3277] | Ok. Thx |
Dockimbel 21-Oct-2008 [3278] | it should = it shouldn't |
Graham 21-Oct-2008 [3279] | need R3 |
Dockimbel 21-Oct-2008 [3280x2] | badly |
That's why I was calling since the beginning of R3, for a focus on R3 Core features first, to be able to port our R2 code to R3 and benefit from modules (and other vital features like plugins). We reached PITS limits a long time ago. | |
sqlab 21-Oct-2008 [3282] | I guess,most here are the same opinion |
Chris 22-Oct-2008 [3283x2] | Anyone got a suggestion on how to modularise the app even more... QM? |
Uses RSP, and I think it can use some of Cheyenne's features too... | |
Graham 22-Oct-2008 [3285] | I was waiting for your input Chris! Have you tested this out? |
Chris 23-Oct-2008 [3286] | Tested -- yes it works. I haven't had a chance to check installation against the latest version of Cheyenne though. |
Graham 23-Oct-2008 [3287] | Please report back when you do ... |
Chris 23-Oct-2008 [3288x2] | I'm not sure when I'll get the chance -- you can try the current installation procedure, ymmv... |
Ok, it does work with version 0.9.18 (source version only) | |
Graham 23-Oct-2008 [3290] | we're up to 9.19 now |
Graham 28-Oct-2008 [3291] | I'm still having problems with RSP not working every few days :( |
Terry 28-Oct-2008 [3292] | Isn't software development fun! |
Dockimbel 29-Oct-2008 [3293x3] | Does it happen when you restart Cheyenne ? |
Are you running several RSP webapps on the same server ? | |
not working means not responding or giving an error ? | |
Graham 29-Oct-2008 [3296] | I normally just reboot ... perhaps I need to find a cleaner way of killing the cheyenne process. No, just the one RSP webapp. Not responding. |
Henrik 29-Oct-2008 [3297] | I usually kill it here and start it again. For those times where it mysteriously just quits, I can also just start it again. I have mine set up via launchd in OSX. |
Graham 29-Oct-2008 [3298] | This is not so good then .. is there a way we can debug this? |
older newer | first last |