Fine. I just figured that in an argument about style vs. function that function would win out, namely that my code works with javascript disabled. I think that's worth sacrificing :hover type functionality.Originally Posted by hongnk
| SitePoint Sponsor |
Fine. I just figured that in an argument about style vs. function that function would win out, namely that my code works with javascript disabled. I think that's worth sacrificing :hover type functionality.Originally Posted by hongnk
the designer does not need to know regexp. he just need to add a <validator> tag somewhere in the page (where to display the error message), programmer will edit the pattern either on the page or in code.Originally Posted by mlemos
The only advantage is that I can write little code. There's nothing asp.net can do but php can't (my engine is a clear example).Originally Posted by mlemos
If you are doing ASP.Net and Php, please check out VS.Php. This is a Php integration package for Visual Studio. Learn more about it here: http://www.jcxsoftware.com/vs.php

Agreed. There's some interesting thoughts here regarding Java Server Faces (Sun's response to ASP.NET);I completely disagree. Validation rules are part of the Model and not of the View in a MVC approach. Presentation designers should never need to know and understand how to implement validation rules because it is not their competence, just like presentation design is not the competence of programmers, unless you are on a single person project or your project structure is so bad that you can't split competences.
ASP.NET has validation controls and JSF has followed suit.What’s not so great (in my view) is that the current design of the JSF validation tags assigns the responsibility for defining field validations to the page author. To validate a field value, the pages author “registers the validator on a component by nesting the validator's tag within the component's tag" (excerpt from the JSF tutorial).
This bothers me because it requires the page author to have knowledge about a field’s meaning in order to select the correct validation tag.





Thats cool , & I do not suggest that frameworks & OOP are of no value just perhaps oft-misused in the interpreted world of PHP, & in that veinOriginally Posted by HarryF
ASP.NET in PHP is possible! ..
begs the possible alternate suffix 'but why would you' (a view I hold for creating cloned JAVA libraries in PHP) , again no disrespect intended to the writers of such code , I just have to chuck in my 2c.
Your code snippet is of interest as I have similar looking routines , the difference being that my version will output PHP/HTML (and supporting classes for common routines(paging etc)) to be uploaded and parsed instead of being used at runtime themselves , this of course can be messy (ok it is) and has several drawbacks , however absolutely none at the most important (IMO) time, runtime.
big is not the issue , server-load & resource usage is the issue , optimizers and cacheing can mostly overcome this , if so then all is well ,though that would be more of interest to those with control over their hosting/hardware than the 'average' PHP user.Originally Posted by hongnk
Hopefully your code will be run millions of times for every time you have to code it , so I prefer to give execution preference in terms of performance.
I'd answered before: I have a need for it.Originally Posted by firepages
I was talking about 1 month vs 6 month development, not just a few hours difference of typing code.Originally Posted by firepages


You are still missing the point. What you are saying is that to added or update a validation rule you need a graphic designer to edit the scripts.Originally Posted by hongnk
What I am telling you is that is counterproductive (not to say more expensive) in a project where the graphic designer and the programming developer is not the same person.
This is why it is a good idea to completely split the presentation logic from the application logic so graphic designers and programming developers do not have to interfere in each other work and the whole project develops much faster.
Manuel Lemos
Metastorage - Data object relational mapping layer generator
PHP Classes - Free ready to use OOP components in PHP




I feel bad for adding to the "off-topic-ness"... But in all of the years I've been doing web production work, I've never seen a real, working and practical situation where: the designer never touches "code" and the programmer never touches "design". I think that in the real world, both sides need (or should) know a little about both.
Matt
EDIT: of course for the design end of things, I'm talking about presentation logic (not application).
This is an excellent project, but where is the code. k-edge.com is down, maybe temporarily maybe permanently.
If someone has the code and post it here or on a website, I would greatly appreciate.
Thanks

I have to agree as well -asp.net provides different functionality in many regards then PHP. If I wanted to use .net templates, I would use .NET - they are native, so theres a speed boost, and I can take advantage of all the asp.net functions.Originally Posted by firepages
I use PHP templates - I think they're easier to use then any other of the php-template engine solutions. Learning the basic PHP structures only takes a few seconds - if, while, foreach. A lot of designers have basic PHP skills as well. THis makes PHP templates (html with basic PHP for looping and conditionals) particualrily useful since theres little to no learning curve.
Theres a substantially higher learning curve using both the backend and the template-end of your system - this must be taken into account for production time.
You mentioned theres a five month difference in production time between your engine and any others - I dont even see how this is possible. Given the same site, why would choice of engine make a 5 month difference? Would you please elaborate?
It has been down for a few months now, so it seems permanently.Originally Posted by okanturk
I have the code somewhere, but not at this computer.
However, a similar project called Prado exists. It can be found here:
http://www.xisc.com/
Thanks a lot Stream, I would appreciate if you make that code available.Originally Posted by Stream
What do you guys think about these type of projects and I wonder why these projects are not more popular. I know WACT is quite well known, but not popular enough imho.
Bookmarks