Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. source code check ins

source code check ins

Scheduled Pinned Locked Moved The Lounge
helpcomquestionannouncement
49 Posts 27 Posters 4 Views 1 Watching
  • 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.
  • A AspDotNetDev

    Define "messed up" and "ok". I know that IE has a bug where OL items will all get a value of 0 and interacting with the page a bit will restore the numbers to their correct values.

    Somebody in an online forum wrote:

    INTJs never really joke. They make a point. The joke is just a gift wrapper.

    R Offline
    R Offline
    Rutvik Dave
    wrote on last edited by
    #31

    ok, messed up means your int.min values, and ok means 0. :) and now I know that you mean reverse.

    1 Reply Last reply
    0
    • R Rutvik Dave

      Albert Holguin wrote:

      Not very hard at all...

      Yes, but it is waste of time. If you have to decide what needs to be there, and what is old, then why you need the source control, you can use a shared network location. right ? and this gets very time consuming if you are working on a large project with many teams, and some guys are offshore. instead DVCS does this automagically. you can even check-in your code without any network/internet connection.

      A Offline
      A Offline
      Albert Holguin
      wrote on last edited by
      #32

      Rutvik Dave wrote:

      If you have to decide what needs to be there, and what is old

      ??? ...that statement doesn't make sense to me... but anyway, we had our dev/engineering team split in the east coast and west coast and it worked out fine. There's positives and negatives to every system.

      R 1 Reply Last reply
      0
      • J Jim Crafton

        I have a "friend", whose working on a project implemented in a coffee flavored language. My friend has observed that the project has an extreme rate of checkins - update once, and 10-15 minnutes later there will frequently be 20 or 30 more updates to grab. Making my friend think that the project has people checking in whenever they save a file. A side effect seems to be that you can update, have a broken build, report it as broken, only to have the "fix" mysteriously checked in while you're emailing the problem in. Another update, and the build is "fixed". Has anyone else heard of this? How often do you check in?

        ¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow

        L Offline
        L Offline
        lewax00
        wrote on last edited by
        #33

        I check in as soon as the little icon saying a change has been made starts bugging me (after it passes all the tests anyways). The check marks are much more pleasing than the red square...

        1 Reply Last reply
        0
        • J Jim Crafton

          Oooh - the days of ClearCase (I think this is what this used to be called). I remember all that now! Yeah it was a bit over blown, but it did have a lot of nice features once it was all set up correctly. But I think all the developers bitched about the amount of time it took to get used to it. It was also a nearly full time job to babysit the server to keep it up and running and happy :)

          ¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow

          P Offline
          P Offline
          Paul M Watt
          wrote on last edited by
          #34

          Yep ClearCase. Thankfully, we have people, which that is all they do, manage the servers and the different repositories.

          1 Reply Last reply
          0
          • J Jim Crafton

            I have a "friend", whose working on a project implemented in a coffee flavored language. My friend has observed that the project has an extreme rate of checkins - update once, and 10-15 minnutes later there will frequently be 20 or 30 more updates to grab. Making my friend think that the project has people checking in whenever they save a file. A side effect seems to be that you can update, have a broken build, report it as broken, only to have the "fix" mysteriously checked in while you're emailing the problem in. Another update, and the build is "fixed". Has anyone else heard of this? How often do you check in?

            ¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow

            K Offline
            K Offline
            killabyte
            wrote on last edited by
            #35

            If im going to be seriously changing/ adding to the project ill have my own branch and check in when working or as a minimum building. If i am making minor fixes ill just do it then check in once working. If you break the trunk from building your a bad person on the inside :mad:

            1 Reply Last reply
            0
            • A Albert Holguin

              Rutvik Dave wrote:

              If you have to decide what needs to be there, and what is old

              ??? ...that statement doesn't make sense to me... but anyway, we had our dev/engineering team split in the east coast and west coast and it worked out fine. There's positives and negatives to every system.

              R Offline
              R Offline
              Rutvik Dave
              wrote on last edited by
              #36

              I was pointing out that how you have to manually resolved the conflicts (many times) at the time of merging. also, I am not saying it is not going to work, there are hell lot of people who are using SVN. I am saying that, it is not efficient and there are more efficient systems available. :)

              1 Reply Last reply
              0
              • J Jim Crafton

                I have a "friend", whose working on a project implemented in a coffee flavored language. My friend has observed that the project has an extreme rate of checkins - update once, and 10-15 minnutes later there will frequently be 20 or 30 more updates to grab. Making my friend think that the project has people checking in whenever they save a file. A side effect seems to be that you can update, have a broken build, report it as broken, only to have the "fix" mysteriously checked in while you're emailing the problem in. Another update, and the build is "fixed". Has anyone else heard of this? How often do you check in?

                ¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow

                M Offline
                M Offline
                Marc Clifton
                wrote on last edited by
                #37

                Sounds like the people who put together the source control system have definitely checked out. Marc

                My Blog

                1 Reply Last reply
                0
                • J Jim Crafton

                  I have a "friend", whose working on a project implemented in a coffee flavored language. My friend has observed that the project has an extreme rate of checkins - update once, and 10-15 minnutes later there will frequently be 20 or 30 more updates to grab. Making my friend think that the project has people checking in whenever they save a file. A side effect seems to be that you can update, have a broken build, report it as broken, only to have the "fix" mysteriously checked in while you're emailing the problem in. Another update, and the build is "fixed". Has anyone else heard of this? How often do you check in?

                  ¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow

                  G Offline
                  G Offline
                  GenJerDan
                  wrote on last edited by
                  #38

                  Crap. I knew there was something I was supposed to do before I left on vacation.

                  Just like that old Carly Simon song... "You're so funny, You probably think this joke is about you" My Mu[sic] My Films My Windows Programs, etc.

                  1 Reply Last reply
                  0
                  • J Jim Crafton

                    I have a "friend", whose working on a project implemented in a coffee flavored language. My friend has observed that the project has an extreme rate of checkins - update once, and 10-15 minnutes later there will frequently be 20 or 30 more updates to grab. Making my friend think that the project has people checking in whenever they save a file. A side effect seems to be that you can update, have a broken build, report it as broken, only to have the "fix" mysteriously checked in while you're emailing the problem in. Another update, and the build is "fixed". Has anyone else heard of this? How often do you check in?

                    ¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow

                    R Offline
                    R Offline
                    Ravi Sant
                    wrote on last edited by
                    #39

                    we check-in, only if a file or piece of code is unit tested and has success

                    // ♫ 99 little bugs in the code, // 99 bugs in the code // We fix a bug, compile it again // 101 little bugs in the code ♫

                    1 Reply Last reply
                    0
                    • J Jim Crafton

                      I have a "friend", whose working on a project implemented in a coffee flavored language. My friend has observed that the project has an extreme rate of checkins - update once, and 10-15 minnutes later there will frequently be 20 or 30 more updates to grab. Making my friend think that the project has people checking in whenever they save a file. A side effect seems to be that you can update, have a broken build, report it as broken, only to have the "fix" mysteriously checked in while you're emailing the problem in. Another update, and the build is "fixed". Has anyone else heard of this? How often do you check in?

                      ¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow

                      B Offline
                      B Offline
                      BobJanova
                      wrote on last edited by
                      #40

                      The absolute minimum should be 'it doesn't break the build' (though I have accidentally breached this sometimes by e.g. forgetting to save a project file before committing or missing out adding a file to the repository). If you need to check in something which is partially complete and you know it is broken, you should make a branch (or use your local repository, if using GIT); unless it's a huge task (over a week), I have faith in my computer's hard drive and I won't check in until I have at least a subset of functionality that doesn't break anything. It's a good practice to only check in when tests pass (both unit tests and, if it's front end, usability tests). Depending on the project structure, sometimes that isn't possible.

                      1 Reply Last reply
                      0
                      • K Kschuler

                        We only check in code when it's been tested and is ready to move to the production server.

                        G Offline
                        G Offline
                        Guy Harwood
                        wrote on last edited by
                        #41

                        Kschuler wrote:

                        We only check in code when it's been tested and is ready to move to the production server.

                        :doh:

                        ---Guy H ;-)---

                        1 Reply Last reply
                        0
                        • J Jim Crafton

                          I have a "friend", whose working on a project implemented in a coffee flavored language. My friend has observed that the project has an extreme rate of checkins - update once, and 10-15 minnutes later there will frequently be 20 or 30 more updates to grab. Making my friend think that the project has people checking in whenever they save a file. A side effect seems to be that you can update, have a broken build, report it as broken, only to have the "fix" mysteriously checked in while you're emailing the problem in. Another update, and the build is "fixed". Has anyone else heard of this? How often do you check in?

                          ¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow

                          E Offline
                          E Offline
                          Earl Truss
                          wrote on last edited by
                          #42

                          Coffee-flavored? Hazelnut? I told you I'm no good at word games. Sure, I've seen this all the time in a small group. It's the result of people not building and testing before checking in. I used to check in once every day if I could be sure my code would build and work. If not, then when it got stable. Now I'm the only one working on a project so I only check in when the code is ready for release.

                          1 Reply Last reply
                          0
                          • A AspDotNetDev

                            I usually check in a few times per day. Reasons I check in: I reached a major milestone, I am adding something to a project (I add it and check it in before it's implemented to avoid having to merge project conflicts), I finished what I was doing (even if it was a quick fix for a comment), or it's the end of the day. I will avoid checkins if:

                            -2147483648. The code doesn't compile.
                            -2147483647. The code will break something that is on production.

                            Somebody in an online forum wrote:

                            INTJs never really joke. They make a point. The joke is just a gift wrapper.

                            F Offline
                            F Offline
                            Fabio Franco
                            wrote on last edited by
                            #43

                            I do exactly that, except for number 2. Number 2 is not a possibility because checking in code does not affect production, only development. Releases to production are produced as branches on the repository, marking as a milestone that needs to be thoroughly tested and can be easily identified for directed bug fixes while a new version is not ready for release.

                            "To alcohol! The cause of, and solution to, all of life's problems" - Homer Simpson

                            1 Reply Last reply
                            0
                            • K Kschuler

                              We only check in code when it's been tested and is ready to move to the production server.

                              J Offline
                              J Offline
                              Jwalant Natvarlal Soneji
                              wrote on last edited by
                              #44

                              Then how do you use Visual Studio Team System? No code sharing between developers when in development?

                              Regards, Jwalant Natvarlal Soneji

                              K J 2 Replies Last reply
                              0
                              • J Jim Crafton

                                I have a "friend", whose working on a project implemented in a coffee flavored language. My friend has observed that the project has an extreme rate of checkins - update once, and 10-15 minnutes later there will frequently be 20 or 30 more updates to grab. Making my friend think that the project has people checking in whenever they save a file. A side effect seems to be that you can update, have a broken build, report it as broken, only to have the "fix" mysteriously checked in while you're emailing the problem in. Another update, and the build is "fixed". Has anyone else heard of this? How often do you check in?

                                ¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow

                                E Offline
                                E Offline
                                Eskil Hauge
                                wrote on last edited by
                                #45

                                In our team we encourage checking in as often as possible. We check in when we have a something that works - even if only partially and with no visible deliverable. No code is checked in without a code review. We use Jetbrain's TeamCity with pre-tested commits and unit tests, so it is not possible to check in code that breaks the build or the tests (integration tests excluded). We have found that frequent check-ins encourages building code up in incremental blocks and unit tests. It also makes it much easier to refactor your own changes without affecting code that you are happy with (read: just recently checked in). Code reviews become less time-consuming when few files are checked more often (20+ file changes is also a mental strain when reviewing code).

                                1 Reply Last reply
                                0
                                • P Paul M Watt

                                  We have used IBM Rational Unified Change Management, which is very overwhelming at first, and a bit heavy on process. In a large organization, I think it's the only way to go. Each developer gets their own "view" of the source. I can check-out and check-in my source all I want in my view. After I am done developing, testing I "deliver" to the integration stream that everyone on my team is working on for the current project. Before I finalize the delivery, I can actually build from the integration stream to verify that I didn't break the build. If anyone tries to update their source during that period, they will get the code at the point before I deliver. If I find I have made a mistake, I can easily back-out the check-in, and try again once I have resolved the issue. Finally, the changes from the integration stream can be delivered up the chain to the base stream.

                                  E Offline
                                  E Offline
                                  englebart
                                  wrote on last edited by
                                  #46

                                  We use UCM as well, but we use a lighter model. (25 developer team, all local) We use the project integration stream as our "trunk". We use snapshot views (local file copies) against the "trunk" which provides sufficient isolation without the developer having to support yet another view of the code. We create monthly stability branches that are development streams beneath the "trunk" stream. The monthly stability stream allows bug fix work to be performed, developers get "free" merging back to the trunk via delivery operattions (merge). For delivery from the stability streams, developers create a second snapshot view of the trunk in which they perform NO checkouts/checkins. It is only used for delivery. This allows them to have checkouts in their main "trunk" view. (CC does not allow delivery to a view with checkouts). Roughly once a year or if we make some major development shift, we rebranch/copy the old trunk and create a new "trunk". This prevents the branch on branch on branch, etc. from building up too deep. We map each ClearCase Component to an IDE project, and use ClearCase Composite Components to bundle a group of projects into a Solution/Workspace. Barring infrequent major upgrades, we spend less than a man week/year on ClearCase maintenance. My brother works at a shop where they do NOT use UCM. They have 3 ClearCase admins for about 40-50 developers and a bunch of custom triggers and idiotic rules that slow things down.

                                  1 Reply Last reply
                                  0
                                  • J Jwalant Natvarlal Soneji

                                    Then how do you use Visual Studio Team System? No code sharing between developers when in development?

                                    Regards, Jwalant Natvarlal Soneji

                                    K Offline
                                    K Offline
                                    Kschuler
                                    wrote on last edited by
                                    #47

                                    Correct. We are a small enough company with only a dozen or so programmers so usually only one person needs to work on a certain DLL class or web page at a time. We manually merge code together in the rare instances when two people require the same code. It just never seemed worth the time to stop and learn exactly how to use our source control to it's full extent.

                                    1 Reply Last reply
                                    0
                                    • J Jwalant Natvarlal Soneji

                                      Then how do you use Visual Studio Team System? No code sharing between developers when in development?

                                      Regards, Jwalant Natvarlal Soneji

                                      J Offline
                                      J Offline
                                      JChrisCompton
                                      wrote on last edited by
                                      #48

                                      Assuming that you're talking about TFS you can "shelf" the code either daily or before you go on vacation. Shelving doesn't mix it in to the code base the way a check-in would, but you have a backup and if someone else needs to take over (you're hit by a truck/they're done with their stuff/etc.) then they can. I'm still learning TFS and am supposed to teach it to my team, so pardon if the words are a little off. HTH, -Chris C.

                                      1 Reply Last reply
                                      0
                                      • J Jim Crafton

                                        I have a "friend", whose working on a project implemented in a coffee flavored language. My friend has observed that the project has an extreme rate of checkins - update once, and 10-15 minnutes later there will frequently be 20 or 30 more updates to grab. Making my friend think that the project has people checking in whenever they save a file. A side effect seems to be that you can update, have a broken build, report it as broken, only to have the "fix" mysteriously checked in while you're emailing the problem in. Another update, and the build is "fixed". Has anyone else heard of this? How often do you check in?

                                        ¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow

                                        J Offline
                                        J Offline
                                        Jwalant Natvarlal Soneji
                                        wrote on last edited by
                                        #49

                                        My friend suggested to create a batch script which works as a shortcut to fetch latest "required" files from VSTS when executed. This helps in disregarding number of check-ins.

                                        Regards, Jwalant Natvarlal Soneji

                                        1 Reply Last reply
                                        0
                                        Reply
                                        • Reply as topic
                                        Log in to reply
                                        • Oldest to Newest
                                        • Newest to Oldest
                                        • Most Votes


                                        • Login

                                        • Don't have an account? Register

                                        • Login or register to search.
                                        • First post
                                          Last post
                                        0
                                        • Categories
                                        • Recent
                                        • Tags
                                        • Popular
                                        • World
                                        • Users
                                        • Groups