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

    Web Application VS Windows Application

    IT Discussion
    programming
    17
    450
    108.3k
    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
      last edited by

      OOP is not necessary. What framework are you using is far, far more important.

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

        sorry, but what framework are you referring to, if you mean view, i use bootstrap and jquery, if you mean data modeling framework, ido not use any framework, if you know a framework that facilitate database manipulation please tell me, because so far i connect to the DB in each query

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

          before when i was using J2EE, i was using a nice framework called EJB that convert all DB table into classes and generate all necessary methods for each class, it was like DB mapping table -class, if you know anything similar please inform me

          thanks

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

            @IT-ADMIN said:

            before when i was using J2EE, i was using a nice framework called EJB that convert all DB table into classes and generate all necessary methods for each class, it was like DB mapping table -class, if you know anything similar please inform me

            thanks

            J2EE and EJB are frameworks in a very cursory sense. I'm talking about your MVC framework, like CakePHP or similar.

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

              ok thanks, i will take a look over CakePHP,
              so no need to use OOP right ??

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

                @IT-ADMIN said:

                ok thanks, i will take a look over CakePHP,
                so no need to use OOP right ??

                Use what is common to the framework you choose 🙂

                I'm not recommending CakePHP, I'm not a PHP guy so don't know what is the good options versus the names that I know. CakePHP is relatively popular in the space and a place to look. But don't choose it because I mentioned it, just start investigating there. PHP has a lot of frameworks that are good. Ruby and Python have one main framework that dominates their space and becomes the obvious thing to learn (Rails and Django) but even there it is not a foregone conclusion. PHP lacks this and has lots of smaller potential players.

                This is an advantage to Ruby, most people simply choose Ruby on Rails and convention dictates everything that they do.

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

                  i think this framework will make things complex for me, right now i'm using ajax and json to retrieve data from my DB without refreshing the page, i think i'm ok with my current method, cuz this framwork will take time from me to learn

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

                    I've never really been able to get my head wrapped around the MVC model of programming -- at least not as most of the Frameworks operate.

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

                      @scottalanmiller said:

                      @IT-ADMIN said:

                      ok thanks, i will take a look over CakePHP,
                      so no need to use OOP right ??

                      Use what is common to the framework you choose 🙂

                      I'm not recommending CakePHP, I'm not a PHP guy so don't know what is the good options versus the names that I know. CakePHP is relatively popular in the space and a place to look. But don't choose it because I mentioned it, just start investigating there. PHP has a lot of frameworks that are good. Ruby and Python have one main framework that dominates their space and becomes the obvious thing to learn (Rails and Django) but even there it is not a foregone conclusion. PHP lacks this and has lots of smaller potential players.

                      This is an advantage to Ruby, most people simply choose Ruby on Rails and convention dictates everything that they do.

                      For PHP, there are several... CakePHP and Symfony are two that I am aware of.

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

                        ah, here you are @dafyre, where are you man, i'm looking for you
                        tell me how do you work with PHP, are you adopting OOP?? or maybe a framework ??
                        please i need your advice, i'm working on a PHP project right now,

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

                          @IT-ADMIN said:

                          ah, here you are @dafyre, where are you man, i'm looking for you
                          tell me how do you work with PHP, are you adopting OOP?? or maybe a framework ??
                          please i need your advice, i'm working on a PHP project right now,

                          I tend to write my code.. I'll have a php file for functions that I use a lot, and a library that I can use for handling various things like databases, etc.

                          Then I write the logic (PHP) and HTML in one file. So if I have a form that writes to a database, the form will be an HTML file, and will be styled with CSS, jQuery for Javascript stuff... Then the bits that actually write to the database will be just a PHP page that only writes to the database.

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

                            @IT-ADMIN said:

                            ah, here you are @dafyre, where are you man, i'm looking for you
                            tell me how do you work with PHP, are you adopting OOP?? or maybe a framework ??
                            please i need your advice, i'm working on a PHP project right now,

                            What are you building?

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

                              An HR payroll application

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

                                What library are you using??

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

                                  @IT-ADMIN said:

                                  An HR payroll application

                                  Oh, fun! Last time I built one of those was in Access 97, lol. (Whatever the one before Office 2003 was).

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

                                    For database connection , did you connect each time to DB or you using a persistance framework ??

                                    scottalanmillerS dafyreD 2 Replies Last reply Reply Quote 0
                                    • dafyreD
                                      dafyre
                                      last edited by

                                      I haven't used a MySQL library like that in a while, so I'm going to assume that it was a connection each time. If I'm not mistaken, PHP will keep MySQL sessions open briefly after your query is done.

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

                                        @IT-ADMIN said:

                                        For database connection , did you connect each time to DB or you using a persistance framework ??

                                        Are you going to cache database information on the client?

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

                                          @IT-ADMIN said:

                                          For database connection , did you connect each time to DB or you using a persistance framework ??

                                          I am, however, using ReadBeanPHP (http://www.redbeanphp.com/) as my Database library these days... It seems to work well, and from what I can gather it does not use Persistent connections either.

                                          1 Reply Last reply Reply Quote 0
                                          • wirestyle22W
                                            wirestyle22 @scottalanmiller
                                            last edited by

                                            @scottalanmiller said:

                                            @IT-ADMIN said:

                                            For database connection , did you connect each time to DB or you using a persistance framework ??

                                            Are you going to cache database information on the client?

                                            Doesn't this lead to conflicts?

                                            scottalanmillerS 2 Replies Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 11
                                            • 12
                                            • 13
                                            • 14
                                            • 15
                                            • 22
                                            • 23
                                            • 13 / 23
                                            • First post
                                              Last post