Noob learns to code in 3 months

The Partridge Family were neither partridges nor a family. Discuss.
albinopapa
Posts: 4373
Joined: February 28th, 2013, 3:23 am
Location: Oklahoma, United States

Re: Noob learns to code in 3 months

Post by albinopapa » July 12th, 2017, 6:54 pm

Yeah, I had forgotten all of my geometry and trigonometry from high school by the time I got around to using it. It's been tough trying to re-learn everything.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com

User avatar
Yumtard
Posts: 575
Joined: January 19th, 2017, 10:28 pm
Location: Idiot from northern Europe

Re: Noob learns to code in 3 months

Post by Yumtard » July 13th, 2017, 9:48 am

^^ yeah tbh second part of the video got a bit confusing to me :D

Just found out I got accepted to my #1 back up school too :D
So if I hadn't gotten accepted to game programming I'd be doing 3 years of software engineering.

albinopapa
Posts: 4373
Joined: February 28th, 2013, 3:23 am
Location: Oklahoma, United States

Re: Noob learns to code in 3 months

Post by albinopapa » July 13th, 2017, 2:41 pm

congrats again
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com

User avatar
Zedtho
Posts: 189
Joined: February 14th, 2017, 7:32 pm

Re: Noob learns to code in 3 months

Post by Zedtho » July 14th, 2017, 2:49 pm

^

Tajari
Posts: 9
Joined: July 10th, 2017, 7:42 pm

Re: Noob learns to code in 3 months

Post by Tajari » July 15th, 2017, 4:40 pm

Well done on the school offers bro, you must have really impressed!

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: Noob learns to code in 3 months

Post by chili » July 16th, 2017, 4:10 pm

The second part of the video is the important part :D

You should spend extra time focussing on it. I give the derivation 3 different ways to help people wrap their head around it, and the reason is because rotation is a VERY important math concept for a game programming to understand intimately imo.
Chili

User avatar
Yumtard
Posts: 575
Joined: January 19th, 2017, 10:28 pm
Location: Idiot from northern Europe

Re: Noob learns to code in 3 months

Post by Yumtard » July 16th, 2017, 7:44 pm

Thanks guys :) It obviously doesn't really matter since I declined it but still felt good knowing I got accepted to both my top 2 choices!

@Chili, yep i intend to rewatch that :) These math vids gets a bit to much when watching an hour straight. Will first watch part 6 of intermediate though!

Just got back home from bjj camp, so haven't been able to study for a couple days. Will watch part 6 soon though.

User avatar
Yumtard
Posts: 575
Joined: January 19th, 2017, 10:28 pm
Location: Idiot from northern Europe

Re: Noob learns to code in 3 months

Post by Yumtard » July 16th, 2017, 8:30 pm

10 minutes into part 6, now fighting the urges to pur this tutorial on ice and watch interviews with a vampire

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: Noob learns to code in 3 months

Post by chili » July 17th, 2017, 6:12 am

Say what you want about Anne Rice's stuff, at least it's not Twilight :D
Chili

User avatar
Yumtard
Posts: 575
Joined: January 19th, 2017, 10:28 pm
Location: Idiot from northern Europe

Re: Noob learns to code in 3 months

Post by Yumtard » July 17th, 2017, 8:38 pm

Feeling like a big ole dummy dumbdumb today.

So I've watched part 6 twice. Both times, for whatever reason, I space out completely half way through.
Read up on copy constructors and googled a bunch of stuff. Still feel very confuzzled.

Anyways, after googling, reading and a bunch of failed button mashing I somehow managed to pass all of the tests. But will need to go back to this one in the future.

Tomorrow I'm gonna rewatch the second half of the trig lesson and if there's time, watch the one about matrices. Then I'm putting programming on ice for a little bit while reading up on linear algebra.

hw
Spoiler:

Code: Select all

#pragma once

class Node
{
	friend class Stack;
	Node* next;
	int data;
	Node() = default;
	Node(Node* n, int d)
		:
		next(n),
		data(d)
	{}
};

class Stack
{
public:
	Stack()
		:
		head(0),
		size(0)
	{};
	~Stack();
	Stack(const Stack& source)
		:
		size(source.size)
	{
		Node* cur = nullptr;
		Node* next = nullptr;

		if (source.head)
		{
			head = new Node;
			head->data = source.head->data;
			cur = head;
			next = source.head->next;
		}
		else
		{
			head = nullptr;
		}

		while (next)
		{
			cur->next = new Node;
			cur = cur->next;
			cur->data = next->data;
			next = next->next;
		}
		cur->next = nullptr;
	};
	Stack& operator= (const Stack& source) 
	{
		if (this != &source)
		{
			this->~Stack();
			size = source.size;
			Node* cur = nullptr;
			Node* next = nullptr;

			if (source.head)
			{
				head = new Node;
				head->data = source.head->data;
				cur = head;
				next = source.head->next;
			}
			else
			{
				head = nullptr;
			}

			while (next)
			{
				cur->next = new Node;
				cur = cur->next;
				cur->data = next->data;
				next = next->next;
			}
			cur->next = nullptr;
		}
		return *this; 
	};
	void Push( int val );
	int Pop();
	int Size() const;
	bool Empty() const;

private:
	int size;
	Node* head;
};

Code: Select all

#include "Stack.h"

Stack::~Stack()
{
	while (!Empty())
	{
		Node* newNode = head;
		head = head->next;
		delete newNode;
	}
}

void Stack::Push(int val)
{
	size++;
	head = new Node(head, val);
}

int Stack::Pop()
{
	if (Empty())
	{
		return -1;
	}
	else
	{
		size--;
		Node* newNode = head;
		int d = newNode->data;
		head = head->next;
		delete newNode;
		return d;
	}
}

int Stack::Size() const
{
	return size;
}

bool Stack::Empty() const
{
	return !head;
}
chili wrote:Say what you want about Anne Rice's stuff, at least it's not Twilight :D
I'm waaaay too into vampire movies/shows, but even I can't stand the twilight ones.
I actually did enjoy the books though
Spoiler:
plz don't tell anyone

Post Reply