<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Developer_area</title><link>https://sourceforge.net/p/mars-sim/wiki/Developer_area/</link><description>Recent changes to Developer_area</description><atom:link href="https://sourceforge.net/p/mars-sim/wiki/Developer_area/feed" rel="self"/><language>en</language><lastBuildDate>Mon, 12 Oct 2015 15:17:24 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/mars-sim/wiki/Developer_area/feed" rel="self" type="application/rss+xml"/><item><title>Developer_area modified by manny kung</title><link>https://sourceforge.net/p/mars-sim/wiki/Developer_area/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -1,13 +1,17 @@
 This page enables members of the MSP team to share technical knowledge.  
 So do not be shy, feel free to put content here such as tips, tricks, cool tools, new framework introduction....

-## Setting up a Mars Simulation Project Development Environment
+## 1. Setting up a Mars Simulation Project Development Environment

+###a. Command Line
 [Setting_up_a_MSP_development_environment_with_the_command_line] describes how to check out, build, and run the Mars Simulation Project with the command line. 

+###b. Eclipse
 [Setting up a MSP development environment with Eclipse](Getting_Started_with_MSP) describes how to check out, build, and run the Mars Simulation Project with the Eclipse SDK. 

-## Using Logging in MSP
+## 2. Miscellaneous
+
+### a. Using Logging in MSP

 \- Use logger instead of system.out.println statement  
 \- Use FINE,FINER,FINEST level for logging in sensitive places, for instance in a loop. To improve performance: do something like: 
@@ -25,7 +29,7 @@
     logger.log(Level.SEVERE, "some message", e);
     }

-## Persist data easily
+### b. Persist data easily

 If you need to save data in a database, you might need to use technologies such as JDBC, Hibernate...  
 Hence, the complexities of those tools are sometime not worth for the needs of persistence.  
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">manny kung</dc:creator><pubDate>Mon, 12 Oct 2015 15:17:24 -0000</pubDate><guid>https://sourceforge.net2eb4c23461e6261e4f3c97e8a4c82d1a3a8f27d7</guid></item><item><title>Developer_area modified by Scott Davis</title><link>https://sourceforge.net/p/mars-sim/wiki/Developer_area/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -1,9 +1,11 @@
 This page enables members of the MSP team to share technical knowledge.  
 So do not be shy, feel free to put content here such as tips, tricks, cool tools, new framework introduction....

-## Beginning to work
+## Setting up a Mars Simulation Project Development Environment

-See [this](Getting_Started_with_MSP) page to get started with MSP and how to setup up eclipse and m2eclipse. 
+[Setting_up_a_MSP_development_environment_with_the_command_line] describes how to check out, build, and run the Mars Simulation Project with the command line. 
+
+[Setting up a MSP development environment with Eclipse](Getting_Started_with_MSP) describes how to check out, build, and run the Mars Simulation Project with the Eclipse SDK. 

 ## Using Logging in MSP

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Scott Davis</dc:creator><pubDate>Tue, 10 Jun 2014 21:18:15 -0000</pubDate><guid>https://sourceforge.net0c78e069fda93f913480486c08c29fe5cec3b045</guid></item><item><title>Developer_area modified by Christian Domsch</title><link>https://sourceforge.net/p/mars-sim/wiki/Developer_area/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -2,6 +2,8 @@
 So do not be shy, feel free to put content here such as tips, tricks, cool tools, new framework introduction....

 ## Beginning to work
+
+See [this](Getting_Started_with_MSP) page to get started with MSP and how to setup up eclipse and m2eclipse. 

 ## Using Logging in MSP

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christian Domsch</dc:creator><pubDate>Tue, 10 Jun 2014 21:18:15 -0000</pubDate><guid>https://sourceforge.net64d164da583d4cb1b7ea018bda93090312cf9a0d</guid></item><item><title>Developer_area modified by Christian Domsch</title><link>https://sourceforge.net/p/mars-sim/wiki/Developer_area/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,11 +1,7 @@
-# Developer Area
-
-  
 This page enables members of the MSP team to share technical knowledge.  
 So do not be shy, feel free to put content here such as tips, tricks, cool tools, new framework introduction....

-  
-
+## Beginning to work

 ## Using Logging in MSP

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christian Domsch</dc:creator><pubDate>Tue, 10 Jun 2014 21:18:15 -0000</pubDate><guid>https://sourceforge.netcc4fce18cf26b877dfb754f2e1a8829696f159de</guid></item><item><title>Developer_area modified by Scott Davis</title><link>https://sourceforge.net/p/mars-sim/wiki/Developer_area/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="developer-area"&gt;Developer Area&lt;/h1&gt;
&lt;p&gt;This page enables members of the MSP team to share technical knowledge.&lt;br /&gt;
So do not be shy, feel free to put content here such as tips, tricks, cool tools, new framework introduction.... &lt;/p&gt;
&lt;h2 id="using-logging-in-msp"&gt;Using Logging in MSP&lt;/h2&gt;
&lt;p&gt;- Use logger instead of system.out.println statement&lt;br /&gt;
- Use FINE,FINER,FINEST level for logging in sensitive places, for instance in a loop. To improve performance: do something like: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;logger&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;isLoggable&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;Level&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;FINEST&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="c1"&gt;//log at finest level&lt;/span&gt;
&lt;span class="n"&gt;logger&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;finest&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;test&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;- In catch blocks, always join the exception trace in the log, it makes the life easier when debugging: so use &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="n"&gt;some&lt;/span&gt; &lt;span class="n"&gt;code&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="n"&gt;catch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;Exception&lt;/span&gt; &lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="n"&gt;logger&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;Level&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;SEVERE&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;quot;some message&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;h2 id="persist-data-easily"&gt;Persist data easily&lt;/h2&gt;
&lt;p&gt;If you need to save data in a database, you might need to use technologies such as JDBC, Hibernate...&lt;br /&gt;
Hence, the complexities of those tools are sometime not worth for the needs of persistence.&lt;br /&gt;
I found a framework to persist Java beans and manage persistent data easily:&lt;br /&gt;
DB40&amp;nbsp;: &lt;a href="http://www.db4o.com" rel="nofollow"&gt;http://www.db4o.com&lt;/a&gt;&lt;br /&gt;
Developer area: &lt;a href="http://developer.db4o.com" rel="nofollow"&gt;http://developer.db4o.com&lt;/a&gt; &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;ObjectContainer&lt;/span&gt; &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;Db4o&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;openFile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;database.db&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
   &lt;span class="n"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
       &lt;span class="n"&gt;Data&lt;/span&gt; &lt;span class="n"&gt;test1&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;new&lt;/span&gt; &lt;span class="n"&gt;Data&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;Sebastien&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;26&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

       &lt;span class="c1"&gt;//persist test1 object&lt;/span&gt;
       &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;test1&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

       &lt;span class="p"&gt;}&lt;/span&gt;
   &lt;span class="n"&gt;finally&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
       &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;close&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
   &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Scott Davis</dc:creator><pubDate>Tue, 10 Jun 2014 21:18:14 -0000</pubDate><guid>https://sourceforge.neta55f1e836e3922a3abe89b4f5d7d4141dfc10a9e</guid></item></channel></rss>