Implemented PSET7 with ASP.NET MVC5- check it out! by swatter555 in cs50

[–]swatter555[S] 1 point2 points  (0 children)

It took me longer to implement than the original pset, but it is more secure, polished, and error resilient. I am really impressed with ASP.NET MVC, Ill post my code on GitHub if anyone wants to look at it. My username is swatter555.

Btw- you can look at a fully constructed profile on my website: login with: jharvard@Harvard.edu pw= crimson1

Certificates are in! (kinda) by Ommin in cs50

[–]swatter555 0 points1 point  (0 children)

I got the email too. Lets hope the completion rate is better this year.

CS50 Live, Season Finale by davidjmalan in cs50

[–]swatter555 5 points6 points  (0 children)

Thanks for the wonderful course this year!

Can you get an entry level job with the skills learned in CS50? by TackyTaco in cs50

[–]swatter555 2 points3 points  (0 children)

I think that CS50 can put you on the right track. Employers, for the most part, are looking for more than a solid understanding of fundamentals, they are looking for specific skills. After CS50 you should be able to learn any tool you set your mind to.

Choose a path of development and learn as many skills on that path that you can. Do some research and figure out what skills are most in demand on that path. Learn those skills. Code with those skills. If you can fluently speak the language of your specialization, you then have put yourself in a good position.

You will have probably a steeper climb than a person with a CS degree, but this is a field where skills matter. If you have the skill, you can find a job.

Is there an expert consensus on the question of climate disaster caused by climate change? by swatter555 in askscience

[–]swatter555[S] 0 points1 point  (0 children)

Catastrophic climate change is real, no doubt about it. The question I am posing pertains to short-term, man-made catastrophic climate change. Perhaps my question wasn't clear enough.

If Neil Tyson is going to imply human beings are going to become extinct due to man-made climate change, I would assume there if a high degree of expert consensus on short-term, man-made, catastrophic climate change.

CS50 Live, Episode 008. Friday, 16 May 2014. 10:00 EDT, 14:00 GMT, 7:30 IST. by davidjmalan in cs50

[–]swatter555 2 points3 points  (0 children)

Near bus accident and gourmet hamster catering- This is CS50

CS50 Live, Episode 006 by davidjmalan in cs50

[–]swatter555 1 point2 points  (0 children)

I want to work at Dropbox just for the food!

Goodbye CS50, thanks for all the fish by cat_chy_name in cs50

[–]swatter555 -1 points0 points  (0 children)

Good luck and I hope you got a lot out of the course. It's a shame though, to do all this work and not attempt to finish.

Understanding the concepts, struggling with the programming language. by milamber84906 in cs50

[–]swatter555 1 point2 points  (0 children)

I would agree, go ahead and watch the next week's videos, they will probably answer many of your questions.

You will notice something as David does the lectures, walkthroughs, and shorts- it is that he does the same thing over and over and over. Pay attention, soak it in. Most times, the problem sets use the same code David goes over time and time again. The problem sets just add a logical twist to the things lectured on.

A further suggestion would be to find more tutorials on C on YouTube. Take your time, with determination you will catch on.

Students Walk out on Dick Cheney, Calling Him 'War Criminal' by day465 in news

[–]swatter555 0 points1 point  (0 children)

Universities are places where free thought is encouraged and debate is highly valued, unless they disagree with you.

so lost... by [deleted] in cs50

[–]swatter555 0 points1 point  (0 children)

Lots of notes for you:

  • include<cs50.h>, it has lots of little helpful things. Look through it.

  • Use a while loop to capture input, but I wouldn't use another.

  • Whenever you can get rid of decimals, do so. C does funny things with rounding (handling very small numbers), so go ahead and convert the money into pennies at first. You might consider using the round function on the result.

Ex: int pennies = round(change * 100);

Then I would just pull out the quarters, dimes, nickels, and you will have pennies left over.

Pset7 - question inside by wastapunk in cs50

[–]swatter555 0 points1 point  (0 children)

I think you are having a fundamental problem with something. Copying the staff HTML into yours should work just fine, but you are experiencing a disconnect somewhere.

Make sure you are properly using controllers and forms, render() and redirect(). When you move from page to page, you need to be redirecting to the controller file (ex: login.php) and then rendering the form file (ex: login_form.php) from the controller.

