Snippets!

Lets face it. It is a cut and paste world out there. I've been amazed at how many people seem to freeze when faced with a blank screen. "Where do I start?"

It seems our programming culture, for better or worse, has become one of programming by example. The internet has made so much code so easily available that its hard to think of something that doesn't have source code readily available. This is both good and bad. It's good because generally sharing makes the world a better place. You can make a lot more progress if you get to reuse other people's code. Many projects become integration projects rather than coding projects. You also get the benefit of seeing other people's code and learning from it - often a great experience. The bad side is that people rarely take the time to understand the code that they are using. This means that they end up with a system that they don't know well, and in complex systems this can lead to unstable or inefficient code.

Well, we aren't going to deny the power of sharing code. Its just too strong a force. After all the entire Sun SPOT project is open source because of this. We do believe that there is a benefit to learning a system with small bite-sized bits of code that are relatively easy to understand. With that in mind, we've created a tool just for sharing, storing and browsing snippets of Sun SPOT code. It can be found in the Sun SPOT Manager Tool under the new "Share" tab. David Simmons, who wrote this code, recently blogged about how to use it. Take a look and let us know what you think.


201003011843.jpg
Comments:

I've installed sunspot in ubuntu 9.10 and I'm having trouble running the ant solarium command (I do not have physical devices, hence, I'm emulating the scenarios).

I'm sorry if my comment is misplaced here. please let me know what the problem here is!

@dolphin-laptop:/home/dolphin/SunSPOT/sdk/Demos/EmulatorDemo# ant solarium
Buildfile: build.xml

BUILD FAILED
/home/dolphin/SunSPOT/sdk/Demos/EmulatorDemo/build.xml:30: Cannot find ${sunspot.home}/build.xml imported from /home/dolphin/SunSPOT/sdk/Demos/EmulatorDemo/build.xml

Thanks!

Posted by dolphin on March 03, 2010 at 11:27 AM PST #

It seems our programming culture, for better or worse, has become one of programming by example.

Posted by ed hardy swimwear on March 05, 2010 at 11:08 AM PST #

I've installed sunspot in ubuntu 9.10 and I'm having trouble running the ant solarium command (I do not have physical devices, hence, I'm emulating the scenarios).

I'm sorry if my comment is misplaced here. please let me know what the problem here is!

@dolphin-laptop:/home/dolphin/SunSPOT/sdk/Demos/EmulatorDemo# ant solarium
Buildfile: build.xml

BUILD FAILED
/home/dolphin/SunSPOT/sdk/Demos/EmulatorDemo/build.xml:30: Cannot find ${sunspot.home}/build.xml imported from /home/dolphin/SunSPOT/sdk/Demos/EmulatorDemo/build.xml

Thanks!

Posted by dolphin on March 14, 2010 at 02:30 PM PDT #

Post a Comment:
Comments are closed for this entry.
About

Roger Meike, Senior Director of Area 51 and Director of Operations Sun Labs

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today