StDoodle
Minion
My point was that the Wiki should made to influence non-programmers to think like programmers...
I only agree up to a point; it should do so on the pages for the functions, themselves. It shouldn't go so far as to frustrate someone who doesn't type "visit_url()" into the search box, but rather "visit_url". As a test, I made a page for "test_function()" on the wiki (which will be deleted shortly). The default search, when "test_function" is entered in the search box, returns absolutely nothing. I think this goes beyond "encouraging people to think like a programmer" and more towards "mind-numbingly frustrating for the new user." Again, if the way wiki-search worked by default was different, this wouldn't be an issue & I'd be on the side of including the "()" in a page's title.
@StDoodle - Chin up. This is supposed to be fun for you. Please don't let it be otherwise
It mostly is, so I shall continue. I like a nice challenge, anyway, and being the "voice of the non-programmer" on a site such as this certainly fits the bill!
My focus on the parenthesis issue is strictly based upon finding things....Thus I hope my opinions are not offensive and recognize that I am not necessarily helping us towards the goal by expressing them.
Me too, and me too.
If a template is set up, may I ask that it is clear for a non-wiki expert to edit its content. Currently pages such as this look completely bizarre to me and I wouldn't have a clue what all the {}s mean.
Yeah, that's a result of trying to test out features that aren't currently implemented. I think bumcheekcity & I are in agreement that the template itself should contain most of the grunt work, such that when you make / edit a page to reference that template, all you have to do is fill out a couple of basic pieces of information.
Finally, may I ask for some sort of advice to be documented on what makes a good code example. In my head, simpler is better but some code on the wiki seems also to try and show off. For example, why does the function creatable_amount() require the user to know and understand what map constructs do? While it's not a problem for me, it seems crazy for a wiki to demand knowledge that I think is more complex than what it is trying to document.
I agree; if such a code example is going to be used, there should first be a simpler example that only requires basic knowledge and perhaps one or two other functions.
Finding good examples is an art form. ... Thus I have no problem presupposing some knowledge of maps in code examples.
I, for one, think that every function with a code-sample including maps should have a code sample without them first. Despite already being familiar with associate arrays from LISP, it still took me a bit of effort to wrap my head around exactly how to use maps in ash. I can understand that in many situations we may need to assume the user is familiar with their existence, but assuming the user is familiar with their syntax to demonstrate a rather simple function seems a bit much.
...but at its raw level function x()'s documentation should not be contingent on more knowledge of data structure y than is needed.
Exactly.