#cs50w โ Public Fediverse posts
Live and recent posts from across the Fediverse tagged #cs50w, aggregated by home.social.
-
I completed CS50x in order to get a better understanding of CS generally, thinking I'll start #CS50W to round out the web development specifics that CS50 ended with
-
UNISA has been taking forever to get back to me about credit exemption. Kinda wanna sort it out so I can register. We might go in today and try sort it out in person.
I would really like to end the endless admin and just get back to studying. Really is a game of hurry up and wait.
In better news, I'm halfway through Problem set 7 of #CS50p. Means when I'm done, just week 8 and 9 left. Hopefully I don't grind to a halt at the final project like #CS50w
-
I am actually nearing the end of my #CS50w project and hoooooo boi do I need to bitch about something.
So html forms encode data in the application/x-www-form-urlencoded format, which Django just handles. But if you send a request using the JS Fetch API, then that's not encoded the same way, and you're usually sending JSON. Django does not just handle this.
I spent an embarrassing amount of time reading docs to get back to json.loads(request.body)
I feel like Django *should* handle this.
-
And by the way, Iโve just received my final evaluation and certificate from Harvardโs #CS50w.
Pretty proud about it!
-
Just submitted my final project for #CS50w and cancelled my Adobe subscription after something like 10 years.
What a day.
-
On another note, I just finished my #CS50w capstone project right now! I can't believe this is happening...
-
And here I am. Finally, implementing a custom state management system in my vanilla JS app...
I saw it coming!I honestly really need to finish this project and move on, as it's getting a bit ridiculous.
Let's say the exercise was useful to have a solid understanding on what front end frameworks do in the background, and why they exist in the first place, as in what problems are trying to solve.
Time to move on to these frameworks!!!
-
This week I'm back on the horse. I had good momentum on my #CS50w final project for a week or two and then four fucking months passed without touching it. Basically starting over, having forgotten almost entirely how to django, with a much smaller scope project. Got two good days of work under the belt, we have user sign up and log in/log out. Gotten the mindset away from pulling teeth and now we're merely pushing a very heavy boulder up the mountain. Will report back if I have any news.
-
I've been really struggling with starting to build my #CS50w capstone project for a while now.
I know I'm overthinking it, but I'd like to build something with at least a bit of value, at least to myself, not another todo application.
Well, my biggest contenders in the end (just like a todo application) are not very original, and that's blocking me.
I'd like something in the spirit of the #indieWeb and the #Fediverse and so I've been thinkin about yet another #RSS aggregator.
-
#CS50w I think that's it. I think that's it. Just ran through final check, caught some issues, fixed them... YESS BOYY I THINK THAT'S PROJECT 4 DONE
-
#CS50w pagination is done, just final check and video upload! Most of the work I did late last night and I am paying for it today. Very unproductive today. Think I'll take the day off to not suffer so much. Start fresh tomorrow.
-
#CS50w the end is almost in sight. Last thing that needs doing is pageination. Thing that stumped me today was mostly how I set up my follow model. Since a Follow is a separate model that contains the following_user and the followed_user, reverse that, then populating a list of users from the follows is actually quite a lot to mentally track. Anyway, it works, just have to limit all this to ten posts per page.
-
#CS50w I have been HARD AT WORK today.
Biggest thing was getting the asynch like to work. For the most part is easy, set up url, create a view, return some JSON, buuuuut then came the CSRF token. That stumped me for a while because with Email they copped out and just CSRF excempted it. Didn't think we could do that but that was a whole adventure. Eventually had to include a token on the page, use JS to grab the token then in the fetch request change the header and mode. But it worked!
-
#CS50w Working in Project 4 Network. Good start so far but maaaan my Django is rusty. Forgot to pass models.Model to the function when defining my model, forgot to pass self to my __str__ function, forgot to use post.save() in my view and for the life of me couldn't get to HttpResponseRedirect(reverse("index"))
Let that be a lesson. Don't procrastinate so much in between projects. Use it or lose it.
-
I haaaate doing the demonstration videos for CS50 projects. Just the worst.
And now because of the disparity between my monitor resolution and the output resolution of the video that I didn't notice while recording through OBS its ever so slightly cut off on the right and bottom.
FFS I am not redoing all that, this one will just have to have a slightly cut off video. Ugh. But just this admin and I can move on to the second last lecture of #CS50w
-
#CS50w HOT FUCKING DOG
I knocked this one out so quickly! Almost up to spec! Must be something in the air today because I am ON FIRE.
Lots of it is a little clumsy, the thing I'm struggling the most with now is fixing prefilling a response with '[email protected] wrote ' and it just looks jank as all hell. Think I'll leave that for tomorrow.
-
#CS50w still busy with mail. Sat for like a good five minutes trying to remember display:flex; justify-content:space-between; but then I got that working. I also forgot how JS's For In loop works, honestly should just memorize it as for(let i in array) because I tried it as for(let email in emails) and used it incorrectly. Silly me. I've been so used to using that way in Django Template Language. Ah well.
Anyway, I wish we could more in the style.css, hate doing inline CSS, very annoying.
-
#CS50W sigh...
Honk honk, I'm going to put my little clown shoes on and get my clown keys to drive my clown car
Guess who started on their project, struggled to figure out what was wrong with their API call for 20 minutes only to find i set the url to '/email' instead of '/emails'
Me. I'm an absolute clown. I live in the circus.
-
#CS50W So yeah, I finished the Javascript Lecture and the UX/UI lecture. Made lecture notes for both. Project 3 Mail is up next. Trying something new as well where I make notes as I read through the spec, so I don't goof like I did last time. My other projects have been graded tho!
-
#CS50w I recorded the screencast for project 2, the others are done and their forms are filled in, just gotta edit the video down to under 5 minutes, upload it. Then it is over and I can finally move on.
-
#CS50w I submitted the project but lo and behold I haven't done a video or filled in the forms for the previous two projects. Today I will be spending all my time putting together screen recordings and adding timestamps. FML why did I procrastinate this. But that means I have done half the projects. Just the last two and then final project. That's actually far less work than I thought it would be.
-
#CS50w it is finally fucking done. It's finally done. Entirely up to spec.
I overcomplicated showing the current highest bid, was about to try do a complex SQL Inner Join and try find the Django Model equivalent of that until I realized I could just update my Listing model to store the current highest bid and then it was gravy.
It is done. Just gotta do the video and submit. This project has been ruining my life for months now with how hard it's been to sustain momentum on it.
-
#CS50W In the home stretch now. Listings can be closed, the watchlist is functional, the bidding functionality exists, it's just stupid annoying things like ensuring the lister can't bid on their own listing and adding a page so users can see the listings they've posted.
This has been exhausting and has taken so long for no reason. I just kept losing momentum on it repeatedly. Home stretch now though.
-
#CS50w Categories part of the spec done. Just bids and bidding now, and some general polish stuff. I am so excited for this project to be over. Feels like I've been chipping at it forever.
Also had to flush my whole database to add the categories functionality. I'm sure there was a less destructive way but that's for someone else to know and for me to not care about right now.
-
#CS50w well I am on a roll today! I got like a solid 10 hours of sleep and I woke up with energy today and I finished like two big things on the spec.
Watchlist and comments done baby!
For real it is over for you all if I ever get my sleep right, world domination is within my grasp.
-
#CS50w As it turns out I'm apparently fucking illiterate and we didn't need to implement user uploaded images, just allow them to post URL links to images. I mean, I got it working so there is that. Anyway, had a quiet moment of victory when I got the watchlist to work on the back end. It's all coming together but bidding is going to be such a mission.
Also, the syntax to sort in descending order being Listing.objects.all().order_by("-date") is nuts. Just let me write SQL please.
-
#CS50W I FINALLY GOT THE IMAGES WORKING AND CHRIST ON A CRACKER IT WAS THE WORST
Django is so weird. I read in the documentation that I had to define a MEDIA_ROOT and MEDIA_URL but that was... Poorly explained at best. Then What also needed to be done was some extra messing around in settings.py to allow images to be served. I'ma be real, I barely know what I added to make it work.
-
Another back on the horse week, doing the Commerce #CS50W project, it has been like pulling teeth but I got a little bit done today and I did a little bit on Saturday. I think the worst part is converting what I wanna do in an SQL sense into a Pythonic way and I couldn't remember it all because Prof Brian explained it in the python shell, or at least that's what I have in my notes.
Used a filter function to basically emulate an SQL query, not sure if that is the best way but oh well.
-
It seems that I managed to break my procrastination today. Finally!
I've been dealing with #Django models and migrations, building a SQLite database for a web application.
It was fun! But also a LOT of trial and error on my part.
I guess that's how you learn...
-
Holy hamlet I am finally through the #CS50w SQL Migrations and Models lecture with 21 pages of notes and now it is time to start on project 2. This was insane. What an unbelievably dense lecture.
I do appreciate Django's built in user login and logout features, that is very nice.