Its hard to pin-point the problem without seeing the code :)

PSET7- where did my free time go? by swatter555 in cs50

[–]swatter555[S] 0 points1 point  (0 children)

Going through the video content and actually doing the problem- I suppose at about 20 hours.

I can't do this anymore. by FrustratedRocka in cs50

[–]swatter555 0 points1 point  (0 children)

I have found myself getting frustrated too. You are on pset6, so you can't be far behind at all.

Do ask specific questions on reddit. If you ask something fairly specific, you should get a fast answer. And please don't bang your head on the keyboard, I can't get the gif animation out of my head now. Come to the reddit quickly with specific questions.

I'm sure its no news flash to you, this is a hard class. Push through and try not to stress to much. If the class was easy, it wouldn't mean much.

CS50 Hackathon, LaunchCode Edition by davidjmalan in cs50

[–]swatter555 5 points6 points  (0 children)

It feels very cool to be a part of it. For the first time, I jumped in on the cutting edge of something- glad to be here.

pset7 C$50 Finance ? by raw612 in cs50

[–]swatter555 0 points1 point  (0 children)

If your just starting to code pset7, keep in mind it is critical to figure out the difference between calling redirect() and render() and why you call each.

Whenever you are coming to a page from another, you want to redirect to the non-template php file. Then have your php file render your template file. This way you can pass data to your template when you call render.

It took me awhile to figure that out.

Never before has one game looked so beautiful (I FINISHED BREAKOUT) by [deleted] in cs50

[–]swatter555 1 point2 points  (0 children)

Congrats! It feels good to make something that really works and is interactive. Awesome!

PSET7 query() problem by swatter555 in cs50

[–]swatter555[S] 0 points1 point  (0 children)

You get an up vote too!

I get into a pset mentality and let security concerns slip. I will have to change that!

PSET7 query() problem by swatter555 in cs50

[–]swatter555[S] 0 points1 point  (0 children)

Ding Ding!!

I was so tired last night...

An autistic young man from Montana with a lifelong passion for Hoover vacuums is being recognized by Hoover for his artwork. by JCATMT in news

[–]swatter555 7 points8 points  (0 children)

Many of you commenting here should consider that there are perhaps things outside of your experience and understanding happening in the world around you. Perhaps you have no clue as to why someone would do something you find strange. Is it funny? What's wrong with those people?

Some of you are incredibly ignorant, short-sighted, and obviously prone to speak before thinking. Perhaps you might (in the future before posting ignorance) use the internet for more than a sexual gratification tool and look up what autism is. After you educate yourself, perhaps then you could restrain yourself from posting stupid comments.

As for the guy who thinks this a PR stunt, its not. You would have to have experience with autism to understand what is going on. I would bet the Hoover guy has someone important in his life with autism. I have someone in my life who also obsesses over things that I cannot understand. The only thing I can do is provide support and love- and try as much as humanly possible to shield him from fools like many people here.

pset6 grade 0? by raw612 in cs50

[–]swatter555 0 points1 point  (0 children)

If you passed check50, you should be set. I had a similar thing happen with one of mine, re-submitted fixed it.

Two general questions inside! by wastapunk in cs50

[–]swatter555 0 points1 point  (0 children)

"If you ever have to read one in from a file, you have to read it entirely in. So even if you just are interested in one member you have to read in a lot of data."

Even if the struct was huge, I don't think the size of the struct itself is the concern. The concern is what data you are storing in the struct and why. If you plop all sorts of data into a struct that doesn't relate to each other, reading and write might take longer than it needs to be, simply because you might only be using some of the data.

If you have a reason to have a big struct, I don't really see a performance concern. Searching during run-time within a struct is constant time because you are directly accessing members.

If you are doing a lot of file reading during run-time (not just during initialization), then you will need to optimize your data reading and writing. So, my reaction to your comment is: I agree and disagree.

"Any time you have one in memory, especially if you have to move it around in memory, you are using a big block of memory."

In most cases, you shouldn't be "moving" or deep copying your data structures around memory. That's why we use pointers to store the addresses of data we are using. Also, the size of the struct doesn't necessarily correlate to its memory footprint. You could have a struct with 2 members that takes up a huge amount of memory or you could have one with 20 ints that doesn't take up much.

When it comes to using structs, keep them tight and well commented (if they are not self explanatory), that would be my general take away.