uh...Hey reader!
Today was quite enlightening. Today made me realize coding is not easy, it takes a lot of effort and dedication. I continued my CS50 (Harvard University's introduction to Computer Science) course today and boy was it stressful.
I'm not saying the course is bad it's just the assignments (problem sets) are really really tasking. Even the claimed "less-comfortable" questions prove to be a pain in the butt for me!
I know it should be difficult... cause it's a course by THE HARVARD, one of the hardest universities to get into, but it proves really difficult for noobs like me. But I really want to complete the course because it has really good resources and the instructor, David Malan *chefs kiss, explains concepts so well. But the assignments are like telling me to make pizza, which I have never done in my entire life, blindfolded. It ain't gonna end well (⊙_⊙;)
What I learned today
Ok enough whining, let me share what I learned today So, I'm currently in the 4th week of the course. Today I learned about Memory allocation in computers. David, the instructor, taught about pointers and pointer arithmetic.
Pointer arithmetic is basically just using arithmetic calculations to access different parts of memory using pointers.
A pointer is a variable that stores the location of a value. So a pointer is basically used to indicate the location of a value in memory. In the course we code in C, for now, so David walked us through how we could tap into memory and also introduced some new syntax
I was mind blown when he said a string (a variable for storing text data) isn't what we thought it was and it's actually a char * !!!
#include <stdio.h>
int main(void)
{
char *s = "I blog stuff";
printf("%s\n", s)
}
#include <stdio.h>
#include <cs50.h>
int main(void)
{
string s = "I blog stuff";
printf("%s\n", s)
}
//They both perform the same function but the latter is more simplified.
I mean imagine being told your mom isn't your mom after like four years of you knowing and loving her! It felt that way!
Maybe I'm just being overdramatic. (╯°□°)╯︵ ┻━┻
I'm gonna complete the lecture tomorrow and move on from there
I'm also considering doing some courses on HTML & CSS on freecodecamp and or The Odin project. I heard they're really good platforms for learning coding(of course for free)
...
So... uh... yeah! That's all I did today. I also went to Church, service today was lit (Jesus loves you so much btw) and I'm done with Attack on Titan's second season, I'm probably gonna start Season 3 tomorrow. (Christ sparing my life)
Artemis-1
Tomorrow's is NASA's Artemis-1 rocket launch. It's crazy to think about how mankind has progressed over the years.
Here's a cute cat!
Please feel free to comment on any fault you see in my article. Thanks!
_itsjustdannyb_day3