Open Side Menu Go to the Top
Register
edx: Free education available edx: Free education available

11-05-2012 , 01:29 PM
It looks like there were 2 mis-marked questions (check your e-mail). Damn, I'm going to lose points on at least one of them.
edx: Free education available Quote
11-05-2012 , 01:38 PM
Lol, the identity question I pm'd you about. CS50x week 2 and 3 are up.
edx: Free education available Quote
11-05-2012 , 01:47 PM
Quote:
Originally Posted by daveT
For the ex-poker players / unemployable, there is a computational investing course going on coursera right now. Pretty easy so far.
I'm def going to check that out. I always wanted to learn more about investing and this is the type of approach I would want to take.
edx: Free education available Quote
11-05-2012 , 02:55 PM
Quote:
Originally Posted by splashpot
Lol, the identity question I pm'd you about. CS50x week 2 and 3 are up.
Yeah but it's weird.

If you run the "id" function it WILL change depending on what value is contained in the variable or expression you run in it.

That clearly contradicts what the documentation says.
edx: Free education available Quote
11-06-2012 , 12:17 AM
pset2 for cs50x is pretty much the exact same as pset5 for 6.00x. My code is soooooo much uglier in C though because I'm so much less comfortable with C than Python. Did anyone do caesar.c yet? I'm failing one test case:

Quote:
handles lack of argv[1]
\ wasn't expecting an exit code of 1
The spec says to return 1 if there is no argv[1], right?
edx: Free education available Quote
11-06-2012 , 01:46 AM
Quote:
Originally Posted by daveT
For the ex-poker players / unemployable, there is a computational investing course going on coursera right now. Pretty easy so far.
LOL

wonder if this could be applied to bitcoin markets. I've been looking for something to play around with since poker died.
edx: Free education available Quote
11-06-2012 , 11:02 AM
Quote:
Originally Posted by splashpot
pset2 for cs50x is pretty much the exact same as pset5 for 6.00x. My code is soooooo much uglier in C though because I'm so much less comfortable with C than Python. Did anyone do caesar.c yet? I'm failing one test case:

The spec says to return 1 if there is no argv[1], right?
I haven't started this one yet but yeah, I glanced over the pset and it definitely says to return 1 if there's 0 or more than 1 arguments passed in.
edx: Free education available Quote
11-06-2012 , 12:15 PM
Quote:
Originally Posted by daveT
For the ex-poker players / unemployable, there is a computational investing course going on coursera right now. Pretty easy so far.
I started this one but quit when rl forced me to sit out an entire week or so. Maybe by the next time they offer it someone will have either taught them how to write a proper Python module or written it themselves. There is no reason I can fathom why a program written 100% in a cross-platform interpreted language should have a recommended windows install method of "download our custom ubuntu image and run it in Virtualbox"
edx: Free education available Quote
11-06-2012 , 01:20 PM
@splashpot,

I just finished caesar and passed the checker. Just follow the specs closely.

My solution in c is much different than Python but I'm not sure I would say it's uglier. I didn't even use modulo with Python though.

Btw the official grades are up for mid term 1. I ended up with 87/100. The unofficial grade was 87 with the mis-marked answer. I guess I answered one question right that was marked wrong and it evened out.

I'm glad to see I wasn't the only one who had trouble with part 6. Looks like a majority of the people got rofl stomped in that section. I got almost the exact average (scored 13 with the class average being 12.67).
edx: Free education available Quote
11-06-2012 , 05:25 PM
Yea, I got it. I know it says "yell" at the user but they should explicitly say print an error. They kind of implied in lecture that returning a 1 IS yelling at the user.
edx: Free education available Quote
11-06-2012 , 05:27 PM
I dunno if they ended up changing the misgrades, unless I also got one wrong that was misgraded correct. I know I got the misgraded wrong answer correct. Also, I only got 1 wrong outside of section 6 (2 with the misgrade), which I agree was pretty tough.
edx: Free education available Quote
11-06-2012 , 05:38 PM
Did you finish the Vigenere part? I'm pretty happy with how mine turned out. I also think the guys who put together cs50x put a lot more effort into teaching you how to really program.

I really feel like my C solution for both problem sets is a million times better than the Python solution but it only got to be that way because of a certain thing that cs50x did that 6.00x did not.

Last edited by Shoe Lace; 11-06-2012 at 05:52 PM.
edx: Free education available Quote
11-07-2012 , 12:40 AM
I just did vigenere but holy **** is my code ugly. Embarrasingly ugly. I haven't found a good C reference or at least I suck at searching the C docs. I couldn't figure out the equivalent of the following python code
Code:
if letter in string:
so I wrote for loops to compare each and every character every time I wanted to do that. Shoe Lace, I'm def interested to see how you did it.
edx: Free education available Quote
11-07-2012 , 08:14 AM
Quote:
Originally Posted by splashpot
I just did vigenere but holy **** is my code ugly. Embarrasingly ugly. I haven't found a good C reference or at least I suck at searching the C docs. I couldn't figure out the equivalent of the following python code
Code:
if letter in string:
so I wrote for loops to compare each and every character every time I wanted to do that. Shoe Lace, I'm def interested to see how you did it.
I think our definition of good is different. I'm not too concerned with syntax or super conciseness. I care about how easy would it be to modify, extend and use.

