Tuesday, October 25, 2011

Some Programmer Things to Know

1.  What are some effective ways to ask a question and why are they so?
One way is by giving a full detail of what happened and what you did leading up to the problem that you are getting.  By immediately giving all the details, the person helping will know exactly why it is happening and give you solutions.

Another way is by doing the research first.  Doing your own research may turn up answers to your problem faster than asking someone else.  Even if you did research, it would help to share this information with the person helping you in case you did not find anything.  They would be able to get a grasp of what kind of problem you are having and offer solutions.

2.  How would you implement a task in Ant to create a JAR file?


3.  How are PMD and FindBugs different even though they both fundamentally find bugs?
PMD analyzes the source code itself without running the program, as in it will read what you can see on the screen in an IDE.  FindBugs reads the bytecode of the program.  To read the bytecode, the program has to be compiled.

4. Why is JUnit very useful?
JUnit can test individual classes and determine that the input they get gives out the expected output.  The best part about this is that it can be scaled to include a very large amount of tests cases for individual classes.  The amount of classes and test cases JUnit can test is not limited either.

5.  What are some of the terminology of configuration management?
Mainline, branch, checkout, edit, sync, lock, label, merge, checkin, resolve, head.

0 comments:

Post a Comment