Then use a dictionary, or whatever they call lists / associative-array in python. Doneskies.
i agree its not that hard to create a list of User objects (which should be sorted) then u can do binary search to try and find the user, if it doesn't exist redirect to a registration page if the user does exist create a cookie and log the user in (redirect)
I took that class and I have no ideas what you guys are saying at all, its interesting how you can solve these problems with one phrase, while some of us have no idea what your simplified phrases even mean, which kind of just proves the point. All I know is my textbook when I took it DE was not helpful at all.
Maybe some of these things aren't hard to you guys but to some people it is. Not knowing how programs operate creates a learning curve obviously.
Maybe to some people its easy and others its just not, its taught differently and by different people at different times, and thats really all there is to it. I imagine if i took it in person it would have been easier since so much of the shit in the text wasn't even used and I wasted hella time reading useless junk.
i agree its not that hard to create a list of User objects (which should be sorted) then u can do binary search to try and find the user, if it doesn't exist redirect to a registration page if the user does exist create a cookie and log the user in (redirect)
That sounds like a little much for a 100-level CS class. Most people don't see these types of data structures and sorting algorithms until they reach 225.
Now, if all that stuff has built-in functions for it already in Python, it becomes much easier, providing the prof actually teaches how to do so.
I took that class and I have no ideas what you guys are saying at all, its interesting how you can solve these problems with one phrase, while some of us have no idea what your simplified phrases even mean, which kind of just proves the point.
Actually I understand where you're coming from. There's a lot of small details in programming that most professors/textbooks won't bother going over because it seems really, really obvious. Kinky couldn't get her final assignment working because of an undeclared variable or some sort. If something goes wrong, CS students tends to have a better idea as to where to look.
I helped a friend in my 165 class and he was absolutely lost when it comes to Python.
That sounds like a little much for a 100-level CS class. Most people don't see these types of data structures and sorting algorithms until they reach 225.
Now, if all that stuff has built-in functions for it already in Python, it becomes much easier, providing the prof actually teaches how to do so.
Phil
aren't they lucky python has functions like
list.sort
(if using the built in functions u don't even need to sort) and
Did you look at the assignments for this semester's CMPT165 DE? It's actually quite tricky for a course full of people who have no prior programming experience.
we were all business students and that was my first cmpt course.
Also, there was no consistency AT ALL during the marking scheme of last semester. I don't know what guideline(s) the TM's were using to mark the things but two girls I was working with had pretty much the exact same code and one got 9/10 when the other got 7/10. So yeah. I just hate CMPT period. This has completely turned me off of CMPT courses for a while. Unless I do decide to retake it in the fall.
(if using the built in functions u don't even need to sort) and
if user in list: print \"list contains\", user
:confused: I don't remember being shown that, or even what it means.
All in all, at the end of the semester I can say it was the worst class I ever took (I took this a year and a half ago or so). Some of the assignments I would be working for hours, then realize it was just one tiny detail I had to change and I would have been done 50% quicker.
As agentbob said, there were so many little things that were not explicitly explained which is what killed me-- and then so many things that were explicitly explained which were not necessary or beyond the scope of the course (and the prof in his text actually stated it).
All in all, at the end of the semester I can say it was the worst class I ever took (I took this a year and a half ago or so). Some of the assignments I would be working for hours, then realize it was just one tiny detail I had to change and I would have been done 50% quicker.
As agentbob said, there were so many little things that were not explicitly explained which is what killed me-- and then so many things that were explicitly explained which were not necessary or beyond the scope of the course (and the prof in his text actually stated it).
Vonnie and ian, who taught your DE version?
I completely agree! There were so many meticulous details that were on the exam that honestly never even crossed my mind when studying. And the "Study Guide" just barely covers the material. There is so much application using Python. If you don't understand one point, you don't understand the rest. As in my case.
I had Colin Stewart for my DE class this past spring semester.
the first thing u learn about computers, they do exactly what their instructed to, that means providing unambiguous instruction sets
what u guys expect u can "bs" some code on exams?
in my 310 class with R. Hadley, he would take off 3% of ur exam mark for every mission ")" or "(" or "," (so thats 3% for every syntax error) and another 3-8%(i cant remember exactly) for any logical error so u can see how quickly marks can drop esp when ur using a language like lisp and it uses millions of brackets .. who the fuck has the time to count 20brackets to see if they match... sigh
I completely agree! There were so many meticulous details that were on the exam that honestly never even crossed my mind when studying. And the "Study Guide" just barely covers the material. There is so much application using Python. If you don't understand one point, you don't understand the rest. As in my case.
same here. i took it last summer and i had no idea what i was doing during the 2nd half of the course. i mentioned in another thread that this course is tough via DE before and CS majors just shrugged and "lol"ed try taking it on campus, but its 3 days a week :S i DO hear that its easier though.
same here. i took it last summer and i had no idea what i was doing during the 2nd half of the course. i mentioned in another thread that this course is tough via DE before and CS majors just shrugged and "lol"ed try taking it on campus, but its 3 days a week :S i DO hear that its easier though.
I had the same guy that wrote the book for the class. Don't remember his name... You can't really say he 'taught'. We only saw him for midterms/exams. I just taught myself. *shrugs*
i hate your sarcasam living in richmond = 1 hour driving 2 hours of driving for 1 hour of lecture isnt really worth it
my 0.02$;
well then time to take more classes on the same days ;)
i live very close to sfu and i don't even think its worth going up for 1h thus i spend a lil more time when picking classes to make sure i don't end up driving there for nothing. (i also car pool, so i plan my sched to match with at least one more persons)
My friend takes 2 hours to bus up to SFU from Richmond O_o
this is unfortunately true.. =( on the other hand driving from richmond isn't all that bad.. it only takes about 45 mins when i carpool..great for people like me who loves her bed too much to part with it for more than the necessary time needed..:tongue:
1 hour = overexaggeration or pretty slow driving. Shouldn't take more than 45min on an average day =P
depending on the time of day, there may be traffic. and when carpooling, some people are late so we have to wait in the car for them to get ready.
schmoey;54182 said:
Just 1hr of lecture? Don't you generally have at least some classes on MWF?
like i said before, i took the class DE the only class that i took MWF was math 157 and i actually had that ONE hour of lecture back on fridays because of poor planning ended up skipping all the fridays
even so, i dont think its worth it to bus or drive to school for 1 or 2 hours of lecture/tutorial
summerheaven;54191 said:
My friend takes 2 hours to bus up to SFU from Richmond O_o
once it took me "only" 75 minutes and another time it took me a full 2 hours really depend on the time of day i bus i went to surrey once and it only took me 40 minutes.
i took the lecture version with lavergne, never opened the book once.
my friend took her class and got an A, and i took it with Baker and it was way harder, she even gave me her sample midterm and it was ten times easier than the one i got.
anyway, end of the story is there is obviously mixed reactions based on teacher, mode of delivery and the person
people can keep saying its so easy for everyone, but it obviously isnt
my friend took her class and got an A, and i took it with Baker and it was way harder, she even gave me her sample midterm and it was ten times easier than the one i got.
anyway, end of the story is there is obviously mixed reactions based on teacher, mode of delivery and the person
people can keep saying its so easy for everyone, but it obviously isnt
Actually I understand where you're coming from. There's a lot of small details in programming that most professors/textbooks won't bother going over because it seems really, really obvious. Kinky couldn't get her final assignment working because of an undeclared variable or some sort. If something goes wrong, CS students tends to have a better idea as to where to look.
I helped a friend in my 165 class and he was absolutely lost when it comes to Python.
Yea, you know how you can fix that? Declare the variable...
If it couldn't run because of an undeclared variable, maybe like declare the variable? I mean lol.
CMPT165 is the easiest intro class to programming. It's so basic I don't see how it is even remotely possible for someone to fail it.
Best taken with Greg Baker. His assignments and midterms are very linear.
I was in the DE class this semester, and the course was really ridiculous. One of my group members asked why didnt we get the midterm format in advance (while the TA of another group had told them), and the TA just said: it is University. LOL
I just hope to get a C- for this fucking course, the average of the midterm was 50%
Comments
then u can do binary search to try and find the user, if it doesn't exist redirect to a registration page
if the user does exist create a cookie and log the user in (redirect)
I took that class and I have no ideas what you guys are saying at all, its interesting how you can solve these problems with one phrase, while some of us have no idea what your simplified phrases even mean, which kind of just proves the point. All I know is my textbook when I took it DE was not helpful at all.
Maybe some of these things aren't hard to you guys but to some people it is. Not knowing how programs operate creates a learning curve obviously.
Maybe to some people its easy and others its just not, its taught differently and by different people at different times, and thats really all there is to it. I imagine if i took it in person it would have been easier since so much of the shit in the text wasn't even used and I wasted hella time reading useless junk.
Now, if all that stuff has built-in functions for it already in Python, it becomes much easier, providing the prof actually teaches how to do so.
Phil
I think you get the marks if they run, period.
I helped a friend in my 165 class and he was absolutely lost when it comes to Python.
(if using the built in functions u don't even need to sort)
and
Doesn't matter if their program runs in O(logn), O(n), O(nlogn), O(n^2) or O(n!).
WHAT?
All in all, at the end of the semester I can say it was the worst class I ever took (I took this a year and a half ago or so). Some of the assignments I would be working for hours, then realize it was just one tiny detail I had to change and I would have been done 50% quicker.
As agentbob said, there were so many little things that were not explicitly explained which is what killed me-- and then so many things that were explicitly explained which were not necessary or beyond the scope of the course (and the prof in his text actually stated it).
Vonnie and ian, who taught your DE version?
I had Colin Stewart for my DE class this past spring semester.
what u guys expect u can "bs" some code on exams?
in my 310 class with R. Hadley, he would take off 3% of ur exam mark for every mission ")" or "(" or "," (so thats 3% for every syntax error) and another 3-8%(i cant remember exactly) for any logical error
so u can see how quickly marks can drop esp when ur using a language like lisp and it uses millions of brackets .. who the fuck has the time to count 20brackets to see if they match... sigh
i took it last summer and i had no idea what i was doing during the 2nd half of the course.
i mentioned in another thread that this course is tough via DE before and CS majors just shrugged and "lol"ed
try taking it on campus, but its 3 days a week :S
i DO hear that its easier though.
living in richmond = 1 hour driving
2 hours of driving for 1 hour of lecture isnt really worth it
Just 1hr of lecture? Don't you generally have at least some classes on MWF?
You can't really say he 'taught'. We only saw him for midterms/exams. I just taught myself. *shrugs*
well then time to take more classes on the same days ;)
i live very close to sfu and i don't even think its worth going up for 1h thus i spend a lil more time when picking classes to make sure i don't end up driving there for nothing. (i also car pool, so i plan my sched to match with at least one more persons)
on the other hand driving from richmond isn't all that bad.. it only takes about 45 mins when i carpool..great for people like me who loves her bed too much to part with it for more than the necessary time needed..:tongue:
and when carpooling, some people are late so we have to wait in the car for them to get ready. like i said before, i took the class DE
the only class that i took MWF was math 157
and i actually had that ONE hour of lecture back on fridays because of poor planning
ended up skipping all the fridays
even so, i dont think its worth it to bus or drive to school for 1 or 2 hours of lecture/tutorial once it took me "only" 75 minutes
and another time it took me a full 2 hours
really depend on the time of day i bus
i went to surrey once and it only took me 40 minutes.
anyway, end of the story is there is obviously mixed reactions based on teacher, mode of delivery and the person
people can keep saying its so easy for everyone, but it obviously isnt
If it couldn't run because of an undeclared variable, maybe like declare the variable? I mean lol.
CMPT165 is the easiest intro class to programming. It's so basic I don't see how it is even remotely possible for someone to fail it.
Best taken with Greg Baker. His assignments and midterms are very linear.
I just hope to get a C- for this fucking course, the average of the midterm was 50%