SitePoint Sponsor |
|
User Tag List
Results 26 to 50 of 87
-
Apr 3, 2006, 13:06 #26
- Join Date
- Jan 2005
- Location
- Ireland
- Posts
- 349
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by Dr Livingston
That is how I understand it anyway.
-
Apr 3, 2006, 13:18 #27
- Join Date
- Jan 2003
- Posts
- 5,748
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
> He mentions AJAX and a cancel button as an example.
Yes... Yes I know that, but I was actually referring to those interrupts themselves, and how they could work from the point of view of the server and host OS in question - the real technicalality that normally would not effect web developers
As for your further comments, well that's taken care of by the browser, so directly you are not actually interacting with those said interrupts...
Please re-read my first paragraph on the other post I made to explain what an interrupt is
-
Apr 3, 2006, 15:08 #28
- Join Date
- Mar 2005
- Posts
- 251
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Definitely put a vote in for the abolition of $this
I like Pythons way of handling scope in this regard.
Also like the direction that Rails is taking with .rjs templates, if you could handle your server-side and most of your client-side with one language that would be a lot more fluid.
The other thing I'd love to lose is the semi colons but that's not really web-specific..
Mentioned earlier but making security a default is an absolute essential. $_POST and $_GET should be filtered by default, original data should be available in a new $_POST_RAW_BUT_POSSIBLY_QUITE_DANGEROUS superglobal..... that might get the message across.
-
Apr 3, 2006, 16:06 #29
- Join Date
- Jan 2005
- Location
- Ireland
- Posts
- 349
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by Dr Livingston
Originally Posted by Dr. Livingston
Originally Posted by Dr. Livingston
-
Apr 3, 2006, 17:57 #30
- Join Date
- Mar 2006
- Posts
- 22
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Seems -to me- like there's two types of interrupts:
Dr Livingston's: hardware/software interrupts: a signal that temporarily stops the execution of a program so that another procedure can be carried out.
The more general one: To make a break in; "We interrupt the program for the following messages".
Sorry for intruding, please do go on with this interesting discussion/brainstorm.
I've been following Neko with a close eye aswell, since I've been playing around with scaffolding / code generation / (automated) translation of OO to simple procedural code for quite a while now...
-
Apr 4, 2006, 13:52 #31
you know, this read/thread really caught my eye, the first one in a long, long while. It is a shame that an ill-placed rant has push this thread somewhat off-topic.
wysiwyg editors, indeed. Even most modern browsers can not keep up with web standards at this point, and wysiwyg editors die when it comes to being able to use even most basic positioning css attributes, and css is essential to any professional level type of website. I smell sweatshop.
secondly, tween is an animation word and has been for some time, which flash is heavily animation based.... so your comparison is offbase. A proper comparison would have been pitch (audio) vs tweening (animation). Any seasoned proffessional would not stoop to arguing digital vs analog, but instead use a combination of the two to achieve stunning visual or amazing audio effects. A great illusion is always based to some degree in reality.
moving on.
would the perfect web based solution be compiled before or at run time?
would it be able to support mutilple syntax like with/without $
would it stuff all functions into an object similar to ruby?
would hashes and arrays become seperated entities?
would it support various templating methods?
would it be modular/component based to the point that you could add as needed?
I would love to be able to use mixins.
XML support is a must
(ps Marcus, if you would look at playing around with the Prototype JS library, I'm sure you would pick it up rather fast, looking at your Caching class example. I've hated javascript till I came across that library. Now i have made a good ways on a nice small reusable library )
-
Apr 4, 2006, 14:32 #32
- Join Date
- Mar 2006
- Posts
- 22
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
would the perfect web based solution be compiled before or at run time?
would it stuff all functions into an object similar to ruby?)
would it be able to support mutilple syntax like with/without $
would hashes and arrays become seperated entities?
Edit: To expand on that last one:
I was writing a Form class where you'd pass in Text, MultilineText & Select objects and it would render the form / validate, etc. I ran into a bit of a problem with the Select class: I had an addItems() method, which would accept an array. But select element children (<option>'s) can have just values or values and labels. How to differentiate a simple array (just options, whatever the type) from a complex array (where the keys are significant, whether integer/string)... In the end I added an extra parameter to make the distinction
-
Apr 4, 2006, 14:43 #33
- Join Date
- Jun 2004
- Location
- Copenhagen, Denmark
- Posts
- 6,157
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by XoloX
Originally Posted by XoloX
-
Apr 4, 2006, 15:03 #34
Not a language feature, but a compiling XSLT down to bytecode would be nice, so can be used in a streamming manner.
-
Apr 4, 2006, 15:17 #35
- Join Date
- Mar 2006
- Posts
- 22
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by kyberfabrikken
They do allow variable variables, which is rather cool. It could be archieved with eval, but ...
/ ponders on
-
Apr 4, 2006, 15:34 #36
Originally Posted by kyberfabrikken
Is there actually a legitimate use for variable variables that cannot be more cleanly accomplished with a simple associative array? Don't variable variables tend to lead to the prototypical spaghetti that PHP programmers are so often criticized for producing?
Not flamebait, I'm genuinely curious if there are useful (i.e. non-hack) tricks that I could be accomplishing with variable variables that I'm unaware of...
-
Apr 4, 2006, 15:42 #37
- Join Date
- Mar 2005
- Posts
- 251
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by mx2k
2. Yes. And work back from local to class variable to avoid $this->...
3. Yes. However PHP seems to be taking the route of providing both Object and procedural syntax as inPHP Code:$mysqli = new mysqli( ....
PHP Code:$link = mysqli_connect( ....
4. Agree with XoloX - both
5. Essential. It seems different work environments have different needs. We use PHPTAL for templating which is great for designer prototyping. If you are a more tightly disciplined team then perhaps php is enough for templating.
6. Yes modular with proper namespaces.
7. Yes. Lack of mixins or multiple inheritance is a bit of a downside to php.
8. As well as XML built in JSON and YAML woul be great too.
-
Apr 4, 2006, 15:52 #38
what about a parser that compiles to bytecode depending on the modified date of a file,
JSON YAML (most definitely)
-
Apr 4, 2006, 16:54 #39
Originally Posted by mx2k
-
Apr 4, 2006, 17:06 #40
- Join Date
- Apr 2003
- Location
- London
- Posts
- 2,423
- Mentioned
- 2 Post(s)
- Tagged
- 0 Thread(s)
Hi...
Originally Posted by mx2k
Originally Posted by mx2k
Originally Posted by mx2k
Originally Posted by mx2k
Originally Posted by mx2k
Originally Posted by mx2k
Originally Posted by mx2k
Originally Posted by mx2k
Originally Posted by mx2k
Originally Posted by mx2k
.
Regarding AJAX and interrupts, yes it's just a special case of continuations. The feature list was just a quick brain dump.
yours, MarcusMarcus Baker
Testing: SimpleTest, Cgreen, Fakemail
Other: Phemto dependency injector
Books: PHP in Action, 97 things
-
Apr 5, 2006, 02:09 #41
- Join Date
- Apr 2004
- Location
- germany
- Posts
- 4,324
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by DerelictMan
-
Apr 5, 2006, 03:56 #42
- Join Date
- Jan 2005
- Location
- Belgium
- Posts
- 354
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
There used to be a time where variable variables really seemed useful...
Now that i know that they exist in php (and how i have to use them) i just don't seem to run into situations anymore where i could actually use them.
-
Apr 5, 2006, 08:20 #43
Originally Posted by lastcraft
Originally Posted by lastcraft
Originally Posted by lastcraft
i would also have to add simplied webservice calls to the list, platform portability, and hey, maybe even a comefrom statement.........just for kicks
-
Apr 5, 2006, 08:45 #44
Originally Posted by stereofrog
Only dead fish go with the flow
-
Apr 5, 2006, 08:54 #45
- Join Date
- Apr 2004
- Location
- germany
- Posts
- 4,324
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Nothing, except they are not the objects
In php, you cannot say
Code:$o = new SomeObj; echo $o[some + expression];
Code:$o = new SomeObj; $v = some + expression; echo $o->$v;
-
Apr 5, 2006, 09:17 #46
Originally Posted by stereofrog
PHP Code:class SomeObj
{
public $AA = 42;
}
$o = new SomeObj();
echo $o->{'A' . 'A'};
-
Apr 5, 2006, 10:21 #47
- Join Date
- Jun 2004
- Location
- Copenhagen, Denmark
- Posts
- 6,157
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by stereofrog
-
Apr 5, 2006, 10:46 #48
- Join Date
- May 2005
- Location
- Finland
- Posts
- 608
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by XoloX
That said, Ruby does it fine in not shoving objects down your throat. Java does not. This (among other things) can be demonstrated by comparing a Ruby "Hello World!" to a Java one.
-
Apr 5, 2006, 10:55 #49
- Join Date
- Jan 2003
- Posts
- 5,748
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
> That said, Ruby does it fine in not shoving objects down your throat. Java does not.
I don't believe having a base object as for example Java has, but apart from that one distinct fault, Java does it right in every other respect;
Anyways, back on topic now?Last edited by Dr Livingston; Apr 5, 2006 at 11:23. Reason: ...
-
Apr 5, 2006, 11:14 #50
edited. something about a really good dr.
Bookmarks