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 ?

  • 4
    \$\begingroup\$ OMG, the FAQ does not list every possible programming language used on microcontrollers! \$\endgroup\$ – Kaz Apr 16 '13 at 17:31
  • 3
    \$\begingroup\$ Because we don't have syntax highlighting for Basic, ASM, or pseudo-code ;) \$\endgroup\$ – W5VO Apr 16 '13 at 19:34
  • 8
    \$\begingroup\$ @W5VO: We could really use syntax highlighting for Gibberish, since that seems to be a popular lanaguage here recently. \$\endgroup\$ – Olin Lathrop Apr 16 '13 at 20:16
  • \$\begingroup\$ @OlinLathrop you know who will stop visiting at some point :) \$\endgroup\$ – Kortuk Apr 16 '13 at 21:46

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.

  • 1
    \$\begingroup\$ Hair splitting ?. Take an analogy : "The best cars to drive have 4 wheels, comfortable seats, and are made by Ford." \$\endgroup\$ – Buzby Apr 17 '13 at 9:30
  • 2
    \$\begingroup\$ @Buzby By your analogy, the FAQ should read something like "We feel the best Electronics Design questions have a schematic, links to pertinent datasheets or use Atmel parts." \$\endgroup\$ – Matt Young Apr 18 '13 at 17:45

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".

  • 2
    \$\begingroup\$ C was used to be short and sweet and specify a code output, also due to its very high use in embedded, you think it is worth changing? \$\endgroup\$ – Kortuk Apr 16 '13 at 16:09
  • \$\begingroup\$ @Kortuk is it that much work then? \$\endgroup\$ – user17592 Apr 16 '13 at 16:36
  • \$\begingroup\$ @CamilStaps It can be done easily, I personally, thought it was a good example of focused. I can change it if there is some agreement. Which this makes me thing there is. \$\endgroup\$ – Kortuk Apr 16 '13 at 17:50
  • 4
    \$\begingroup\$ @Kortuk: Yes, I think it's worth changing. I really resent the message of "assembly programmers need not apply", although it applies to all other languages that aren't C. \$\endgroup\$ – Olin Lathrop Apr 16 '13 at 18:09
  • \$\begingroup\$ Embedded code instead of C code. \$\endgroup\$ – Kaz Apr 16 '13 at 18:22
  • 2
    \$\begingroup\$ OlinLathrop, Good point. I did not mean it that way, and I dont think anyone did. I prefer source code to embedded code @kaz. If we think it worth it this could have a meta question. \$\endgroup\$ – Kortuk Apr 16 '13 at 19:13
  • \$\begingroup\$ Or (C/C++/Assembly/Etc) @Kortuk \$\endgroup\$ – Passerby Apr 20 '13 at 17:08
  • \$\begingroup\$ Done. This has been changed to "source code" by @Kortuk \$\endgroup\$ – W5VO Apr 23 '13 at 19:46
  • \$\begingroup\$ Was going to update it again if people asked about different options in meta, but I just took care of it. \$\endgroup\$ – Kortuk Apr 23 '13 at 19:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .