Personal computing discussed
Moderators: renee, SecretSquirrel, just brew it!
muyuubyou wrote:And they're right. You have to learn something more "theoretic" first. See Pascal, Java, ML, Smalltalk...
C is somewhat "dirtier" but maybe better in practice.
just brew it! wrote:I remember seeing a quote some years back, to the effect that "Programmers who learn BASIC as their first language become brain-damaged beyond all possible hope of redemption."
danny e. wrote:i remember one day in Computer Science II class (C++) ... we were discussing classes..
the professor was talking about the benefits of ojects and making functions private.. we were also discussing "friend" functions and how they can access the private functions.. in the objects...
so then the professor went off talking about friend functions... to emphasize the importance of good programming.
"make every function private if possible"
"friend functions can be used ....but remember.. friends have access to your private parts."
we all cracked up laughing.
Whats wrong with learning BASIC as the first language?
just brew it! wrote:
HTML 1 You shoot yourself in the foot, only to find out that no matter how gory the result looks, your foot keeps working. Your foot finally stops working when you stub your toe kicking the box the gun came in.
2 <a href="http://www.body.org/lower-half/left/foot.html">Shoot here</a>
Perl 1 !($foot =-/left/) # ! read as "Bang!"
2 You Separate the bullet from the gun with a hyperoptimized regexp, and then you transport it to your foot using an array of arrays of arrays. However, the program fails to run and you can't correct it since you don't understand what the heck it is you've written.
Standard ML
By the time you get your code to typecheck, you're using a shoot to foot yourself in the gun.
danny e. wrote:i remember one day in Computer Science II class (C++) ... we were discussing classes..
the professor was talking about the benefits of ojects and making functions private.. we were also discussing "friend" functions and how they can access the private functions.. in the objects...
so then the professor went off talking about friend functions... to emphasize the importance of good programming.
"make every function private if possible"
"friend functions can be used ....but remember.. friends have access to your private parts."
we all cracked up laughing.
Hehe, all our CS lecturers usually manage to tell us at least once per lecture to avoid C.
Whats wrong with learning BASIC as the first language?
QB:
If x = 1 Then
Print "Hello World!"
End If
C:
If (x == 1)
{
printf("Hello World!");
}
And y the heck would you need a ; after each line? Many times when writing a few hundred lines of code and miss 1 ;, the compiler spits junk at me, it can take hours to find the error
All the good programmers (not amateurs) I know have studied at least some programming at the University (E-Eng, CompSci, Maths, and even Physics). A good, qualified teacher is always a good thing.
A strong background in mathematics is necessary for a professional Computer Scientist or Electrical Engineer (of course other scientists apply too).
LJ wrote:There is nothing wrong with C, they're probably telling you to avoid C++.
We stopped when we got a clean compile on the following syntax:
for(;P("\n"),R--;P("|"))for(e=C;e--;P("_"+(*u++/8)%2))P("| "+(*u/4)%2);
To think that modern programmers would try to use a language that allowed such a statement was beyond our comprehension!