Quote:
Originally posted by kalisto_911
I have heard of 2 different styles of programming called Pearl and Assembly, how do you guys feel about these?
|
Those aren't styles, their languages (well, one is).
It's not pearl, it's perl (Practical Extraction and Report language). It's a very powerful (and easy to do write only code in) language.
An example of some (abeit probably very bad) perl to remove "#" delimited comments from input would be:
Code:
while(<>){
s/#.*$//;
print;
}
Assembly usually refers the a language one step above machine code. It's very specific to each processor architecture (be it sparc, alpha, mips, m68k, etc).
My favourite architecture for assembly is sparc. Mmmm, register windows
Unfortunately, it's quite hard to put some example assembly into here as it's usually very long (due to each line generally referring to one instruction in a program). It's also a very hard to start with assembly, but the learning curve is quite short (depending on the architecture). You just have to teach yourself to thing like a processor (load this, act on it, store it).
Personally when it comes to programming, I just love that I never stop learning. When I start to get bored with something, that just means it's time to try and learn another obscure language or concept.
Then, there are those things that I learn about with no intention of ever putting to use. ie. I recently read the manual for intercal, that was painful, especially when it starts to talk about tri-intercal
\end{rant}