Hi,
We're adding support for the D language to UNA (http://www.n-brain.net). The Personal Edition has been released free of charge (down from $100).
However, none of us have used D so we'd like a bit of help.
We've added support (in dev version) to matching messages of the form:
foo.d(5): Warning: silly variable name
foo.d(5): Error: spelling error in variable name "foobir"
Assuming this is correct, we'd like to proceed with adding commonly used source code constructs, D idioms, and so forth. We call this 'source snippets'. Each source snippet has a few letter textual key. Typing that key and invoking the source snippet button inserts the snippet.
So I'm soliciting for everyone's favorite source snippet.

John A. De Goes Wrote:
> Hi,
> > We're adding support for the D language to UNA (http://www.n-brain.net). The Personal Edition has been released free of charge (down from $100).
> > However, none of us have used D so we'd like a bit of help.
> > We've added support (in dev version) to matching messages of the form:
> > foo.d(5): Warning: silly variable name
> foo.d(5): Error: spelling error in variable name "foobir"
> > Assuming this is correct, we'd like to proceed with adding commonly used source code constructs, D idioms, and so forth. We call this 'source snippets'. Each source snippet has a few letter textual key. Typing that key and invoking the source snippet button inserts the snippet.
> > So I'm soliciting for everyone's favorite source snippet.
Better adjust your link as what you want people to do is visit your web site I guess What benefits does your editor have that say KDevelop does not?

Reply to Tower,
> John A. De Goes Wrote:
> >> Hi,
>> >> We're adding support for the D language to UNA
>> (http://www.n-brain.net). The Personal Edition has been released free
>> Better adjust your link as what you want people to do is visit your
> web site I guess
link looks fine to me. (OTOH if there is a UNA only page it would be better)

John A. De Goes wrote:
> Hi,
> > We're adding support for the D language to UNA (http://www.n-brain.net). The Personal Edition has been released free of charge (down from $100).
> > However, none of us have used D so we'd like a bit of help.
Well there's your problem! Come back later when you're educated. If you're having trouble, there are plenty of people who will help you get going with D.

John A. De Goes wrote:
> Assuming this is correct, we'd like to proceed with adding commonly
> used source code constructs, D idioms, and so forth. We call this
> 'source snippets'. Each source snippet has a few letter textual key.
> Typing that key and invoking the source snippet button inserts the
> snippet.
> > So I'm soliciting for everyone's favorite source snippet.
Can you give us some examples of what form these snippets take in other languages like C++ and Java?

John A. De Goes wrote:
> Hi,
> > We're adding support for the D language to UNA
> (http://www.n-brain.net). The Personal Edition has been released free
> of charge (down from $100).
> > However, none of us have used D so we'd like a bit of help.
> > We've added support (in dev version) to matching messages of the
> form:
> > foo.d(5): Warning: silly variable name foo.d(5): Error: spelling
> error in variable name "foobir"
> > Assuming this is correct, we'd like to proceed with adding commonly
> used source code constructs, D idioms, and so forth. We call this
> 'source snippets'. Each source snippet has a few letter textual key.
> Typing that key and invoking the source snippet button inserts the
> snippet.
> > So I'm soliciting for everyone's favorite source snippet.
Either there's something about your company that those who've already posted in this thread know and don't like, or the guys simply were in a bad mood.
Personally I'm glad that D support is being added by a new vendor, that is always welcome.
---
You've already probably downloaded the DMD compiler to get the documentation and lists of reserved words, etc. Witht that same download comes a wealth of source code, from which it should be possible to collect the most used idioms.
They aren't all that different from what the typical Java or C idioms are, so it might be enough to just have most basic construct snippets.

Thanks for the friendly reply. Looks like I caught people on a bad day. :-)
I have identified all the basic constructs, but wonder if I may be missing some things. For example, in Java, the following idioms are quite common (the first two, in concurrent programming):
synchronized (object) {
object.notifyAll();
}
synchronized (object) {
while (!condition) {
try {
object.wait();
}
catch (InterruptedException e) {
break;
}
}
}
new Runnable() {
public void run() {
}
}
public static void main(String[] args) {
}
These among many others. But I lack the familiarity with D to make such judgements. I was hoping regular D programmers had some oft-used favorites they could throw in.
Regards,
John
Georg Wrede Wrote:
> John A. De Goes wrote:
> > Hi,
> > > > We're adding support for the D language to UNA
> > (http://www.n-brain.net). The Personal Edition has been released free
> > of charge (down from $100).
> > > > However, none of us have used D so we'd like a bit of help.
> > > > We've added support (in dev version) to matching messages of the
> > form:
> > > > foo.d(5): Warning: silly variable name foo.d(5): Error: spelling
> > error in variable name "foobir"
> > > > Assuming this is correct, we'd like to proceed with adding commonly used source code constructs, D idioms, and so forth. We call this 'source snippets'. Each source snippet has a few letter textual key. Typing that key and invoking the source snippet button inserts the snippet.
> > > > So I'm soliciting for everyone's favorite source snippet.
> > Either there's something about your company that those who've already posted in this thread know and don't like, or the guys simply were in a bad mood.
> > Personally I'm glad that D support is being added by a new vendor, that is always welcome.
> > ---
> > You've already probably downloaded the DMD compiler to get the documentation and lists of reserved words, etc. Witht that same download comes a wealth of source code, from which it should be possible to collect the most used idioms.
> > They aren't all that different from what the typical Java or C idioms are, so it might be enough to just have most basic construct snippets.

Hi Walter,
See my other reply in this same thread for examples of commonly used constructs in Java.
Regards,
John
Walter Bright Wrote:
> John A. De Goes wrote:
> > Assuming this is correct, we'd like to proceed with adding commonly used source code constructs, D idioms, and so forth. We call this 'source snippets'. Each source snippet has a few letter textual key. Typing that key and invoking the source snippet button inserts the snippet.
> > > > So I'm soliciting for everyone's favorite source snippet.
> > Can you give us some examples of what form these snippets take in other languages like C++ and Java?

Hi Tower,
I'm not trying to persuade you to stop using KDevelop. By all means, continue to use your favorite development tool. I'm just soliciting regular D programmers on common constructs and idioms in the language, which are not easy to pick up without months of experience developing in a language.
Regards,
John
Tower Ty Wrote:
> John A. De Goes Wrote:
> > > Hi,
> > > > We're adding support for the D language to UNA (http://www.n-brain.net). The Personal Edition has been released free of charge (down from $100).
> > > > However, none of us have used D so we'd like a bit of help.
> > > > We've added support (in dev version) to matching messages of the form:
> > > > foo.d(5): Warning: silly variable name
> > foo.d(5): Error: spelling error in variable name "foobir"
> > > > Assuming this is correct, we'd like to proceed with adding commonly used source code constructs, D idioms, and so forth. We call this 'source snippets'. Each source snippet has a few letter textual key. Typing that key and invoking the source snippet button inserts the snippet.
> > > > So I'm soliciting for everyone's favorite source snippet.
> > Better adjust your link as what you want people to do is visit your web site I guess What benefits does your editor have that say KDevelop does not?
>