User talk:Waxhead

From LiteratePrograms
Jump to: navigation, search

Until I figure out how to edit a new section in C programming language (macros) I just leave this text here ;)

This is simple but usefull macro that makes sure that value always is within max or min

<<bounds macro example>>=
#include <stdio.h>

#define bounds(value, min, max)  (value>max?max:value<min?min:value)

int main(void)
{
 for(int n=0; n<10; n++)
 {
   printf("n = %d Adjusted: %d\n", n, bounds(n,3,6));
 }
 return 0;
}
Hi Waxhead, and welcome! That's a nice code sample. I'm not sure exactly where it would go - maybe some kind of "utilities" or "helpers" category. To create a new article, all you have to is type its name in the Go box and then click the "create new article" link. Usually C articles end in "(C)" as in "Quicksort (C)". Hope this helps. Please contact me or visit the public forum if you need more help. Deco 15:39, 6 March 2006 (PST)

hehe it seems that I know C better than mediawiki ;) I'll do my best! C ya!

Waxhead 12:33, 7 March 2006 (PST)

Contents

[edit] Welcome

Hi, Waxhead, and welcome to LiteratePrograms! I hope you like the place and decide to stay. Here are a couple of tips for newcomers:

  • If you haven't done so already, please take a look at how to write an article on LiteratePrograms. The markup is basically the same as that used on Wikipedia, but there are a few differences of which you should be aware.
  • Please try to include a descriptive edit summary with every edit you make.
  • Please sign your name on talk pages using four tildes (~~~~); this will automatically produce your name and the date.

I hope you enjoy editing here! If you need help, post a question on the Public forum, ask Deco (the site creator), or just ask me on my talk page. --Allan McInnes (talk) 15:35, 7 March 2006 (PST)

[edit] Articles vs. Categories

Hi! I just noticed that you've started putting some content in Category:Formatting style:C. Please note that categories are generally meant for grouping related articles. The only content they typically have is stuff that is relevant to all articles in the category (see Category:Fibonacci_numbers for one such example). Please see Category talk:Formatting style:C for more. --Allan McInnes (talk) 16:39, 7 March 2006 (PST)

[edit] Category:Formatting style:C

Hi again, Waxhead. I appreciate your contribution to this article, but since it's really just information about coding practices rather than code or something that could be coded, I'm suggesting that it be deleted. Is this okay with you? I want to keep the scope of the project focused on things that aren't already in the scope of or even already covered by other project (see for example Wikipedia:Indent style). Deco 16:50, 7 March 2006 (PST)

[edit] Oh crap!

I wasn't aware of the wikipedia article (stupid me didn't check). The wikipedia article is ok but I still think that since this page is a potential "goldmine" and also problably will be some sort of "wikipedia for coders" I'm not totaly convinced that you should delete it since tips on code layout etc can be very usefull for ppl and I personaly think that coding style should be a part of LP. That beeing said feel free to delete it if you feel like it. I won't get pissed off because of that ;) it's your page after all! Also sorry for all the mistakes I'm doing - please bare with me but all my experience with wikis are editing pages allready there :)

Good luck with this very interesting project!

Thanks for understanding. I can see how this kind of thing might be useful, and I can see you put a lot of work into it, but I'd like to stick to code that can be downloaded and run. What you could do instead is write an article describing an editor extension (for example, an emacs elisp package) to support these various indention styles. For now I've deleted it, but your other contributions have been great, please keep up the good work. Deco 12:05, 8 March 2006 (PST)


Don't worry about making mistakes — it's all part of the learning process! :-) Your contributions have been great so far, and I really hope you'll keep contributing!
Anyway, about the code formatting tips: I agree that they're useful, but I don't think that necessarily means the have to appear here on LP. It seems to me that there are two important questions that need to be answered here:
1. Are there already websites out there that collect code formatting tips?
If so, then it seems silly to duplicate that content here when we can just provide a link to it (that is after all what the web is for).
2. Do code formatting tips really need the unique literate programming and code downloading capabilities of LiteratePrograms?
If not, then perhaps they'd be better suited to a project like WikiBooks, where an entire "book" on code formatting could be created (and we could again link to it).
Regarding a "wikipedia for coders", you might be interested in taking a look at WikiProject Computer science.
--Allan McInnes (talk) 12:24, 8 March 2006 (PST)

[edit] You're a power user

Hi Waxhead! I went ahead and made you a power user so you can delete and protect articles and block malicious users. See LP:Power Users for more info. Thanks for all your contributions! Deco 17:22, 21 June 2006 (PDT)

Congratulations! --Allan McInnes (talk) 20:57, 21 June 2006 (PDT)
Thanks for beeing totaly nuts and showing me such confidence 8) - Seriously: I'll try my very best to not wreck the entire site at once. Also thanks for noticing my contributions. I might not have a high contribution rate but I'll try to spit in a few useful things every now and then. Thanks once again :) Waxhead 21:56, 21 June 2006 (PDT)
Congratulations! Ahy1 04:37, 22 June 2006 (PDT)
hijacker
hijacker
hijacker
hijacker