Go Down

Topic: Why good style is important ... (Read 5252 times) previous topic - next topic

AWOL

Think you know C?
Google "Duff's Device"   ]:D
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Nick Gammon

+1 for speed.
-10 for obscurity.

;)
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

Udo Klein

IMHO

+0 for speed,
-1 for obscurity
Check out my experiments http://blog.blinkenlight.net

Udo Klein

Check out my experiments http://blog.blinkenlight.net

bilbo


Think you know C?
Google "Duff's Device"   ]:D

I love Duff's Device. The first time you see it, you scratch your head. The second time you see it you cry because you can't understand it. The 50th time you see it you cry tears of joy because you finally understand the damn thing...and its beautiful.

On another note, not even the most obfuscated C around can top anything written in brainfuck. Someone ought to write an arduino brainfuck interpreter.
EDIT: I've found my project for the last days of March Break! Time to get brain$@%$&#*ed. 
Alice asked the Chesire Cat, who was sitting in a tree, "What road do I take?"
The cat asked, "Where do you want to go?"
"I don't know," Ali

Udo Klein

Well, it is not so beautiful anymore. It was beautiful when compilers did no automatic loop unrolling. Nowadays it is archaic.

Brainfuck? Give whitespace http://compsoc.dur.ac.uk/whitespace/ a try ;)
Check out my experiments http://blog.blinkenlight.net

cr0sh


Well, it is not so beautiful anymore. It was beautiful when compilers did no automatic loop unrolling. Nowadays it is archaic.

Brainfuck? Give whitespace http://compsoc.dur.ac.uk/whitespace/ a try ;)


Not quite as crazy as either of those two, but this one brought a smile to my face:

http://lolcode.com/

...still a work in progress. :D
I will not respond to Arduino help PM's from random forum users; if you have such a question, start a new topic thread.

Nick Gammon

Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

I don't even like human language poems, I mean the idea of people fiddling around for hours to impose some mentally correlation which does not really exist.

What I really  :smiley-sad-blue: in school was using big characters together with small characters for some kind of maths formula. No one sane would do this in a commercial programming project.

My opinion is most kind of fiddling is bad. At least for my purposes. There must be some hacking phreaking and reverse engineering- I am not going to have it.

I think RISC is quite cool you don't fabricate a sophisticated loop, you simply unroll it.

Obfuscating C code can be kind of a trap for students they think it's relevant.
OK I read it actually takes professional skills to write really obfuscated source.

"Writing Secure Code" also is interesting book to read (It's from Microsoft).

I also have PIC related web domain.

AWOL

Quote
"Writing Secure Code" also is interesting book to read (It's from Microsoft).

Oh! The irony!
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.


Quote
"Writing Secure Code" also is interesting book to read (It's from Microsoft).

Oh! The irony!


80msec automatic response: "All input is evil!"
(It's a quote from the book)
I also have PIC related web domain.

AWOL

"Safer C" Les Hatton.
Interesting comments on unsafe Ada
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

kf2qd

Okay folks - Since when did geeks ever have style??? As far as I know, pocket protectors were never stylish, they just helped us not lose the important stuff...

AWOL

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

cr0sh

I will not respond to Arduino help PM's from random forum users; if you have such a question, start a new topic thread.

Go Up