What does your desk look like?
-
@tonyshowoff said:
@creayt said:
It's not vastly better. That's like saying that an airplane is "vastly better" than a helicopter. They're two different beasts with different purposes, they each do certain things extremely well.
But they are, airplanes can go further, faster, and higher than helicopters, and carry more weight. If you want to measure them differently, of course you can find reasons why each are their own beasts, but from a syntax perspective cfScript is better, and it (I assume) allows separation of concerns, where as the other is just mixed right in.
No, they're not. Airplanes are fantastic for transporting mass quantities of people across the globe, but they're terrible for maneuvering into tight spots and shuttling someone that's dying to a hospital, for example. Different problems, I promise.
-
@tonyshowoff said:
That was a reference to the fact that regular CF is similar to XML syntax.
That's my point. It's not. It's a lot closer to HTML than XML, hence its unparalleledly good integration with HTML.
-
@creayt said:
No, they're not. Airplanes are fantastic for transporting mass quantities of people across the globe, but they're terrible for maneuvering into tight spots and shuttling someone that's dying to a hospital, for example. Different problems, I promise.
Of course, and that's what I said, if you want to measure them differently, but as far as flying machines go, if we measure based on overall qualities planes are better. If we break it down into "which is better for this specific task" then things change, and there are situations where not even helicopters can get in, due to powerlines, close buildings, etc.
-
@creayt said:
That's my point. It's not. It's a lot closer to HTML than XML, hence its unparalleledly good integration with HTML.
See, but I consider that a weakness. Separation of concerns is important, especially as projects get larger, and become harder to maintain. I can see how for many projects it wouldn't be a bad thing though, especially smaller ones.
-
@tonyshowoff said:
PHP's also a lot faster (primarily with opcaching)
Wait, what? Where did you hear that? I would bet money that I can take almost any PHP code you have, rewrite it in ColdFusion, and run it on identical hardware and have it just mercilessly dominate PHP's peformance. ColdFusion has a giant, beautiful array of caching options and uses Ehcache under the covers. I'd be interested to read what you read that made it sound like PHP can even hold a candle to Java performacewise. Didn't Facebook even write something to take their PHP, expressly because it's slow, and convert it to C++ or something?
-
I don't know but didn't FogCreek make something to convert their VBScript into PHP?
Bwahahahaha
Sorry, had to be mentioned.
-
@tonyshowoff said:
I like C-style syntax, though, I find it easier to read, and the syntax isn't too dissimilar from cfScript from the looks of it, and in fact cfScript looks almost identical to JavaScript. Is it a reimplementation, just designed based on it, or is it compliant like ActionScript?
I'm mostly referring to the absolutely schizophrenicish naming of things, from what I remember from my PHP days. Underscores here, weird choices there, etc. One of the things that I adored about the move from PHP to CF is that I had to consult the docs so, so much less, because of the language design, it's extremely guessable a lot of the time, so as I was learning it I was literally able to just guess function names and they'd be right, instead of having to Google every 8 seconds.
-
Ha ha.... ready?
PHP on Java: http://quercus.caucho.com/
-
@tonyshowoff said:
@creayt said:
No, they're not. Airplanes are fantastic for transporting mass quantities of people across the globe, but they're terrible for maneuvering into tight spots and shuttling someone that's dying to a hospital, for example. Different problems, I promise.
Of course, and that's what I said, if you want to measure them differently, but as far as flying machines go, if we measure based on overall qualities planes are better. If we break it down into "which is better for this specific task" then things change, and there are situations where not even helicopters can get in, due to powerlines, close buildings, etc.
Better for what? Some things, not others, do you get what I mean?
You can do separation of concerns either way. The tag-based version fully supports OO programming. You can use one or the other for specific use cases for the advantages and/or weaknesses of each option specific to that particular problem. I fundamentally disagree with you that airplanes are better than helicopters. I think helicopters are better and full of more individual utility overall, but airplanes are better at some things, and extremely easy to pilot. I've never driven a helicopter, so I can't speak to that, but I imagine it's much more difficult.
-
@creayt said:
@tonyshowoff said:
PHP's also a lot faster (primarily with opcaching)
Wait, what? Where did you hear that? I would bet money that I can take almost any PHP code you have, rewrite it in ColdFusion, and run it on identical hardware and have it just mercilessly dominate PHP's peformance. ColdFusion has a giant, beautiful array of caching options and uses Ehcache under the covers. I'd be interested to read what you read that made it sound like PHP can even hold a candle to Java performacewise. Didn't Facebook even write something to take their PHP, expressly because it's slow, and convert it to C++ or something?
Unfortunately I don't have the tools to run any sort of tests, but I based on it on the fact that CF is interpreted on top of Java, and it's part of the same reason that Ruby is slower than PHP. Also I wasn't aware of any op or byte code caching. I tried to find some done online, but they were all either way too old or seemed biased either toward PHP or CF.
Facebook wrote HipHop which converted PHP to C++ to gain performance, but even now PHP's new opcaching still isn't as good as what's created with the HHVM, but it's far, far better than it was.
-
@scottalanmiller said:
I don't know but didn't FogCreek make something to convert their VBScript into PHP?
Bwahahahaha
Sorry, had to be mentioned.
Yes, it's called Wasabi, it converts to other languages so they can be more OS independent, it's all a terrible, terrible idea. It's based on VBScript though, with some additions to it.
-
@tonyshowoff said:
Unfortunately I don't have the tools to run any sort of tests, but I based on it on the fact that CF is interpreted on top of Java, and it's part of the same reason that Ruby is slower than PHP. Also I wasn't aware of any op or byte code caching. I tried to find some done online, but they were all either way too old or seemed biased either toward PHP or CF..
ColdFusion COMPILES into Java, and is extreeeeeeeeemely fast. You learn something every day
-
@creayt said:
I'm mostly referring to the absolutely schizophrenicish naming of things, from what I remember from my PHP days. Underscores here, weird choices there, etc. One of the things that I adored about the move from PHP to CF is that I had to consult the docs so, so much less, because of the language design, it's extremely guessable a lot of the time, so as I was learning it I was literally able to just guess function names and they'd be right, instead of having to Google every 8 seconds.
Yes, PHP has a lot of poorly named internal functions and in many cases parameter order that doesn't match logically with similar functions. This issue isn't ignored, and there are plans to fix it and primarily replace things with internal classes, but it's not an easy road. I certainly find it really irritating, but IDEs help, and I know what you mean about having to check the docs a lot or google things, but I rarely do anymore thanks to PhpStorm.
-
@tonyshowoff said:
Yes, PHP has a lot of poorly named internal functions and in many cases parameter order that doesn't match logically with similar functions. This issue isn't ignored, and there are plans to fix it and primarily replace things with internal classes, but it's not an easy road. I certainly find it really irritating, but IDEs help, and I know what you mean about having to check the docs a lot or google things, but I rarely do anymore thanks to PhpStorm.
Sounds awesome and like PHP is about to get a lot better. I bet you're excited.
-
@creayt said:
Better for what? Some things, not others, do you get what I mean?
Better flying machines. When it comes to flying there's speed, height, manoeuvrability, fuel economy, and what you can carry, and planes are better at all those things except manoeuvrability.
You can do separation of concerns either way.
My point was it seems like it encourages you not to though.
The tag-based version fully supports OO programming.
It's hard to visualise what that'd look like.
I fundamentally disagree with you that airplanes are better than helicopters. I think helicopters are better and full of more individual utility overall, but airplanes are better at some things, and extremely easy to pilot. I've never driven a helicopter, so I can't speak to that, but I imagine it's much more difficult.
Well, I disagree with you here, and helicopters are much harder to pilot, indeed. I don't even think we should keep talking about this, seems completely off point.
-
@creayt said:
@tonyshowoff said:
Unfortunately I don't have the tools to run any sort of tests, but I based on it on the fact that CF is interpreted on top of Java, and it's part of the same reason that Ruby is slower than PHP. Also I wasn't aware of any op or byte code caching. I tried to find some done online, but they were all either way too old or seemed biased either toward PHP or CF..
ColdFusion COMPILES into Java, and is extreeeeeeeeemely fast. You learn something ever day
Does it? Yes, I do
-
@creayt said:
@tonyshowoff said:
Yes, PHP has a lot of poorly named internal functions and in many cases parameter order that doesn't match logically with similar functions. This issue isn't ignored, and there are plans to fix it and primarily replace things with internal classes, but it's not an easy road. I certainly find it really irritating, but IDEs help, and I know what you mean about having to check the docs a lot or google things, but I rarely do anymore thanks to PhpStorm.
Sounds awesome and like PHP is about to get a lot better. I bet you're excited.
Assuming that's not sarcasm, yes it is awesome, and PHP is getting better. It was really, really terrible for a long time, and I did a lot of PHP work, but not as a primary language, since about 1998/9. Only since really 5.5 has it taken off, and their release schedule is much tighter than it used to be, and the thing I'm most excited about with the coming PHP 7 is actual scalar typing. Some people consider PHP to be moving toward Java, but I don't consider that a bad thing, because I hated a lot about Java.
PHP's got some goofy syntax problems like how namespaces are dealt with, but Apple's new language Swift has even weirder stuff, like using \ in strings not to escape things, but to import variables... wtf?
-
@tonyshowoff said:
Better flying machines. When it comes to flying there's speed, height, manoeuvrability, fuel economy, and what you can carry, and planes are better at all those things except manoeuvrability.
See, I just don't think you can defend that. They have higher top speed at high altitudes, but for the "speed" of getting you from point A to point B where the distance between them is less than say half of the average width of any state in America, helicopters are way better. With an airplane you have to board, take off, find somewhere to land, travel probably by car to wherever you're going, often taking a lot longer to get you to the same spot. They're better at long-distance travel, for sure, but who cares? That's something you want to do some of the time. We can stop talking about it, but it's my entire point w/ the script versus tag based syntax. For generating dynamic HTML and integrating w/ HTML, which is, you know, only the most important and ubiquitous markup language in the world and responsible for the greatest innovation of our time, the tag-based language is much, much, much, much, much better.
My point was it seems like it encourages you not to though.
Probably just because you haven't worked with it. It doesn't encourage one thing or another. You can easily, fluidly write full classes, inheritance and all, w/ the tag option. And it works extremely well, and can be written about as quickly as script version thanks to the beauty of code insight and completion.
It's hard to visualise what that'd look like.
Dead simple ( pseudo
<class extends="parentClass"> <properties /> <method name="doSomething"> <argument name="a" type="b" default="c" /> <return x /> </method> </class>
-
How did we get from desk talk to Helicopters!
-
@creayt said:
We can stop talking about it, but it's my entire point w/ the script versus tag based syntax. For generating dynamic HTML and integrating w/ HTML, which is, you know, only the most important and ubiquitous markup language in the world and responsible for the greatest innovation of our time, the tag-based language is much, much, much, much, much better.
I agree with you here mostly, and for years I constantly pushed for moving things to the web. I got my wish, but in the 90s people though I was crazy. I disagree with that a similarly syntaxed language is good, because mark up and actual programming are two different things.
Probably just because you haven't worked with it. It doesn't encourage one thing or another. You can easily, fluidly write full classes, inheritance and all, w/ the tag option. And it works extremely well, and can be written about as quickly as script version thanks to the beauty of code insight and completion.
I can see how this could be the case.
Dead simple ( pseudo
<class extends="parentClass"> <properties /> <method name="doSomething"> <argument name="a" type="b" default="c" /> <return x /> </method> </class>
You can format code by doing five ~ before and after the text. Anyway, this isn't the worst thing I've ever seen, but again feels too XML-like for my taste, and in fact aside from return x, this whole thing is XML parse-able; though I imagine less strict XML engines would allow an argument without value.