JD Isaacks
Reputation
4,120
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
 Dec 20 comment Do I have to learn html and javascript to create web applications? Not if you use HAML and CoffeeScript. Jul 9 comment How does Github calculate language percentage in a repo? @YannisRizos I will give that a look, thanks. Dec 12 comment If your algorithm is correct, does it matter how long it took you to write it? Thanks for all your info. Also just to clarify, it looks like the classic Hanoi game always has 3 pegs and the discs are always in the same starting position and need to be moved to the same ending position. This particular challenge varies number of rods and starting & ending positions. Dec 11 comment If your algorithm is correct, does it matter how long it took you to write it? Are you saying that I should go to school, or just get take a job where I will have a mentor? Dec 11 comment If your algorithm is correct, does it matter how long it took you to write it? I could make a recursive function that moves a piece into place, moves any blocking piece out of the way, then starts over with the next piece. Starting with the largest piece and working down to the last smallest piece. The "is it optimal" part comes from when you move a blocking piece. Depending on where you move it, it can create additional unnecessary steps. For example moving a 1 onto a 3 will then be blocking the 3 and need to be moved out of the way again when its time to move the 3. but depending on the current configuration this may not be avoidable. Dec 10 comment If your algorithm is correct, does it matter how long it took you to write it? @ThorbjørnRavnAndersen, I did not learn any programming in school. I am self taught, I learned on the job, by books, experimenting, etc. I was not familiar with the game (except for remembering a similar game being played in planet of the apes), I had to Google to even know it was called "Towers of Hanoi." I do understand recursion (at least I think I do) and I used it here. But simply solving the puzzle would have been much more easier for me, the harder part was "What pattern will yield the least amount of moves possible every time." Dec 10 comment If your algorithm is correct, does it matter how long it took you to write it? Thanks for your answer. To answer why it took me long, one part is because I had a bit of trouble comprehending what it was I actually needed to do, once I understood that part, I still had to think for a bit to come up with a plan. For example, if a disc is blocking the disc I want to move, and I need to move it first, where should I move it to. The actually programming part was the shortest, but it all added to the time. Dec 10 comment If your algorithm is correct, does it matter how long it took you to write it? @mouviciel I didn't exactly mean lower my aspirations of working with a big .com name but more like working for a company where programming is the primary role vs working at a company that does something else like retail where nobody understands what you do. Sep 21 comment Why should you prevent a search engine from indexing your development server? @Paperjam, thanks for the info, I was not aware of those issues. Sep 21 comment Why should you prevent a search engine from indexing your development server? Can you please give some examples of why it is bad to have a development server on the Internet? What if different people that need to work on or approve things are in remote locations? Aug 7 comment How does Python's handling of line-breaks differ from JavaScript's automatic semicolons? I put semicolons in JavaScript for same reason I use periods in sentences. Sure the interpreter can usually make sense of your statements without them but its just bad form. Jun 28 comment Why is Mercurial considered to be easier than Git? What made Mercurial easy for me was hginit. There is no gitinit that I am aware of. Jun 27 comment What screen resolutions should we test on when developing for mobile devices? @melee, good point, I have used that in the past. Jun 27 comment What screen resolutions should we test on when developing for mobile devices? Thanks, sounds like if I make sure it works at a minimum of 480 pixels wide, most users will be able to see all content without side scrolling. Jun 27 comment What screen resolutions should we test on when developing for mobile devices? @Ethel, thanks, I am not a member of that site yet. New SE sites are popping up so fast its hard to keep track. May 25 comment Does a project typically get built or designed (graphically) first? So if I am following you correctly, after you decide what pages are needed, you do wireframes of all the pages. Once they are agreed upon you make the Photoshop mock ups and finally once they are finalized you build the pages functionally and graphically from the mock ups. May 24 comment Is code maintenance typically a special project, or is it considered part of daily work? @Chad, don't you mean: "Than you found it." May 7 comment What source control do i want for large project in average company? @David, I was in the middle of learning SVN when I dropped it and started learning Mercurial instead. I thought Mercurial was actually easier to learn. May 6 comment how to use version control I prefer Mercurial as well. I like the support in Netbeans because while you are coding it shows you every line that has changed since your last commit. It also color codes new/changed/unchanged files in the product tree. Which sounds like it would be helpful for the OP: `I lose track of which file I've edited or changed`. HGE may do this too, I have not used it. May 5 comment What is a hack? @compman ..huh?