ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    What does your desk look like?

    Water Closet
    time waster
    74
    809
    258.7k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • tonyshowoffT
      tonyshowoff @creayt
      last edited by

      @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.

      I hate XML too. Good thing ColdFusion has literally nothing at all to do with XML except that it's able to parse, generate, and work with it extremely easily, the same way it can with JSON, and a zillion other things.

      That was a reference to the fact that regular CF is similar to XML syntax.

      I guarantee you that if you and I sat down and created an identical product, and you saw that ColdFusion let me do it in about a third of the time it took you, and in a way that's actually more fun and flexible, you might love it too haha.

      Possibly, I am open minded.

      I started out with PHP, which got me really excited about web development, and I still write PHP from time to time, helped my GF construct some objects from a MySQL query and serialize them to JSON in PHP the other day ( she was reimagining an example from a book she was reading ).

      I was really confused at this first, GF and CF look too similar, lol.

      When we were done we wrote the same code in ColdFusion, and it was something like 75% fewer lines of code. PHP has some strengths, but I've never met a PHP developer who could offer much more than "a lot of companies use it and there are a lot of things already written in PHP" as a competitive advantage.

      PHP is widely supported, but has a lot of power from the perspective of developing large projects, separating concerns, and interacting with a lot of outside things -- are there a lot of enterprise projects built with CF? I can't think of any, doesn't mean they don't exist of course, I assume some do, but there's a reason it's not first choice. PHP's also a lot faster (primarily with opcaching), plus also I can find more PHP developers, and the rest is mostly just preference based, and things I feel are better for me you likely do not for you.

      As far as the syntax, I mean Jesus. If you want to talk terrible syntax, PHP wins that contest by a mile. 🙂

      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?

      creaytC 4 Replies Last reply Reply Quote 0
      • creaytC
        creayt @tonyshowoff
        last edited by

        @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.

        tonyshowoffT 1 Reply Last reply Reply Quote 0
        • creaytC
          creayt @tonyshowoff
          last edited by

          @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.

          tonyshowoffT 1 Reply Last reply Reply Quote 0
          • tonyshowoffT
            tonyshowoff @creayt
            last edited by

            @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.

            creaytC 1 Reply Last reply Reply Quote 0
            • tonyshowoffT
              tonyshowoff @creayt
              last edited by tonyshowoff

              @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.

              1 Reply Last reply Reply Quote 0
              • creaytC
                creayt @tonyshowoff
                last edited by

                @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?

                tonyshowoffT 1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller
                  last edited by

                  I don't know but didn't FogCreek make something to convert their VBScript into PHP?

                  Bwahahahaha

                  Sorry, had to be mentioned.

                  tonyshowoffT 1 Reply Last reply Reply Quote 0
                  • creaytC
                    creayt @tonyshowoff
                    last edited by

                    @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.

                    tonyshowoffT 1 Reply Last reply Reply Quote 0
                    • scottalanmillerS
                      scottalanmiller
                      last edited by

                      Ha ha.... ready?

                      PHP on Java: http://quercus.caucho.com/

                      1 Reply Last reply Reply Quote 2
                      • creaytC
                        creayt @tonyshowoff
                        last edited by

                        @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.

                        tonyshowoffT 1 Reply Last reply Reply Quote 0
                        • tonyshowoffT
                          tonyshowoff @creayt
                          last edited by

                          @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.

                          creaytC 1 Reply Last reply Reply Quote 0
                          • tonyshowoffT
                            tonyshowoff @scottalanmiller
                            last edited by

                            @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.

                            1 Reply Last reply Reply Quote 1
                            • creaytC
                              creayt @tonyshowoff
                              last edited by creayt

                              @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 🙂

                              tonyshowoffT 1 Reply Last reply Reply Quote 0
                              • tonyshowoffT
                                tonyshowoff @creayt
                                last edited by

                                @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.

                                creaytC 1 Reply Last reply Reply Quote 0
                                • creaytC
                                  creayt @tonyshowoff
                                  last edited by creayt

                                  @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.

                                  tonyshowoffT 1 Reply Last reply Reply Quote 0
                                  • tonyshowoffT
                                    tonyshowoff @creayt
                                    last edited by

                                    @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.

                                    creaytC 1 Reply Last reply Reply Quote 0
                                    • tonyshowoffT
                                      tonyshowoff @creayt
                                      last edited by

                                      @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 🙂

                                      1 Reply Last reply Reply Quote 0
                                      • tonyshowoffT
                                        tonyshowoff @creayt
                                        last edited by tonyshowoff

                                        @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?

                                        1 Reply Last reply Reply Quote 0
                                        • creaytC
                                          creayt @tonyshowoff
                                          last edited by creayt

                                          @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>
                                          
                                          tonyshowoffT 1 Reply Last reply Reply Quote 0
                                          • B
                                            BMarie
                                            last edited by BMarie

                                            How did we get from desk talk to Helicopters!

                                            tonyshowoffT 1 Reply Last reply Reply Quote 2
                                            • 1
                                            • 2
                                            • 5
                                            • 6
                                            • 7
                                            • 8
                                            • 9
                                            • 40
                                            • 41
                                            • 7 / 41
                                            • First post
                                              Last post