Le 09/10/2011 12:00, Zardoz a écrit :
Recently I've been asked if I could give a speech about D in my university. It
will be of one hour of long.
I not respond yet, but I think that I will do it. Actually I have the problem
that I don't know well how explain well too many features and things of D that
I like. I think that only talking about D's arrays and type system I will need
around half-hour.
Any recommendation of how I should focus it ?

I think you should show through several exemples. AS IT IS UNIVERSITY, I guess your public will know about programming.

Explain difference between struct and classes, and how it is great compared to C++ (no slicing for exemple).

Show some stuffs about first class function and delegates (for callback for exemple) coppared to how painful it is in C++ or java (using interface and useless object)

Then, gove a talk aboit metaprogramming (how you can implement behaviral pattern with no cost at runtime, how you can make very generic code like STL) and why it is way better than C++ (usability with stuffs like static if) or java (generic isn't metaprogramming).

And last but not least : explain memory model and how it help to deal with multithrading problems where other languages usually aren't good.

The point isn't to bash C++ or java, but to show how some problem you face in thoses languages can be solved elegantly in D.

If your public knows others languages than java and C++, then adapt the speach to what they know.

Reply via email to