World: r3wp
[!REBOL3 GUI]
older newer | first last |
Henrik 29-Sep-2010 [3541] | well, I found it harder, so this is a relief. :-) but inside a style, I think it's possible to freely use any number of gobs. |
Maxim 29-Sep-2010 [3542] | yep.. as long as the event problems noted above are fixed... is already works well :-) |
Rebolek 29-Sep-2010 [3543] | Maxim, if you have some fixes for R3 GUI, please, share them with me. |
Maxim 29-Sep-2010 [3544x2] | oh it was mostly hack and slash rambo stye fixes... the most important is just adding a sub to any style and trying to make it go thru events... its easy ... it crashes until all events flow thru gobs which have user data set to none. |
subgob | |
Henrik 30-Sep-2010 [3546x2] | New r3-gui.r3: http://94.145.78.91/files/r3/gui/r3-gui.r3 My domain seems to be gone. Will have to fix that later... |
I will begin working on database reactors soon and will want to review it with the community. | |
Pekr 30-Sep-2010 [3548] | database reactors? what is that? I mean - how will it link to particular db? |
Henrik 30-Sep-2010 [3549] | sort of, yes. write a form and add a few keywords and you can add, edit and delete records in a db. |
Pekr 30-Sep-2010 [3550] | interesting ... I can't imagine how it will work. Each of us uses different DB, different relations, different aproach to things .... |
Henrik 30-Sep-2010 [3551x2] | what would be interesting would be to have the community write a simple flat-file database backend for it |
Pekr, the reactors link to some functions, which then in turn create the specific procedures for adding, editing and deleting in a table for a specific database. | |
Pekr 30-Sep-2010 [3553x2] | I would like to better see more styles, keyboard navigation, editing, tabbing, etc. :-) |
sounds good, don't forget update ... | |
Henrik 30-Sep-2010 [3555x2] | this is also just one approach, one strongly advocated for by Robert and if done right, it will be quite fast to work with |
db-reactors is high priority, so I have to work on it now. | |
Rebolek 30-Sep-2010 [3557] | Pekr, tabbing is beign worked on right now |
Pekr 30-Sep-2010 [3558x2] | maybe db-*, as for naming convention, as I can imagine e.g. delete or update reactor for some non DB related purposes too? |
Rebolek - cool then! | |
Henrik 30-Sep-2010 [3560] | A basic example of how it looks right now: f: view [ form-panel: panel 2 [ group 1 [ title "Record fields" bar group 2 [ label "Name" name: field ; stored as name label "Address" address: field ; stored as address label "Age" age: field ; stored as age label "Skipped" skip-field: field options [skip: true] ; not in the list label "Ignored" field ; not in the list ] ] ] options [record: 'rec] group 6 [ button "New" obtain 'form-panel add-record button "Save" emit 'form-panel update-record button "Delete" do [delete-record] pad button "<" obtain 'form-panel next-record button ">" obtain 'form-panel previous-record ] ] The 'rec is a record object, which is filled with data from the server, using the backend function, and when submitting, is used to gather data from the form and into the server. |
Pekr 30-Sep-2010 [3561] | what is 'skip for the field? Is it for tabbing to ingore the field? |
Henrik 30-Sep-2010 [3562x5] | The trick is that a panel acts like a record. You specify the record object in OPTIONS. Then any named field, checkbox, slider or whatever participates in the record unless the option SKIP is true. |
SKIP allowed reading the record, but not writing back changes, such as a "last updated" field, which you don't want to write back. | |
then there are OBTAIN and EMIT reactors, which are siblings to the SUBMIT and ACQUIRE reactors. | |
http://94.145.78.91/files/r3/gui/db-reactors.r3 This shows a simpe skeleton of what it's made of. | |
The SKIP and RECORD options are scoping, so if you define a panel with SKIP, everything inside it is skipped on EMIT. | |
Maxim 30-Sep-2010 [3567] | henrik there is already a decent db on rebol.org from Pavel... might want to look into that. |
Henrik 30-Sep-2010 [3568] | thanks |
Maxim 30-Sep-2010 [3569] | if you read his posts here, its quite interesting... probably just what we all want RIF to be. |
Pekr 30-Sep-2010 [3570] | RIF is RIF, let's wait for RIF, and not use pseudo dbs! Apart form that, doesn't Robert have SQLite for R3? |
Henrik 30-Sep-2010 [3571] | the point was really not to find a database, but to connect to it from the db reactors. |
Maxim 30-Sep-2010 [3572x2] | why ignore what Pavel has done? why shoudn't his research contend for being RIF if it actually tackles the issues and works? |
yeah... just saying that its a nice rebol-based experiment. | |
Pekr 30-Sep-2010 [3574] | Henrik might as well use plain blocks :-) What are reactors after all? VID level actions, which unde the hood refer to some functions, so ... you could as well use rebDB or any in-memory aproach ... |
Henrik 30-Sep-2010 [3575] | right. it's those functions that would be nice to have written for various different DBs. |
Pekr 30-Sep-2010 [3576x2] | The thing is, that for multimedia, kiosk, tablet, multitouch etc. UIs, all that stuff is useless, and that is my point all the time :-) Henrik - one question - aren't you afraid, that all the stuff you work on, might be dismissed by possible change in architecture, when some other subsystems are going to be added? And also - how all this stuff is going to be optional? Look - even low-level R3 now has various boot options, so e.g. someone can write and replace even module system. Now how pluggable (functionality wise) is new GUI going to be? |
What if I don't care for your validation, your DB reactors? What if I am used to work with form and db my own way? Will I get one bloated gui? Carl was very picky for each single function to add, and now we are adding whole layers upon the GUI, which is still far from being finished. | |
Henrik 30-Sep-2010 [3578] | Pekr, db-reactors and validation are optional features. Reactors are made using the MAKE-FACE-ACTIONS function, which specifically is designed to add a new aspect to the GUI in a way that doesn't interfere with its original functionality. And while you don't care about it, we do, because we need specifically to builds apps that use them, and I've missed these things in VID since I first used it. There's also that little detail about shaving off months of development and testing of large apps. The "bloat" you talk about would be around 5 kb of code for now. |
Pekr 30-Sep-2010 [3579x2] | That's not bloat of code, but bloat of functionality I tam talking about. My experience is as follows - sometimes I like to use frameworks, but I don't like using frameworks just for the sake of frameworks themselves. Young guys did new SW for our old kiosks we installed around, and it seems so complicated (all xamp, web, replicated mysql), that they had to call their guru to set-it up. |
I just wanted to say, that sometimes it is easier to not use some framework, because 1) each framework can do only certain stuff 2) you have learn this stuff 3) more complicated things are difificult to do. Goog example is that overhyped DB for Rails, don't remember the name. In 5 minutes, I needed more complicated set-up, and the answer? Bad excuse about framework being good just for certain things ... no, thank you ... | |
Henrik 30-Sep-2010 [3581] | Bloat of functionality: That's not the point of these frameworks. The point is to make certain rudimentary things quick and easy to set up for anyone trying to write a GUI. I'm pretty sure that once you've fixed the 657283th bug in a javascript/HTML webform, you will really wish this was already worked out for you. If the frameworks don't work out for you, then they are poorly written. |
Pekr 30-Sep-2010 [3582x3] | It is often about the clash of how we are used to think, and use some functionality, about our workflows. If everything is gluable, well then. I would not just like to see, that each style has tonnes of fields, to support upper layer frameworks. I hope you keep it streamlined to some flags, and custom data fields ... |
btw - would it be (let's say later in the process) possible to introduce some other form of release? I mean - I would like to look into sources, but it is flattened recently. | |
I don't want to push you to Tortoise, etc., but there surely be some distribution form of the GUI? I mean stuff separated in files, etc. It helps studying some stuff | |
Henrik 30-Sep-2010 [3585x2] | You have some rules that you need to follow in any framework, otherwise they won't work for you. In the case for, for example db reactors, you need to know about the specific options, the rule that fields must be named for them to be used and how. But really, there are only few rules and once you've worked with attaching database records to a form, in a manual way versus this way, you probably don't want to go back. The other thing is an illusion of control with absolute flexibility without a framework. It simply lengthens development time and introduces bugs (something that we keep overlooking, eh?), and generally keeps the customer unhappy. |
I can make a zip file of the sources later. | |
Pekr 30-Sep-2010 [3587] | or at least small changelog? :-) Is it difficult to provide in recent stage of development? E.g. when you release new version - what actually changed, what should be tested, etc.? |
Henrik 30-Sep-2010 [3588] | changelog needs to be done by rebolek. I don't have an overview of the changes happening right now, of which there will be some more. |
Pekr 30-Sep-2010 [3589] | You are trying to tell me, that DB record linkage to form is dependant upon certain naming of the fields? |
Henrik 30-Sep-2010 [3590] | it's logical to bind the name of the field to the record name, yes. |
older newer | first last |