Talk:Vector

From Rosetta Code
Revision as of 19:48, 21 March 2015 by rosettacode>Paddy3118 (→‎Duplication?: Add your code to existing task?)

Creation

This is my first task, so I created it as a draft, please tell me what I could improve.

Big plus is you have started with an implementation too - that helps a lot I find in getting the amount of work needed to fulfill the task right.
Try looking at the task description on its own; then at the example. Would someone else be able to come up with a wildly different example from the description? If you knew the language, would you be able to state that another example fulfilled the task? would those two examples be constrained to do similar things?
I think that the task description needs more work to describe in more detail what needs to be written to meet it and to also make more examples comparable; also don't assume that readers know the mechanics and equations necessary to fulfill the task - it's best to put it in the task description. In Quaternion type, and Vector products for example, all the maths is in the tasks description. For your task you should describe and state those "four basic operations", and maybe describe or give an example of what pretty printing might look like (with some leeway for those who like to embellish or have languages that have inbuilt and possibly better pretty printers).
Just my thoughts :-)
--Paddy3118 (talk) 19:29, 21 March 2015 (UTC)

Duplication?

Oh. Wait a bit, is this a duplication of Vector products. I was just typing away and it took me some time to take a look at what you have versus what I mentioned - My bad. This is probably a duplication. I guess you need to search for key words such as vector in the site before starting a task to see if it is already done. --Paddy3118 (talk) 19:37, 21 March 2015 (UTC)

I took the liberty of adding lang tags around your code to colourize it.
If you can add the correct implementation of the examples to your code then you could add it as a second Python entry on the Vector products#Python section as it is a sufficiently different implementation - using a class rather than a module of functions.
Take a look at how the existing Python does the output header and the pre tag around its output and copy that as needed too. --Paddy3118 (talk) 19:48, 21 March 2015 (UTC)