Building an app is a process that needs structure I made an initial attempt that went very poorly. I read the CS50 assignment points and went through building the app page for page. Make all the code to register, then make all the code to get a quote, then buy, then sell. I started getting …
CS50 Week 8: Notes
CS50 store demo Cookies and sessions start off this weeks lecture notes. The important thing to remember is http protocol is a stateless protocol. This means traditionally you request a webpage, the server gives you the page data and nothing else happens. Similar to going to a store, buying an item and leaving. The cashier …
CS50 Week 7: Walkthroughs
Hello name in python to start it off: Let’s quickly run through the “tougher” Déjà vu walkthroughs ( and then go deeper into the final similarities web app. Let’s start with the Mario challenge: mario.py So let’s build a pyramid shape in the terminal: 4 lines. Google range() and it’s arguments, then google rjust() and …
CS50 Week 7
Web Programming So with a brief overview of html, css and python it is time to put everything together. If you’ve never programmed something for the web just remember: THE INTERNET IS JUST A BUNCH OF COMPUTERS ALL TALKING TO EACH OTHER There is no special “cloud” machine or “server.” These are all just words …
CS50 Week 6 & Week 6 Continued
Using the cs50 library in Python and VENV I’m going to show you something I wish I knew sooner. Python has a program that allows you to setup a virtual environment that is completely walled off from your entire computer. This means you can make a huge mess, write horrible messy code and install a …
CS50 Week 5
Week 5 takes a sharp turn, sending us straight into web development. It’s a welcome break from programming in C. Fortunately for me I have had prior experience in full stack web development, after taking a few classes over at teamtreehouse. I think that is probably why the open source degree program i’m taking suggests …
CS50 Week 4
Speller problem set explained I’m going to do my best to explain the solution in small, manageable steps so you can follow along and not go through the pain and suffering I did! Maybe running a gauntlet is harsh, but some days were brutal, and at one point I even deleted tons of code after …
CS50 Week 3
Note: I’ve added a lot of code examples in this article towards the end that deal with the resize less comfortable problem that I found difficult to understand. Use a C repl online to copy and paste the github gists (code examples) i’ve included and by understanding how they work you’ll be one step closer to making …
CS50 Week 2: Walkthroughs
Any Questions? I’m going to be working on my blog posts while doing the walkthroughs next time around. It’s hard to remember what exactly stumped me and how I got around it otherwise. Here are my solutions for the Week 2 walkthroughs. This project was difficult and frustrating for me. I found using the CS50 …
CS50 Week 2: Shorts Part 2
My Advice These next 3 shorts, binary search, recursion, and merge sort were very frustrating at first. Don’t get discouraged. Take lots of breaks, and use the repl.it website so you can write code and see the results quickly. My goal was to write each of these without looking at any reference material, and it …