Sunday, February 26, 2012

My changes aren't appearing, why?!

Today I was working on maps with gwt again.
I managed to separate the map functions into a single class and run the map api without using the load method as I was when I first started. There was something wrong with my xml file and it turned out I was missing a semicolon ;_;. Aside from that, after getting maps to work, I needed to add my changes to my team's project.

I needed to change the html file so I could incorporate the map into our app and while I was doing that I ran into some difficulty! I had no idea why my changes were not being reflected in development mode. I changed the title and it did not change. I restarted eclipse and nothing happened. I checked the source code on the browser and I did not see my changes. Then I thought, Chrome was probably caching the page! I tried it in incognito mode and I immediately saw my changes. So lesson learned today, when writing web applications and you're working on the UI, run it in incognito mode, if not, clear your web cache.

If I haven't mentioned before, my team and I decided to use Github and I was really excited to use it since a lot of people in the tech industry were talking about it. I wanted to know how great it was. :) Other source control systems I used were TortiseSVN and Visual Studio Team Foundation Server. I used TortiseSVN for one of my school projects in which we built a Library Database System. I can't remember having too much trouble with Tortise but maybe because it was a relatively small project. I used TFS at my old co-op work place and worked on a project with one other co-op. There would be times when we were pulling out our hairs but I thought the functions (merging, branching etc) were pretty intuitive. Back to Github, I'm using eGit - Git with Eclipse. Our team decided not to work with branches and just commit and push changes into the main branch as we work. (I'm not sure if that's a wise decision or not..?) I'm wondering if I should make my own branch and merge changes as I code. That's what I did with TFS. I shall look into that. Today when I was merging in my changes, I realized it was not as intuitive. I could not merge my changes without a massive migraine. Perhaps this is due to my lack of knowledge of how to use this plugin. I had to delete and re-import the project to solve my problem because egit refused to push my changes upstream. (It was due to me not pulling the most recent changes from my other group members, but even after I did, I could not push my changes..).

I'm sure I will have more hair pulling coding stories to tell in the following weeks! :)
<3 Bess



No comments:

Post a Comment