Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #13934 > unrolled thread
| Started by | Peter Cheung <cmk128@gmail.com> |
|---|---|
| First post | 2012-04-26 15:29 -0700 |
| Last post | 2012-05-05 19:53 -0400 |
| Articles | 18 — 7 participants |
Back to article view | Back to comp.lang.java.programmer
JOutlookBar Peter Cheung <cmk128@gmail.com> - 2012-04-26 15:29 -0700
Re: JOutlookBar Lew <lewbloch@gmail.com> - 2012-04-26 16:19 -0700
Re: JOutlookBar Peter Cheung <cmk128@gmail.com> - 2012-04-26 20:17 -0700
Re: JOutlookBar Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-04-27 10:11 -0700
Re: JOutlookBar markspace <-@.> - 2012-04-27 12:33 -0700
Re: JOutlookBar Lew <lewbloch@gmail.com> - 2012-04-27 13:51 -0700
Re: JOutlookBar Peter Cheung <cmk128@gmail.com> - 2012-04-28 03:10 -0700
Re: JOutlookBar Arne Vajhøj <arne@vajhoej.dk> - 2012-04-28 18:03 -0400
Re: JOutlookBar Peter Cheung <cmk128@gmail.com> - 2012-04-28 03:06 -0700
Re: JOutlookBar Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-04-28 15:06 -0700
Re: JOutlookBar Lew <noone@lewscanon.com> - 2012-04-28 21:08 -0700
Re: JOutlookBar Peter Cheung <cmk128@gmail.com> - 2012-04-29 00:13 -0700
Re: JOutlookBar Peter Cheung <cmk128@gmail.com> - 2012-04-29 00:31 -0700
Re: JOutlookBar Lew <noone@lewscanon.com> - 2012-04-29 01:56 -0700
Re: JOutlookBar Peter Cheung <cmk128@gmail.com> - 2012-04-29 07:37 -0700
Re: JOutlookBar Patricia Shanahan <pats@acm.org> - 2012-04-29 07:51 -0700
Re: JOutlookBar Lew <noone@lewscanon.com> - 2012-04-29 12:01 -0700
Re: JOutlookBar Arne Vajhøj <arne@vajhoej.dk> - 2012-05-05 19:53 -0400
| From | Peter Cheung <cmk128@gmail.com> |
|---|---|
| Date | 2012-04-26 15:29 -0700 |
| Subject | JOutlookBar |
| Message-ID | <33049662.264.1335479370702.JavaMail.geo-discussion-forums@pbcnk4> |
http://www.youtube.com/watch?v=p6PzTWYgezM how to make swing timer run faster? I use swing timer to draw the animation, but it runs slowly.
[toc] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2012-04-26 16:19 -0700 |
| Message-ID | <15997725.898.1335482389670.JavaMail.geo-discussion-forums@pbbps5> |
| In reply to | #13934 |
On Thursday, April 26, 2012 3:29:30 PM UTC-7, Peter Cheung wrote: > http://www.youtube.com/watch?v=p6PzTWYgezM > how to make swing [sic] timer run faster? > I use swing [sic] timer to draw the animation, but it runs slowly. Please provide code. Best is to prepare a Simple, Self-Contained Compilable Example. http://sscce.org/ Unless you show us the code, here in the newsgroup, in an example that isolates the issue, it can be difficult to diagnose your problem. I would need to see how you're using the timer now to see what might be wrong. It could be a concurrency issue, or you might be running other things on the Event Dispatch Thread (EDT) that you shouldn't, there might be other demands on the system (e.g., from the video recording software), or you simply might not have enough computing power to run it faster. The solutions for those issues, if any of them pertain, is to make your code thread-safe, take things off the EDT, shut down other software and services while you record your video, or use a faster computer, respectively. -- Lew
[toc] | [prev] | [next] | [standalone]
| From | Peter Cheung <cmk128@gmail.com> |
|---|---|
| Date | 2012-04-26 20:17 -0700 |
| Message-ID | <7588566.806.1335496661608.JavaMail.geo-discussion-forums@pbqv7> |
| In reply to | #13936 |
Lew於 2012年4月27日星期五UTC+8上午7時19分49秒寫道: > On Thursday, April 26, 2012 3:29:30 PM UTC-7, Peter Cheung wrote: > > http://www.youtube.com/watch?v=p6PzTWYgezM > > how to make swing [sic] timer run faster? > > I use swing [sic] timer to draw the animation, but it runs slowly. > > Please provide code. > > Best is to prepare a Simple, Self-Contained Compilable Example. > http://sscce.org/ > > Unless you show us the code, here in the newsgroup, in an example that isolates the issue, it can be difficult to diagnose your problem. > > I would need to see how you're using the timer now to see what might be wrong. It could be a concurrency issue, or you might be running other things on the Event Dispatch Thread (EDT) that you shouldn't, there might be other demands on the system (e.g., from the video recording software), or you simply might not have enough computing power to run it faster. > > The solutions for those issues, if any of them pertain, is to make your code thread-safe, take things off the EDT, shut down other software and services while you record your video, or use a faster computer, respectively. > > -- > Lew The Swing timer is in here: http://code.google.com/p/peter-swing/source/browse/trunk/src/com/peterswing/advancedswing/outlookbar/OutlookBarLayout.java I already set it to 1ms, but it still runs slowly. So the animation is not smooth. thanks
[toc] | [prev] | [next] | [standalone]
| From | Daniel Pitts <newsgroup.nospam@virtualinfinity.net> |
|---|---|
| Date | 2012-04-27 10:11 -0700 |
| Message-ID | <GqAmr.21580$FQ1.19656@newsfe12.iad> |
| In reply to | #13937 |
On 4/26/12 8:17 PM, Peter Cheung wrote: > Lew於 2012年4月27日星期五UTC+8上午7時19分49秒寫道: >> On Thursday, April 26, 2012 3:29:30 PM UTC-7, Peter Cheung wrote: >>> http://www.youtube.com/watch?v=p6PzTWYgezM >>> how to make swing [sic] timer run faster? >>> I use swing [sic] timer to draw the animation, but it runs slowly. >> >> Please provide code. >> >> Best is to prepare a Simple, Self-Contained Compilable Example. >> http://sscce.org/ >> >> Unless you show us the code, here in the newsgroup, in an example that isolates the issue, it can be difficult to diagnose your problem. >> >> I would need to see how you're using the timer now to see what might be wrong. It could be a concurrency issue, or you might be running other things on the Event Dispatch Thread (EDT) that you shouldn't, there might be other demands on the system (e.g., from the video recording software), or you simply might not have enough computing power to run it faster. >> >> The solutions for those issues, if any of them pertain, is to make your code thread-safe, take things off the EDT, shut down other software and services while you record your video, or use a faster computer, respectively. >> >> -- >> Lew > > The Swing timer is in here: > http://code.google.com/p/peter-swing/source/browse/trunk/src/com/peterswing/advancedswing/outlookbar/OutlookBarLayout.java > > I already set it to 1ms, but it still runs slowly. > > So the animation is not smooth. > > thanks You're timer simply calls draw. Also, 1ms is really too fast, and will cause more harm than good. You should aim for closer to 30hz->60hz. Try around 33ms timer. Ideally, the "work" for your animation should be done in the timer handler too (so that your state changes on the timer, not just a redraw).
[toc] | [prev] | [next] | [standalone]
| From | markspace <-@.> |
|---|---|
| Date | 2012-04-27 12:33 -0700 |
| Message-ID | <jnes9f$145$1@dont-email.me> |
| In reply to | #13946 |
On 4/27/2012 10:11 AM, Daniel Pitts wrote: > On 4/26/12 8:17 PM, Peter Cheung wrote: >> I already set it to 1ms, but it still runs slowly. >> >> So the animation is not smooth. > You're timer simply calls draw. Also, 1ms is really too fast, and will > cause more harm than good. You should aim for closer to 30hz->60hz. Try > around 33ms timer. I happen to know a little about animation (graphics is a personal hobby of mine). The gold standard in animation is 25 frames per second, or 40 ms in between frames. However, as a practical matter, much lower frames rates are acceptable. Some cheaper animation, like some of the early so-called "japanimation," used as little as 4 or 6 frames per second in parts of their work. I'd start at 250 ms. 1 ms will clearly overwhelm any normal desktop system with too much work. Get 250 ms working, then see if it can be improved. > Ideally, the "work" for your animation should be done in the timer > handler too (so that your state changes on the timer, not just a redraw). This. Peter, what I've looked at in your code base is pretty bad. Most of it is really ugly generated code. Nothing has comments. There's no test harness that I saw. You need to slow down and write some code by hand, try to understand what is really going on. One good class is better than 100 cruddy classes, and it is certainly my impression that the latter is what you have.
[toc] | [prev] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2012-04-27 13:51 -0700 |
| Message-ID | <29372748.3.1335559861001.JavaMail.geo-discussion-forums@pbfk7> |
| In reply to | #13949 |
markspace wrote:
> Daniel Pitts wrote:
>> Peter Cheung wrote:
>>> I already set it to 1ms, but it still runs slowly.
>>>
>>> So the animation is not smooth.
>
>
>> You're timer simply calls draw. Also, 1ms is really too fast, and will
>> cause more harm than good. You should aim for closer to 30hz->60hz. Try
>> around 33ms timer.
>
>
> I happen to know a little about animation (graphics is a personal hobby
> of mine). The gold standard in animation is 25 frames per second, or 40
> ms in between frames.
>
> However, as a practical matter, much lower frames rates are acceptable.
> Some cheaper animation, like some of the early so-called
> "japanimation," used as little as 4 or 6 frames per second in parts of
> their work.
>
> I'd start at 250 ms. 1 ms will clearly overwhelm any normal desktop
> system with too much work. Get 250 ms working, then see if it can be
> improved.
>
>
>> Ideally, the "work" for your animation should be done in the timer
>> handler too (so that your state changes on the timer, not just a redraw).
>
> This.
>
> Peter, what I've looked at in your code base is pretty bad. Most of it
> is really ugly generated code. Nothing has comments. There's no test
> harness that I saw. You need to slow down and write some code by hand,
> try to understand what is really going on. One good class is better
> than 100 cruddy classes, and it is certainly my impression that the
> latter is what you have.
Looking at this part of your code, Peter:
public class OutlookBarLayout implements LayoutManager2, java.io.Serializable, ActionListener
// Why not import Serializable?
// Where is the 'serialVersionUID'?
{
public Hashtable<String, Component> components = new Hashtable<String, Component>();
// Don't use Hashtable
public int buttonHeight = 31;
private int separatorHeight = 8;
private int totalHeight;
private int noOfButtonLeft;
private int top;
private int left;
// bad scope, AFAICT, should be a local variable - how is this part of the instance state?
private int right;
private Timer timer = new Timer(1, this);
// Shouldn't this be 'final'?
private Container target;
private int currentY;
public OutlookBarLayout() {
}
...
You don't need to specify a no-argument, empty constructor.
Where are your Javadoc comments?
Have you gone over every line of this class and gained comprehension of what it does?
Please answer the questions in detail.
--
Lew
[toc] | [prev] | [next] | [standalone]
| From | Peter Cheung <cmk128@gmail.com> |
|---|---|
| Date | 2012-04-28 03:10 -0700 |
| Message-ID | <32783489.320.1335607830761.JavaMail.geo-discussion-forums@pbbpz9> |
| In reply to | #13950 |
Lew於 2012年4月28日星期六UTC+8上午4時51分00秒寫道:
> markspace wrote:
> > Daniel Pitts wrote:
> >> Peter Cheung wrote:
> >>> I already set it to 1ms, but it still runs slowly.
> >>>
> >>> So the animation is not smooth.
> >
> >
> >> You're timer simply calls draw. Also, 1ms is really too fast, and will
> >> cause more harm than good. You should aim for closer to 30hz->60hz. Try
> >> around 33ms timer.
> >
> >
> > I happen to know a little about animation (graphics is a personal hobby
> > of mine). The gold standard in animation is 25 frames per second, or 40
> > ms in between frames.
> >
> > However, as a practical matter, much lower frames rates are acceptable.
> > Some cheaper animation, like some of the early so-called
> > "japanimation," used as little as 4 or 6 frames per second in parts of
> > their work.
> >
> > I'd start at 250 ms. 1 ms will clearly overwhelm any normal desktop
> > system with too much work. Get 250 ms working, then see if it can be
> > improved.
> >
> >
> >> Ideally, the "work" for your animation should be done in the timer
> >> handler too (so that your state changes on the timer, not just a redraw).
> >
> > This.
> >
> > Peter, what I've looked at in your code base is pretty bad. Most of it
> > is really ugly generated code. Nothing has comments. There's no test
> > harness that I saw. You need to slow down and write some code by hand,
> > try to understand what is really going on. One good class is better
> > than 100 cruddy classes, and it is certainly my impression that the
> > latter is what you have.
>
> Looking at this part of your code, Peter:
>
> public class OutlookBarLayout implements LayoutManager2, java.io.Serializable, ActionListener
>
> // Why not import Serializable?
> // Where is the 'serialVersionUID'?
>
> {
> public Hashtable<String, Component> components = new Hashtable<String, Component>();
>
> // Don't use Hashtable
>
> public int buttonHeight = 31;
> private int separatorHeight = 8;
>
> private int totalHeight;
> private int noOfButtonLeft;
> private int top;
> private int left;
>
> // bad scope, AFAICT, should be a local variable - how is this part of the instance state?
>
> private int right;
> private Timer timer = new Timer(1, this);
>
> // Shouldn't this be 'final'?
>
> private Container target;
> private int currentY;
>
> public OutlookBarLayout() {
> }
> ...
>
> You don't need to specify a no-argument, empty constructor.
>
> Where are your Javadoc comments?
>
> Have you gone over every line of this class and gained comprehension of what it does?
>
> Please answer the questions in detail.
>
> --
> Lew
I don't have any javadoc, all the documents I wrote are in here http://code.google.com/p/peter-swing/w/list
I use Jigloo plugins to generate the UI code for pas few years, comfortable with it and I usually won't review the generated-code.
I was a traditional-java-programmer, I write all swing code by myself and didn't use any plugins to generate code. But now I changed, I use plugin to generate UI code. I don't care much about the generated-code by Jigloo plugin, if it works, everything fine to me.
peter-swing's components and theme seems working, so i don't brother jigloo's code.
[toc] | [prev] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2012-04-28 18:03 -0400 |
| Message-ID | <4f9c6940$0$284$14726298@news.sunsite.dk> |
| In reply to | #13961 |
On 4/28/2012 6:10 AM, Peter Cheung wrote: > Lew於 2012年4月28日星期六UTC+8上午4時51分00秒寫道: >> Have you gone over every line of this class and gained comprehension of what it does? > I use Jigloo plugins to generate the UI code for pas few years, comfortable with it and I usually won't review the generated-code. > > I was a traditional-java-programmer, I write all swing code by myself > and didn't use any plugins to generate code. But now I changed, I use > plugin to generate UI code. I don't care much about the > generated-code by Jigloo plugin, if it works, everything fine to me. But it did not work. In which case you should actually read your code before asking other people to read the code. Arne
[toc] | [prev] | [next] | [standalone]
| From | Peter Cheung <cmk128@gmail.com> |
|---|---|
| Date | 2012-04-28 03:06 -0700 |
| Message-ID | <30272854.404.1335607614038.JavaMail.geo-discussion-forums@pbgg10> |
| In reply to | #13949 |
markspace於 2012年4月28日星期六UTC+8上午3時33分00秒寫道: > On 4/27/2012 10:11 AM, Daniel Pitts wrote: > > > On 4/26/12 8:17 PM, Peter Cheung wrote: > >> I already set it to 1ms, but it still runs slowly. > >> > >> So the animation is not smooth. > > > > You're timer simply calls draw. Also, 1ms is really too fast, and will > > cause more harm than good. You should aim for closer to 30hz->60hz. Try > > around 33ms timer. > > > I happen to know a little about animation (graphics is a personal hobby > of mine). The gold standard in animation is 25 frames per second, or 40 > ms in between frames. > > However, as a practical matter, much lower frames rates are acceptable. > Some cheaper animation, like some of the early so-called > "japanimation," used as little as 4 or 6 frames per second in parts of > their work. > > I'd start at 250 ms. 1 ms will clearly overwhelm any normal desktop > system with too much work. Get 250 ms working, then see if it can be > improved. > > > > Ideally, the "work" for your animation should be done in the timer > > handler too (so that your state changes on the timer, not just a redraw). > > > This. > > Peter, what I've looked at in your code base is pretty bad. Most of it > is really ugly generated code. Nothing has comments. There's no test > harness that I saw. You need to slow down and write some code by hand, > try to understand what is really going on. One good class is better > than 100 cruddy classes, and it is certainly my impression that the > latter is what you have. I changed to use Runnable, animation become smooth now. I use Jigloo plugins to generate UI code, I am happy with that plugin and its generated code, so I would like to stay with it. thanks
[toc] | [prev] | [next] | [standalone]
| From | Daniel Pitts <newsgroup.nospam@virtualinfinity.net> |
|---|---|
| Date | 2012-04-28 15:06 -0700 |
| Message-ID | <ZRZmr.174818$s82.123807@newsfe10.iad> |
| In reply to | #13960 |
On 4/28/12 3:06 AM, Peter Cheung wrote: > I use Jigloo plugins to generate UI code, I am happy with that plugin and its generated code, so I would like to stay with it. thanks I read that as "I have no idea what I'm really doing, and I'm happy with that." God help me if I ever become that willfully ignorant.
[toc] | [prev] | [next] | [standalone]
| From | Lew <noone@lewscanon.com> |
|---|---|
| Date | 2012-04-28 21:08 -0700 |
| Message-ID | <jnies5$t93$1@news.albasani.net> |
| In reply to | #13979 |
On 04/28/2012 03:06 PM, Daniel Pitts wrote: > On 4/28/12 3:06 AM, Peter Cheung wrote: >> I use Jigloo plugins to generate UI code, I am happy with that plugin and >> its generated code, so I would like to stay with it. thanks > > I read that as "I have no idea what I'm really doing, and I'm happy with that." > > God help me if I ever become that willfully ignorant. It seems unlikely in your case. Peter, Daniel raises an important point that will help you if you take it. The art of programming requires learning, and not superstition. If you don't know what Jigloo does, and others have pointed out that it isn't working, then you are helpless and powerless. You also completely avoid the issue of the lack of documentation, the plagiarism which turns out not even to be necessary in the first place, and the general lack of utility of the project. These are serious issues, and resolving them will go a long way to making you a good programmer. Refusing to resolve them, and taking the sort of negative attitude towards the universal advice you're receiving, are bad habits and will destroy your capabilities. Just sayin' ... -- Lew Honi soit qui mal y pense. http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg
[toc] | [prev] | [next] | [standalone]
| From | Peter Cheung <cmk128@gmail.com> |
|---|---|
| Date | 2012-04-29 00:13 -0700 |
| Message-ID | <4525969.3.1335683635411.JavaMail.geo-discussion-forums@pbcgx8> |
| In reply to | #14006 |
Lew於 2012年4月29日星期日UTC+8下午12時08分46秒寫道: > On 04/28/2012 03:06 PM, Daniel Pitts wrote: > > On 4/28/12 3:06 AM, Peter Cheung wrote: > >> I use Jigloo plugins to generate UI code, I am happy with that plugin and > >> its generated code, so I would like to stay with it. thanks > > > > I read that as "I have no idea what I'm really doing, and I'm happy with that." > > > > God help me if I ever become that willfully ignorant. > > It seems unlikely in your case. > > Peter, Daniel raises an important point that will help you if you take it. The > art of programming requires learning, and not superstition. If you don't know > what Jigloo does, and others have pointed out that it isn't working, then you > are helpless and powerless. > > You also completely avoid the issue of the lack of documentation, the > plagiarism which turns out not even to be necessary in the first place, and > the general lack of utility of the project. These are serious issues, and > resolving them will go a long way to making you a good programmer. > > Refusing to resolve them, and taking the sort of negative attitude towards the > universal advice you're receiving, are bad habits and will destroy your > capabilities. > > Just sayin' ... > > -- > Lew > Honi soit qui mal y pense. > http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg Thanks, let me finish my project first.
[toc] | [prev] | [next] | [standalone]
| From | Peter Cheung <cmk128@gmail.com> |
|---|---|
| Date | 2012-04-29 00:31 -0700 |
| Message-ID | <32890598.730.1335684673600.JavaMail.geo-discussion-forums@pbw7> |
| In reply to | #14009 |
Peter Cheung於 2012年4月29日星期日UTC+8下午3時13分55秒寫道: > Lew於 2012年4月29日星期日UTC+8下午12時08分46秒寫道: > > On 04/28/2012 03:06 PM, Daniel Pitts wrote: > > > On 4/28/12 3:06 AM, Peter Cheung wrote: > > >> I use Jigloo plugins to generate UI code, I am happy with that plugin and > > >> its generated code, so I would like to stay with it. thanks > > > > > > I read that as "I have no idea what I'm really doing, and I'm happy with that." > > > > > > God help me if I ever become that willfully ignorant. > > > > It seems unlikely in your case. > > > > Peter, Daniel raises an important point that will help you if you take it. The > > art of programming requires learning, and not superstition. If you don't know > > what Jigloo does, and others have pointed out that it isn't working, then you > > are helpless and powerless. > > > > You also completely avoid the issue of the lack of documentation, the > > plagiarism which turns out not even to be necessary in the first place, and > > the general lack of utility of the project. These are serious issues, and > > resolving them will go a long way to making you a good programmer. > > > > Refusing to resolve them, and taking the sort of negative attitude towards the > > universal advice you're receiving, are bad habits and will destroy your > > capabilities. > > > > Just sayin' ... > > > > -- > > Lew > > Honi soit qui mal y pense. > > http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg > > Thanks, let me finish my project first. why people in the forum look like angering something on me?
[toc] | [prev] | [next] | [standalone]
| From | Lew <noone@lewscanon.com> |
|---|---|
| Date | 2012-04-29 01:56 -0700 |
| Message-ID | <jnivoa$r7m$1@news.albasani.net> |
| In reply to | #14011 |
Peter Cheung wrote: > why people in the forum look like angering something on me? There are several reasons, and it's a fair question. In the first place, I doubt that anyone is actually angry with you. There is a difference between harshness and anger, although few people pay attention to the difference. You have triggered some harsh reactions, but people really are trying to impart information to help you. The thing you do right is to engage with the conversation, to keep responding to people and trying to understand. As long as you do that no one should actually be angry with you. What people have been telling you is important information. There are high standards to professional programming, and they are rigorous. Early on you showed some resistance to the information people gave you. This is especially important in the area of ethics, which you violated. Besides that, you did not respond to the comments regarding engineering flaws in your code. Your responses to other comments, namely the lack of Javadocs and a build script, were dismissive and constituted little more than, "I'm not doing that." We know you're not doing that, we pointed out that you're not doing that. More importantly we pointed out that you should be doing that, advice that you ignore at your own cost. Basically you have not shown interest in the wisdom and expertise that the several very smart and knowledgeable people like Patricia Shanahan, Daniel Pitts, markspace and Arne Vajhøj, to name a few, have shared. You don't give reasons or logic for your decisions. You seem unaware and uninterested in respect for copyrights. Instead of taking coding advice, you say, "Let me finish my project," indicating that you are going to follow bad code with even more bad code. So people aren't so much angry with you as contemptuous of your behavior. Not of you, necessarily - I cannot imagine Ms. Dr. Shanahan showing less than exquisite courtesy and respect to any human being, for example - but certainly of actions that will harm your ability to put together good software. It's not good to be emotional or defensive about one's work in this business. The results have to work, and work in accordance with expectations. That is what it is beyond all wishing or superstition or resistance to brutally honest advice. Take the advice - respect for your behavior is far less important than success in software development. Following the advice of those wiser in this arena will lead to both. -- Lew Honi soit qui mal y pense. http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg
[toc] | [prev] | [next] | [standalone]
| From | Peter Cheung <cmk128@gmail.com> |
|---|---|
| Date | 2012-04-29 07:37 -0700 |
| Message-ID | <18532876.11.1335710273525.JavaMail.geo-discussion-forums@pbpw7> |
| In reply to | #14013 |
Lew於 2012年4月29日星期日UTC+8下午4時56分50秒寫道: > Peter Cheung wrote: > > why people in the forum look like angering something on me? > > There are several reasons, and it's a fair question. > > In the first place, I doubt that anyone is actually angry with you. There is a > difference between harshness and anger, although few people pay attention to > the difference. You have triggered some harsh reactions, but people really are > trying to impart information to help you. The thing you do right is to engage > with the conversation, to keep responding to people and trying to understand. > As long as you do that no one should actually be angry with you. I cannot really identify harshness/anger from english text, english is not my first language. > > What people have been telling you is important information. There are high > standards to professional programming, and they are rigorous. Early on you > showed some resistance to the information people gave you. This is especially > important in the area of ethics, which you violated. Besides that, you did not > respond to the comments regarding engineering flaws in your code. Your > responses to other comments, namely the lack of Javadocs and a build script, > were dismissive and constituted little more than, "I'm not doing that." We > know you're not doing that, we pointed out that you're not doing that. More > importantly we pointed out that you should be doing that, advice that you > ignore at your own cost. There is only one developer to develop peter-swing, yes, its me. The primary goal for peter-swing is to make a new theme for my other project http://code.google.com/p/peter-bochs/ . If it is working, i don't want to spend time on writing comment, i would like to spend time on peter-bochs rather. I really don't need a build script, because eclipse can build. Eclipse can build a executable jar, it is enough for me. I don't know how hurt is my sentence "I'm not doing that", but in chinese, that sentence is not a offensive sentence. But the words "Wow, shame on you, Peter", it is very offensive in my point of view. > > Basically you have not shown interest in the wisdom and expertise that the > several very smart and knowledgeable people like Patricia Shanahan, Daniel > Pitts, markspace and Arne Vajhøj, to name a few, have shared. You don't give > reasons or logic for your decisions. You seem unaware and uninterested in > respect for copyrights. Instead of taking coding advice, you say, "Let me > finish my project," indicating that you are going to follow bad code with even > more bad code. I create components and theme for people use, that is the only wisdom i have in peter-swing project. If you think peter-swing project is bad enough, just leave it. I really didn't steal somebody code, The class metalbump in my project, actually I don't use it. I have removed it. > > So people aren't so much angry with you as contemptuous of your behavior. Not > of you, necessarily - I cannot imagine Ms. Dr. Shanahan showing less than > exquisite courtesy and respect to any human being, for example - but certainly > of actions that will harm your ability to put together good software. > > It's not good to be emotional or defensive about one's work in this business. > The results have to work, and work in accordance with expectations. That is > what it is beyond all wishing or superstition or resistance to brutally honest > advice. Take the advice - respect for your behavior is far less important than > success in software development. Following the advice of those wiser in this > arena will lead to both. > > -- > Lew > Honi soit qui mal y pense. > http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg
[toc] | [prev] | [next] | [standalone]
| From | Patricia Shanahan <pats@acm.org> |
|---|---|
| Date | 2012-04-29 07:51 -0700 |
| Message-ID | <pdudnT-FnNnvyADSnZ2dnUVZ_rWdnZ2d@earthlink.com> |
| In reply to | #14025 |
On 4/29/2012 7:37 AM, Peter Cheung wrote: > There is only one developer to develop peter-swing, yes, its me. The > primary goal for peter-swing is to make a new theme for my other > project http://code.google.com/p/peter-bochs/ . If it is working, i > don't want to spend time on writing comment, i would like to spend > time on peter-bochs rather. > That is fine, if the objective is to write something strictly for your own use, and you have a *very* good memory, but in that case why post about it? I think many people assumed from your posting about it that you were writing open source intended to be shared with, and modified by, other programmers. In that case, code clarity and maintainability are critical, and should be evaluated by anyone reviewing the component. > I create components and theme for people use, that is the only > wisdom i have in peter-swing project. If you think peter-swing > project is bad enough, just leave it. I really didn't steal somebody > code, The class metalbump in my project, actually I don't use it. I > have removed it. The problem here is that anyone using your software has to trust you to offer only the licenses you are entitled to offer. Using software written by someone who would delete a copyright notice is dangerous, because it might lead to copyright violations in our applications. How do the rest of us know that you have not done the same thing with some other code none of us happen to recognize? Patricia
[toc] | [prev] | [next] | [standalone]
| From | Lew <noone@lewscanon.com> |
|---|---|
| Date | 2012-04-29 12:01 -0700 |
| Message-ID | <jnk36d$816$1@news.albasani.net> |
| In reply to | #14025 |
Peter Cheung wrote: > There is only one developer to develop peter-swing, yes, its me. >The primary goal for peter-swing is to make a new theme for my other project ... >If it is working, i don't want to spend time on writing comment, > i would like to spend time on peter-bochs rather. And yet you told the public about it. Do you steal code for your other project, too? Why did you feel the need to copy a class that was already present anyway? I've asked this question several times and you've *never* answered. > I really don't need a build script, because eclipse can build. Eclipse can build a executable jar, it is enough for me. I don't know how hurt is my sentence "I'm not doing that", but in chinese, that sentence is not a offensive sentence. > But the words "Wow, shame on you, Peter", it is very offensive in my point of view. If you think you are wiser than everyone who's answered you here to where you can reject our advice out of hand, that's fine, but understand that the odds are against that judgment. As for being offended, get over yourself. We're here to make each other a better programmer, and nobody has insulted you here, so leave your ego out of it. Besides, if anyone in this discussion has offered offense it's been you for dismissing our advice, failing to respond to our question, avoiding responsibility, and resorting to acting aggrieved when the appropriate response should have been dispassionate. If you earn the "Shame on you, Peter", how is that offensive? You have done things that deserve the criticism, objectively deserve it, and shown no sign whatsoever of remorse for it. You should be ashamed of those behaviors. So rather than be offended, you should be grateful for the honesty and respect that people have shown in giving you the truth. Take the advice offered here, and do not be a namby-pamby. -- Lew Honi soit qui mal y pense. http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg
[toc] | [prev] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2012-05-05 19:53 -0400 |
| Message-ID | <4fa5bd8e$0$284$14726298@news.sunsite.dk> |
| In reply to | #14011 |
On 4/29/2012 3:31 AM, Peter Cheung wrote: > Peter Cheung於 2012年4月29日星期日UTC+8下午3時13分55秒寫道: >> Lew於 2012年4月29日星期日UTC+8下午12時08分46秒寫道: >>> On 04/28/2012 03:06 PM, Daniel Pitts wrote: >>>> On 4/28/12 3:06 AM, Peter Cheung wrote: >>>>> I use Jigloo plugins to generate UI code, I am happy with that plugin and >>>>> its generated code, so I would like to stay with it. thanks >>>> >>>> I read that as "I have no idea what I'm really doing, and I'm happy with that." >>>> >>>> God help me if I ever become that willfully ignorant. >>> >>> It seems unlikely in your case. >>> >>> Peter, Daniel raises an important point that will help you if you take it. The >>> art of programming requires learning, and not superstition. If you don't know >>> what Jigloo does, and others have pointed out that it isn't working, then you >>> are helpless and powerless. >>> >>> You also completely avoid the issue of the lack of documentation, the >>> plagiarism which turns out not even to be necessary in the first place, and >>> the general lack of utility of the project. These are serious issues, and >>> resolving them will go a long way to making you a good programmer. >>> >>> Refusing to resolve them, and taking the sort of negative attitude towards the >>> universal advice you're receiving, are bad habits and will destroy your >>> capabilities. >>> http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg >> >> Thanks, let me finish my project first. > > why people in the forum look like angering something on me? Most developers do not like copyright violations. Arne
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web