Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #18554 > unrolled thread
| Started by | bob smith <bob@coolfone.comze.com> |
|---|---|
| First post | 2012-09-05 08:17 -0700 |
| Last post | 2012-09-06 22:33 -0700 |
| Articles | 6 — 6 participants |
Back to article view | Back to comp.lang.java.programmer
Snippets bob smith <bob@coolfone.comze.com> - 2012-09-05 08:17 -0700
Re: Snippets Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-09-05 11:44 -0400
Re: Snippets Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-09-05 09:31 -0700
Re: Snippets Leif Roar Moldskred <leifm@dimnakorr.com> - 2012-09-05 15:05 -0500
Re: Snippets Lew <lewbloch@gmail.com> - 2012-09-05 13:13 -0700
Re: Snippets Roedy Green <see_website@mindprod.com.invalid> - 2012-09-06 22:33 -0700
| From | bob smith <bob@coolfone.comze.com> |
|---|---|
| Date | 2012-09-05 08:17 -0700 |
| Subject | Snippets |
| Message-ID | <45cdb21d-de35-4de6-ba4e-ae830f0a84dd@googlegroups.com> |
Is there a good place where you can get lots of "Snippets" of Java code (like for Eclipse)? I'm looking for snippets like for "starting a thread."
[toc] | [next] | [standalone]
| From | Eric Sosman <esosman@ieee-dot-org.invalid> |
|---|---|
| Date | 2012-09-05 11:44 -0400 |
| Message-ID | <k27s0k$ilu$1@dont-email.me> |
| In reply to | #18554 |
On 9/5/2012 11:17 AM, bob smith wrote:
> Is there a good place where you can get lots of "Snippets" of Java code (like for Eclipse)?
>
> I'm looking for snippets like for "starting a thread."
Don't know about the general matter, but for the specific
question see
<http://docs.oracle.com/javase/tutorial/essential/concurrency/runthread.html>
--
Eric Sosman
esosman@ieee-dot-org.invalid
"The speed at which the system fails is usually not important."
[toc] | [prev] | [next] | [standalone]
| From | Daniel Pitts <newsgroup.nospam@virtualinfinity.net> |
|---|---|
| Date | 2012-09-05 09:31 -0700 |
| Message-ID | <m7L1s.19839$EJ7.12984@newsfe10.iad> |
| In reply to | #18554 |
On 9/5/12 8:17 AM, bob smith wrote: > Is there a good place where you can get lots of "Snippets" of Java code (like for Eclipse)? > > I'm looking for snippets like for "starting a thread." > Google is a good place to search for snippets. For your example, <http://lmgtfy.com/?q=starting+a+thread+in+java> Though this is a terrible way to program, because people often don't fully understand what the snippet does (especially if this is the only way they program). Often times there are multiple ways to approach something, each with different trade-offs and implications. Simply copying the first snippet that seems to work will eventually lead to disaster. This is true with any language, not just Java. I suggest instead learning how to actually program in Java. Read tutorials, buy books, ask smart questions. If you're interested in threading specifically, a must-read is "Java Concurrency in Practice" <http://www.amazon.com/dp/0321349601?tag=virtuinfinnet-20&camp=14573&creative=327641&linkCode=as1&creativeASIN=0321349601&adid=070QHH97QBDPJ8X254PX> Yes, buying from that link gives me money, but you can search for the book on Google if you feel they deserve the money more than I do :-) They have plenty of "snippets" in that book too, BTW. Anyway, good luck, Daniel.
[toc] | [prev] | [next] | [standalone]
| From | Leif Roar Moldskred <leifm@dimnakorr.com> |
|---|---|
| Date | 2012-09-05 15:05 -0500 |
| Message-ID | <MYidnal3aYs8LdrNnZ2dnUVZ8hWdnZ2d@giganews.com> |
| In reply to | #18554 |
bob smith <bob@coolfone.comze.com> wrote: > Is there a good place where you can get lots of "Snippets" of Java code (like for Eclipse)? There _were_ they O'Reilly Cookbooks for Java, but those are pretty old and rather dated now. -- Leif Roar Moldskred
[toc] | [prev] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2012-09-05 13:13 -0700 |
| Message-ID | <d8273e13-5c3a-4c49-900c-9bbb05e240a9@googlegroups.com> |
| In reply to | #18559 |
Leif Roar Moldskred wrote: > bob smith wrote: > > Is there a good place where you can get lots of "Snippets" of Java code (like for Eclipse)? "like for Eclipse"? What do you mean? > There _were_ they O'Reilly Cookbooks for Java, but those are pretty > old and rather dated now. Just about every article on IBM's Developerworks for Java site. https://www.ibm.com/developerworks/java/ -- Lew
[toc] | [prev] | [next] | [standalone]
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2012-09-06 22:33 -0700 |
| Message-ID | <il1j489ohko2d3u4g4jou92sbvio8sg29u@4ax.com> |
| In reply to | #18554 |
On Wed, 5 Sep 2012 08:17:02 -0700 (PDT), bob smith <bob@coolfone.comze.com> wrote, quoted or indirectly quoted someone who said : >Is there a good place where you can get lots of "Snippets" of Java code (like for Eclipse)? > >I'm looking for snippets like for "starting a thread." If you look up the name of a component or collection in the Java glossary http://mindprod.com/jgloss/jgloss.html, there will be a self contained compilable example to demonstrate the basic features of its use. You can look up things like JDBC to see how to open various databases, SQL to do the basic operations, enum for how to do things with enums... -- Roedy Green Canadian Mind Products http://mindprod.com A new scientific truth does not triumph by convincing its opponents and making them see the light, but rather because its opponents eventually die, and a new generation grows up that is familiar with it. ~ Max Planck 1858-04-23 1947-10-04
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web