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

    Web Application VS Windows Application

    IT Discussion
    programming
    17
    450
    108.1k
    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.
    • scottalanmillerS
      scottalanmiller @IT-ADMIN
      last edited by

      @IT-ADMIN said:

      do you use json and ajax in your PHP code ?? for me i really liked them both,

      The framework does that, not you.

      1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller @IT-ADMIN
        last edited by

        @IT-ADMIN said:

        they allow you to fetch data and display data from DB without refreshing the page

        We know what they do. But you are talking about them like it's the late 1990s. Think of them like your SQL code... not something you need to worry about anymore.

        1 Reply Last reply Reply Quote 0
        • IT-ADMINI
          IT-ADMIN
          last edited by

          i mentioned them in order to tell me guys whether they are effective or maybe you know another method more powerful to achieve that,
          but wait you told me that my php code can handle this, how ?? because i think if i use sql only i have to refresh the page in order to get the data from the DB, but ajax for example send an xmlhttprequest with the argument needed into another php file without refreshing the page,
          please if you know something new that do the same thing update me, because i'm expired hhhhh😜

          scottalanmillerS 3 Replies Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller @IT-ADMIN
            last edited by

            @IT-ADMIN said:

            i mentioned them in order to tell me guys whether they are effective or maybe you know another method more powerful to achieve that,

            MangoLassi uses websockets.

            1 Reply Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller @IT-ADMIN
              last edited by

              @IT-ADMIN said:

              but wait you told me that my php code can handle this, how ?? because i think if i use sql only i have to refresh the page in order to get the data from the DB, but ajax for example send an xmlhttprequest with the argument needed into another php file without refreshing the page,

              SQL is the database on the backend. AJAX is for the GUI on the front end. One does not affect the other. You are tying components in your mind that aren't related.

              1 Reply Last reply Reply Quote 0
              • scottalanmillerS
                scottalanmiller @IT-ADMIN
                last edited by

                @IT-ADMIN said:

                please if you know something new that do the same thing update me, because i'm expired hhhhh😜

                Every modern web application framework does all of this automatically. You are talking about "underpinnings" that are no longer things that the developers need to really think about, especially not at this level.

                1 Reply Last reply Reply Quote 0
                • dafyreD
                  dafyre
                  last edited by

                  It can also be done with jQuery (the javascript library) or one of the others to update just parts of the page without having to refresh your whole browser screen. That can complicate development in some ways, while making things easier in others.

                  IT-ADMINI 1 Reply Last reply Reply Quote 0
                  • IT-ADMINI
                    IT-ADMIN @dafyre
                    last edited by

                    @dafyre said:

                    It can also be done with jQuery (the javascript library) or one of the others to update just parts of the page without having to refresh your whole browser screen. That can complicate development in some ways, while making things easier in others.

                    yeah myself using jquery to update only some element in the DOM, but off course after receiving the data via ajax, is there any framework in php that does this ?? how do you deal with this scenario dear @dafyre ?? maybe you are using websocket as Mr scott mention ?? because me i'm still using ajax and json but based on Scott i'm expired lol, i wan to update myself

                    scottalanmillerS dafyreD 2 Replies Last reply Reply Quote 0
                    • scottalanmillerS
                      scottalanmiller @IT-ADMIN
                      last edited by

                      @IT-ADMIN said:

                      yeah myself using jquery to update only some element in the DOM, but off course after receiving the data via ajax, is there any framework in php that does this ??

                      This is very common.

                      1 Reply Last reply Reply Quote 0
                      • dafyreD
                        dafyre @IT-ADMIN
                        last edited by

                        @IT-ADMIN said:

                        @dafyre said:

                        It can also be done with jQuery (the javascript library) or one of the others to update just parts of the page without having to refresh your whole browser screen. That can complicate development in some ways, while making things easier in others.

                        yeah myself using jquery to update only some element in the DOM, but off course after receiving the data via ajax, is there any framework in php that does this ?? how do you deal with this scenario dear @dafyre ?? maybe you are using websocket as Mr scott mention ?? because me i'm still using ajax and json but based on Scott i'm expired lol, i wan to update myself

                        I use jQuery for all of my ajax stuff, so I don't have to think quite so hard about it. But I don't deal with JSON too often (my latest project requires me to, so that's a plus). I've not dealt with Websockets yet. Got too many tinkering projects to tinker with these days... and sadly not many of them are PHP projects yet.

                        IT-ADMINI 1 Reply Last reply Reply Quote 0
                        • stacksofplatesS
                          stacksofplates @scottalanmiller
                          last edited by

                          @scottalanmiller said:

                          @johnhooks said:

                          @scottalanmiller said:

                          @johnhooks said:

                          @scottalanmiller said:

                          @johnhooks said:

                          @scottalanmiller said:

                          @johnhooks said:

                          Ya mine's using close to 2GB

                          0_1456429832423_Screenshot 2016-02-25 at 2.50.20 PM.png

                          Are you sure? I don't think that tool tell syou how much is used.

                          That's the RAM for each VM and the host. 8% is allocated for the dom0.

                          I mean, didi you run free to see what was REALLY used?

                          Used is like 702, I changed the response above.

                          I'm not going to be confident in that number till someone shows me the real free -m output rather than something translated for me.

                          ok......

                          0_1456430841521_Screenshot 2016-02-25 at 3.05.57 PM.png

                          I see you using 497, not 702. More than expected, less than stated.

                          Ah I was looking at swap included my bad.

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

                            Check out Laravel, that's a modern leader for PHP.

                            1 Reply Last reply Reply Quote 0
                            • IT-ADMINI
                              IT-ADMIN @dafyre
                              last edited by

                              @dafyre said:

                              @IT-ADMIN said:

                              @dafyre said:

                              It can also be done with jQuery (the javascript library) or one of the others to update just parts of the page without having to refresh your whole browser screen. That can complicate development in some ways, while making things easier in others.

                              yeah myself using jquery to update only some element in the DOM, but off course after receiving the data via ajax, is there any framework in php that does this ?? how do you deal with this scenario dear @dafyre ?? maybe you are using websocket as Mr scott mention ?? because me i'm still using ajax and json but based on Scott i'm expired lol, i wan to update myself

                              I use jQuery for all of my ajax stuff, so I don't have to think quite so hard about it. But I don't deal with JSON too often (my latest project requires me to, so that's a plus). I've not dealt with Websockets yet. Got too many tinkering projects to tinker with these days... and sadly not many of them are PHP projects yet.

                              lol, you also still using ajax like me, but pay attention we are considered expired based on Mr Scott, hhhh just joking 🙂

                              scottalanmillerS dafyreD 2 Replies Last reply Reply Quote 0
                              • scottalanmillerS
                                scottalanmiller @IT-ADMIN
                                last edited by

                                @IT-ADMIN said:

                                @dafyre said:

                                @IT-ADMIN said:

                                @dafyre said:

                                It can also be done with jQuery (the javascript library) or one of the others to update just parts of the page without having to refresh your whole browser screen. That can complicate development in some ways, while making things easier in others.

                                yeah myself using jquery to update only some element in the DOM, but off course after receiving the data via ajax, is there any framework in php that does this ?? how do you deal with this scenario dear @dafyre ?? maybe you are using websocket as Mr scott mention ?? because me i'm still using ajax and json but based on Scott i'm expired lol, i wan to update myself

                                I use jQuery for all of my ajax stuff, so I don't have to think quite so hard about it. But I don't deal with JSON too often (my latest project requires me to, so that's a plus). I've not dealt with Websockets yet. Got too many tinkering projects to tinker with these days... and sadly not many of them are PHP projects yet.

                                lol, you also still using ajax like me, but pay attention we are considered expired based on Mr Scott, hhhh just joking 🙂

                                that you are coding it yourself is the issue, everyone uses AJAX for the past decade or more.

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

                                  Check out this list, only two years old.

                                  http://mashable.com/2014/04/04/php-frameworks-build-applications/#UhWiFqMrMGqr

                                  1 Reply Last reply Reply Quote 0
                                  • dafyreD
                                    dafyre @IT-ADMIN
                                    last edited by

                                    @IT-ADMIN said:

                                    @dafyre said:

                                    @IT-ADMIN said:

                                    @dafyre said:

                                    It can also be done with jQuery (the javascript library) or one of the others to update just parts of the page without having to refresh your whole browser screen. That can complicate development in some ways, while making things easier in others.

                                    yeah myself using jquery to update only some element in the DOM, but off course after receiving the data via ajax, is there any framework in php that does this ?? how do you deal with this scenario dear @dafyre ?? maybe you are using websocket as Mr scott mention ?? because me i'm still using ajax and json but based on Scott i'm expired lol, i wan to update myself

                                    I use jQuery for all of my ajax stuff, so I don't have to think quite so hard about it. But I don't deal with JSON too often (my latest project requires me to, so that's a plus). I've not dealt with Websockets yet. Got too many tinkering projects to tinker with these days... and sadly not many of them are PHP projects yet.

                                    lol, you also still using ajax like me, but pay attention we are considered expired based on Mr Scott, hhhh just joking 🙂

                                    H aha ha. I know I'm behind the times, but not completely expired. Being expired means you can't make the code do what you want... and I'm not quite that far gone yet.

                                    @scottalanmiller -- That's twice I've heard the name Laravel this week... Guess it's time to go check it out.

                                    1 Reply Last reply Reply Quote 0
                                    • IT-ADMINI
                                      IT-ADMIN
                                      last edited by

                                      ok guys thank you all, it is midnight in here, see you tomorrow with new question and fun discussions,

                                      good evening

                                      1 Reply Last reply Reply Quote 0
                                      • IT-ADMINI
                                        IT-ADMIN
                                        last edited by

                                        good morning guys

                                        @dafyre: i tried redbeansPHP, it make the DB manipulation very easy, but i have problem, the performance is dramatically reduced, before for example when i display all records of a specific table it displayed immediatley, now after using RedBeansPHP, it take about 2 sec to display the table even if this table contain about 20 record, i wonder if this table contains 200 record maybe it will take 4 sec, after doing some researches i found that ORMs hurt performance too much,
                                        @dafyre how you manage this issue of performance ??

                                        scottalanmillerS dafyreD 3 Replies Last reply Reply Quote 0
                                        • scottalanmillerS
                                          scottalanmiller @IT-ADMIN
                                          last edited by

                                          @IT-ADMIN said:

                                          ... after doing some researches i found that ORMs hurt performance too much,

                                          I have to say, this is a silly statement. ORMs are not all the same thing and do not do things in the same ways. Experience with one gives you no experience with another. ORMs are pretty much the only means of writing software today. Any extra layer will add overhead, of course, but two seconds of overhead? No, something is wrong. Either there is a code problem here, or a caching one, or a misunderstanding of what is happening or just a bad framework (I don't know this one, I can't comment on it.)

                                          ORMs are used in basically all enterprise software at all levels and have been for an extremely long time. In many cases they can even be faster than not having an ORM because they can do things like caching queries to speed things up that you would have to write by hand.

                                          Think about this website (MangoLassi). Are you waiting two seconds for the system to respond? But it has millions of records and hundreds of thousands of users. Clearly the ORM is not adding the kind of overhead that you are worried about. The responses are instant. And this system has less memory and CPU than yours does.

                                          So having an ORM is not the issue. The wrong framework perhaps, or not knowing how to use it correctly. Or a database not designed to work with it. But do not jump to the conclusion that having an ORM is the issue, it is not and there is no logical connection between what you have observed and that conclusion.

                                          1 Reply Last reply Reply Quote 0
                                          • scottalanmillerS
                                            scottalanmiller @IT-ADMIN
                                            last edited by

                                            @IT-ADMIN said:

                                            @dafyre how you manage this issue of performance ??

                                            I've never encountered a situation where the ORM introduced noticeable performance, it's not something you normally need to manage outside of extremely high performance databases (like those with four dedicated CPUs, 256GB of its own RAM, etc.), many TB in size, etc.

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 13
                                            • 14
                                            • 15
                                            • 16
                                            • 17
                                            • 22
                                            • 23
                                            • 15 / 23
                                            • First post
                                              Last post