{"id":30,"date":"2010-10-26T11:00:05","date_gmt":"2010-10-26T11:00:05","guid":{"rendered":"http:\/\/www.deadcodersociety.org\/?p=30"},"modified":"2010-11-07T14:44:35","modified_gmt":"2010-11-07T19:44:35","slug":"git-and-adventron-stan-schwertly","status":"publish","type":"post","link":"http:\/\/www.deadcodersociety.org\/blog\/git-and-adventron-stan-schwertly\/","title":{"rendered":"Git and Adventron: Stan Schwertly"},"content":{"rendered":"<p>Stan presented second (in lieu of Tom) on his experiences with Git, a popular version control system. He also touched on a personal project, &#8220;Adventron.&#8221; You can read the notes below:<\/p>\n<p><strong>Version Control:<\/strong><\/p>\n<p>Version control allows you to control changes made to documents. This is  commonly used when programming, and even more when there&#8217;s more than  one programmer involved. There are different kinds of version control  systems (Git, SVN, and others.) Stan focused on git, a particular  version control system developed for controlling changes made to the  Linux kernel. Some of the benefits of version control (or &#8220;revision  control&#8221;) are:<\/p>\n<p><!--more--><\/p>\n<ul>\n<li> Professional organizations use version control. It allows for more than  one person to work on a project without worrying about different  versions floating around.<\/li>\n<li>Branches. You can separate known-good  code from experimental code by &#8220;branching&#8221; into a new test environment.  If your new changes are good, you&#8217;re able to merge them in. Otherwise,  deleting a branch is easy.<\/li>\n<li>Commits. &#8220;Committing&#8221; your code  allows you to log the progress you make while you change your code. Many  commits are encouraged.<\/li>\n<li>Diff codes tell you what code you&#8217;ve  added\/deleted. You can see exactly what&#8217;s changed since your last commit  and between commits.<\/li>\n<li>Super easy to revert code.<\/li>\n<li><a title=\"Github\" href=\"http:\/\/www.github.com\" target=\"_blank\">Github<\/a> gives you a place to push code to if you don&#8217;t have your own server,  allows you to download your source anywhere, anybody can check out your  code, big projects (like Facebook&#8217;s PHP to C code converter). Social pressure makes you a  better, more pro-active coder.<\/li>\n<\/ul>\n<p>There are different flows  you can get into with git (a &#8220;flow&#8221; being how you work with the system.)  GIT flow: make changes, git add (add to verson control), git status,  git pull, git commit, git push. GIT can be run on many systems and  frontends are available if you&#8217;re uncomfortable with the command-line.  More resources:<\/p>\n<p>Linus  speaks to Google on git<\/p>\n<p>Understanding Git Conceptually<\/p>\n<p>Why Git is  Better than X<\/p>\n<p>Stan also discussed his progress on a  game he&#8217;s working on titled &#8220;Adventron&#8221;. It&#8217;s a Java port of a game he  wrote when he was younger. Some notes:<\/p>\n<ul>\n<li>Levels are stored in plain text<\/li>\n<li>Applets  can&#8217;t read files on the server, unless the applet is signed<\/li>\n<li>Collision  detection was slow, split map into quadrants<\/li>\n<\/ul>\n<p>The  development version is at http:\/\/projects.schwertly.com, and you can read his experience specifically on his blog post, &#8220;<a title=\"Lessons Learned Porting Adventron to Java\" href=\"http:\/\/www.schwertly.com\/2010\/09\/porting-adventron-to-java\/\" target=\"_blank\">Lessons Learned Porting Adventron to Java<\/a>&#8220;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Stan covers Git and his Java game, &#8220;Adventron&#8221;. <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_links_to":"","_links_to_target":""},"categories":[3],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/www.deadcodersociety.org\/blog\/wp-json\/wp\/v2\/posts\/30"}],"collection":[{"href":"http:\/\/www.deadcodersociety.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.deadcodersociety.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.deadcodersociety.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.deadcodersociety.org\/blog\/wp-json\/wp\/v2\/comments?post=30"}],"version-history":[{"count":26,"href":"http:\/\/www.deadcodersociety.org\/blog\/wp-json\/wp\/v2\/posts\/30\/revisions"}],"predecessor-version":[{"id":97,"href":"http:\/\/www.deadcodersociety.org\/blog\/wp-json\/wp\/v2\/posts\/30\/revisions\/97"}],"wp:attachment":[{"href":"http:\/\/www.deadcodersociety.org\/blog\/wp-json\/wp\/v2\/media?parent=30"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.deadcodersociety.org\/blog\/wp-json\/wp\/v2\/categories?post=30"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.deadcodersociety.org\/blog\/wp-json\/wp\/v2\/tags?post=30"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}