Lecture 2 | Programming Paradigms (Stanford)
March 4th, 2010 by CGI & PHP.com
Lecture by Professor Jerry Cain for Programming Paradigms (CS107) in the Stanford University Computer Science department. In this lecture, Prof. Cain discusses C and C++ programming codes, as well as binary addition and subtraction. Programming Paradigms (CS107) introduces several programming languages, including C, Assembly, C++, Concurrent Programming, Scheme, and Python. The class aims to teach students how to write code for each of these individual languages and to understand the programming paradigms behind these languages. Complete Playlist for the Course: www.youtube.com CS 107 Course Website: www.CS107.stanford.edu Stanford University: www.stanford.edu Stanford University Channel on youtube: www.youtube.com
Popularity: 4% [?]

Lecture 1 | Programming Paradigms (Stanford)
Lecture 2 | Programming Methodology (Stanford)
Lecture 1 | Programming Methodology (Stanford)
Lecture 3 | Programming Methodology (Stanford)
Lecture 3 | Programming Abstractions (Stanford)
Lecture 1 | Programming Abstractions (Stanford)





March 4th, 2010 at 7:26 am
I think hexadecimal (0-255), say "character" and write "Char" for one language, "C" for another, UTF-16 for another, string for another, etc. That, sadly, s the nature of computer languages without earlier standards. But when I say car, I mean those things with 4 wheels that consume vast natural resources, and cause wars – but think that we cannot do without anymore – just like mobile phones that I have now not used for 6 years or so without the slightest problem !
March 4th, 2010 at 7:51 am
I had a math professor once who said, "if I make a mistake, just shout out, because I'm at that age where it's possible to think 2, say 4 and write 6!"
March 4th, 2010 at 8:05 am
How do you pronounce 'char', as in 'charcoal' or like 'care' as in 'character' ? I have worked with professional programmers who pronounced it all three ways. There is no authoritative rule for how to pronounce it.
March 4th, 2010 at 8:31 am
you DON'T PRONOUNCE IT (to make any sense) – you use the full word in speech i.e. "character".
It is also perfectly OK to SAY one thing and WRITE another on the board (as in "example"/ "eg", "that is"/"i.e.", , "hash"/"#", "dollar"/"$"
March 4th, 2010 at 9:28 am
If your working with PHP, PHP is very clever at working out the best data type for working out what the result is.
But then with SQL you must decare that obviously lol.
March 4th, 2010 at 9:34 am
I guess "does it compile?" still scares beginners…
March 4th, 2010 at 10:11 am
Wow.
Ok, now find a video that is at least 50 minutes long and was uploaded in 2008!
Just kidding…
March 4th, 2010 at 10:44 am
I'm sure, here is a 1080p video that works fine (don't worry about watching it, just an example)
watch?v=vK355fXaCv4
March 4th, 2010 at 11:43 am
u sure? could be youtube's fault….
March 4th, 2010 at 11:47 am
because that was the upload res.
March 4th, 2010 at 11:58 am
why is 480p the highest resolution?
March 4th, 2010 at 12:11 pm
LOL, he forget the % representation of the short.. for printf, so do i, that's why programmers bring books with them or google the signs..
March 4th, 2010 at 1:04 pm
it will not if you are not major in computer science..
March 4th, 2010 at 1:31 pm
this is very good. My major is Information Technology and I am currently in my 1st semester of college. I learned about binary numbers in Pre-Calc in College (base 2) its pretty cool working with these numbers and also hex values (characters) I'm not even up to this since C/C++ will be included in my 3rd semester lol
some things you just have to learn from outside sources. Cool stuff. Great Video!
March 4th, 2010 at 1:36 pm
He hasn't made anything here complicated, he's just explaining why things are the way they are from the beginning.
March 4th, 2010 at 2:08 pm
makes you wonder how much cents he is making everytime he said sense
March 4th, 2010 at 2:31 pm
how many little zeros does it take to fill a chark board lol
March 4th, 2010 at 3:18 pm
what doesn't make sense is constantly asking whether something makes sense. argh…
March 4th, 2010 at 3:53 pm
This lecturer makes really simple stuff really complicated. His description of 'binary' bits and bytes is entirely ludicrous. His pronunciation of 'char' as car (rather than character) is so laughable its sad!
No wonder computer science graduates know so little these days !
March 4th, 2010 at 4:06 pm
Well of course he has to say something. He is teaching a class and has to make sure everyone is keeping up.
This instructor is capable of speaking such high level tech speak that he could easily lose this 100 level class if he isn't careful.
March 4th, 2010 at 4:09 pm
"does that make sense to people"
March 4th, 2010 at 4:56 pm
36:38 how about saying that it is a fixed point and has a lot of unused bits and not enough precision for small values, and that's why _floating_ point would be better.
March 4th, 2010 at 5:04 pm
The lecturer is good at it
March 4th, 2010 at 6:01 pm
@Rexamallion cs106a and cs106b. this is cs107
March 4th, 2010 at 7:00 pm
What's great about programming and mathematics is that it's concept based and you can learn ALOT by "doing." All these binary operations are very simple. Once you get it it's routine, all he's really trying to get across is the sizing of types so you don't end up truncating your data. It's funny cuz I go to a community college and this is parallel to a CPS 101 class.
Binary operations is like entry point stuff you just HAVE to know.