--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
Hi,For a java course at my university students had to write a railway simulator - the idea was more or less to write randomly generate a map with railways and regular roads. Some of the tracks where double (i.e. trains can go both directions at the same time) and the other just a single track (one train, one direction at a time). In the the single tracks there were special bays for trains to wait while a train in the opposite direction is running. There were passenger trains and cargo trains, but the former had a priority over the latter (when single tracks were considered). There were cars on the regular roads (all bidirectional and running at the same speed), the only challenge for cars was to stop when a road crossed a railway and there was a train running on that railway. The idea was of course not cause any collision. The graphics had to pretty simple, i.e. 2d bird perspective, rectangles representing trains and squares representing cars.Of course this was quite a big end-of-semester assignment. Maybe it will give you some ideas.Thanks,Igor
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
Thank you, Jim. This is Belarusian State University.
On Thu, Aug 9, 2012 at 6:23 PM, Jim - FooBar(); <jimpi...@gmail.com> wrote:
On 09/08/12 16:21, Nikita Beloglazov wrote:this is amazing! seriously, bravo! what university is this?
I'm going to organize little clojure course at my university this year.
Jim
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
It's really great that you are going to teach Clojure at BSU.I have no clue about teaching, but my impression is that back in my days, we didn't learn much about how to write good code.
Maybe things were different in 'informatics', but in 'applied mathematics', for instance, we only had exposure to imperative programming.
I think, your course could get students familiar with the concepts and benefits of FP (immutability, referential transparency, etc.). Then they could learn more specific things like persistent data structures, multimethods, macros, agents, etc.. I would probably try to emphasize the advantages of certain features of Clojure and FP in general, when it is appropriate to use them and how.
As for the interactive tasks, I think, it's a good idea, as they are fun.My only note so far is that they seem to require quite some effort unrelated to learning Clojure, but it may be what you intended (would be nice seing your course program).For instance, in 'artillery' task, the time it took to code up the solution was infinitesimal, compared to the time I spent building the model and recalling how to solve trigonometric and quadratic equations :). But seing the plain fall was rewarding...
One task I remember form my courses was to program a trolley that moves parts between the machines of a production line (Each machine has an input and output queue with limited capacities, and a distinct processing time). This can also be extended for concurrency task, if you introduce two trolleys, etc.
Another thought about concurrency - let them program the 'dining philosophers'.In addition, the idea of writing game bots can be exploited further: e.g. what about a tetris bot?
I'm very excited about your intent to teach Clojure at BSU. I would be glad to stay in touch for further discussions.Daniil
--