petermichaux / maria

The MVC framework for JavaScript applications. The real MVC. The Smalltalk MVC. The Gang of Four MVC.
BSD 2-Clause "Simplified" License
765 stars 51 forks source link

Added tests for checkit classes: ToDoModel and ToDosModel. #87

Open OldManLink opened 8 years ago

OldManLink commented 8 years ago

As suggested in the documentation, I went ahead and wrote unit tests for the ToDoModel class, following the step-by-step instructions on the Quick-Start Tutorial page. Then I went ahead and wrote tests for the ToDosModel while I was at it.

I hope these might be useful to a newcomer to the framework.

petermichaux commented 8 years ago

Wow! Nicely done!

How did you find the experience of following along with the Quick Start tutorial?

OldManLink commented 8 years ago

It was very easy to follow for me. I come from 15+ years as a professional Smalltalk developer, so the concepts are easy for me to grasp.

I'm hoping to be able to use maria for a little project I'm working on, and for me (as a dyed-in-the-wool TDD guy), I learn new frameworks best by reading (and writing) tests.

petermichaux commented 8 years ago

"15+ years as a professional Smalltalk developer"!!! Wow! I wish I had that wealth of knowledge when starting JavaScript development. When I started JavaScript, there were no MVC or MV* frameworks for building Web apps. It was just spaghetti everywhere in the JavaScript world but the apps were growing in complexity and several of us were independently struggling to find ways to organize that code. It took me a while to dig through the history books and when I finally made it to reading Smalltalk source code for the model, view, and controller classes, my search was over.

Did you see this article that I wrote?

http://peter.michaux.ca/articles/smalltalk-mvc-translated-to-javascript

OldManLink commented 8 years ago

I did start reading it a while ago, and that was enough to convince me that maria was worth looking into. Now, I will go ahead and finish the article.

I've been longing for a proper MVC Javascript framework ever since the Smalltalk work dried up and I was forced to start writing Scala and Javascript. Your comparison with "Frankenstein" is exactly the experience I've had until now. But this does look promising, so I hope you won't mind if I bug you with questions every now and then.

BTW, what would be your preferred communication channel for such questions? Should I make threads in "Issues", or would you prefer email?

petermichaux commented 8 years ago

If you have questions where the discussion could possibly help others, please make issues. I like the history of the discussion to be available if appropriate.

If a public issue seems like an inappropriate channel, you are welcome to email me.