From the FAQ :
"We feel the best Electronics Design questions have a schematic, links to pertinent datasheets or some C code in them,"
Why do 'the best' have to be in C ?.
What's wrong with assembler, or BASIC, or pseudo code ?
From the FAQ :
"We feel the best Electronics Design questions have a schematic, links to pertinent datasheets or some C code in them,"
Why do 'the best' have to be in C ?.
What's wrong with assembler, or BASIC, or pseudo code ?
You are correct. It does not have to be C code, we just referenced by far the most common code we see on the site.
If you are explaining how you are coding something it will help. If you are debugging and having an issue with behavior your actual code would be better then psuedo code, as implementation is possibly the issue, but in other cases psuedo code probably saves quite a bit of space on the screen.
This is splitting hairs beyond diminishing returns.
I've never seen a question down-voted or closed because the code snippet was in some language other than C. Provided that everything else is valid.
You are correct. C is not required and it is wrong of the FAQ to specifically say you should to post C code. The FAQ should not be in the business of telling people what language to use or what is "best". This should be fixed to say "source code".