They mentioned we should look at the string lib in one of the videos.

I didn't use any string functions though except for strlen(). My solution isn't special, it's just IMO very modular. I wrote it from the perspective of "if I wanted to use a library that did caesar or vig encryption would I use mine?".

That means I had to abstract away how the algorithm worked and it had to be designed in a way that both algorithms shared some parts. There's very little logic in my main() function. It just mostly calls out to other functions with names that describe what's going on.

The 6.00x never got into this at all. My 6.00x version is shorter but it looks like someone vomited a bunch of Python in the main loop with no thought process on how hard/easy it would be to use as an end user. It's only shorter too because it's using functions that abstract away for loops. I chose not to use them in the C version for now.
edx: Free education available Quote
11-07-2012 , 10:00 AM
Hey guys I'm also taking 6.00x and CS50x at the same time. I'm looking forward to discuss the courses with you all.
edx: Free education available Quote
11-07-2012 , 12:32 PM
Quote:
Originally Posted by soonhau2000
Hey guys I'm also taking 6.00x and CS50x at the same time. I'm looking forward to discuss the courses with you all.
Taking both now too, as well as Computational Investing (at Coursera). Enjoying them all, especially the CI as I'm interested in the financial markets.

Finding this 'Caesar cipher' problem set testing this week though...
edx: Free education available Quote
11-07-2012 , 03:01 PM
In the classes section for 6.00x one of the parts links to:
http://ocw.mit.edu/courses/electrica...g-and-classes/

I feel like I'm almost robbed here. The guy in that lecture explains things in such a nice way. Does anyone else think it's easier to follow what's going on with him vs the professors we have? Both the new guy for classes and the previous guy are both equally the same... they are basically robots dictating a book.

I almost want to go back and now and listen to every lecture for previous sections and then continue to listen to both side by side for new material.

King,
What problem are you having with caesar?
edx: Free education available Quote
11-07-2012 , 03:46 PM
Quote:
I feel like I'm almost robbed here. The guy in that lecture explains things in such a nice way. Does anyone else think it's easier to follow what's going on with him vs the professors we have?
Really? I find that guy incredibly boring. In fact, when I was watching the old OCW videos, I lost interest almost exactly when he took over doing the lectures.
edx: Free education available Quote
11-07-2012 , 07:11 PM
Quote:
Originally Posted by Shoe Lace
King,
What problem are you having with caesar?
More the decryption section, its just taking me a long time . I find I can logically figure out a method of how to solve the problems fairly quickly, but takes me a while to then translate that into python code, and normally I make a slip up or two on the way and then fiddle around for ages trying to sort it... guess its part of the fun

How are you finding 6.00x difficulty wise? Only watched intro lecture for 5.50x so far, starting the catch up with it after this problem set done.

Last edited by KingBenno; 11-07-2012 at 07:21 PM.
edx: Free education available Quote
11-07-2012 , 09:19 PM
5.50x as in cs50x?

6.00x is so-so for me, you?. I struggle on some concepts and others aren't too bad. Logically figuring out the problem set is way more important than implementing it.

If you forgot how to properly setup a "for in" loop then all it takes is a quick Googling. You can't really Google on how to logically break down a problem step by step unless someone happened to have solved the exact problem you have.

I would say write out your pseudo code/logic until it's crystal clear, then worry about implementing it. Also make sure you know what Python is doing behind the scenes every step of the way. That is something I struggle with at times, especially with recursion and passing around more than just the result of calling itself.

Definitely watch every single video available for cs50x too if you're serious about learning. I find they explain concepts extremely well and some of the stuff they've taught fills in gaps for 6.00x or is explained from a different perspective.
edx: Free education available Quote
11-07-2012 , 09:33 PM
Managed to plod my way through cs50x pset 2. So far I'm finding it much more difficult to code in C than in Python. Is that to be expected?
edx: Free education available Quote
11-07-2012 , 10:20 PM
Nooo where did Prof Grisham go?
edx: Free education available Quote
11-08-2012 , 02:19 AM
Actually, I sort of like this new guy...

Now I remember why I hate OOP.
edx: Free education available Quote
11-08-2012 , 07:51 AM
I'm liking C because I'm finding a lot of value in having a language that requires you to declare the data type up front. I'd rather have a compiler tell me I'm wrong right away rather than have it runnable but then get unexpected results later on in the program.

It's like the compiler is doing extra debugging for you for free and a compiler is certainly going to be better at figuring out what's wrong with a program vs a human.
edx: Free education available Quote
11-08-2012 , 10:06 AM
New guy is growing on me a little bit (watched the 2nd lecture). I still think the guy in the class room for OWC 2011 explained it better though.
edx: Free education available Quote

      
m