d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Make Me A Better Programmer - From Step 1
Prev1343536373856Next
Add Reply New Topic New Poll
Member
Posts: 23,862
Joined: Aug 16 2006
Gold: 20.00
Apr 17 2014 05:22pm
Finished the simple FIFO scheme. Worked with some minor refactoring! Happy day.
Member
Posts: 23,862
Joined: Aug 16 2006
Gold: 20.00
Apr 20 2014 02:14am
Sp LRU worked and only took like 6 lines of extra code to accomplish.

Basically, I keep a stack of active pages. Normally in the crappy FIFO style, if you need to swap a page into memory, you just replace the oldest guy there.

With LRU, every time a process refers to an active page in memory, I remove him from my list and re-add him at the 'top'.

That way, pages who get referenced a lot will not get swapped out as often.

This post was edited by Eep on Apr 20 2014 02:14am
Member
Posts: 908
Joined: Apr 22 2014
Gold: 32,285.06
Apr 28 2014 06:10pm
hm... so looking forward to comp sci this semseter :S
Member
Posts: 23,862
Joined: Aug 16 2006
Gold: 20.00
Apr 28 2014 06:22pm
Quote (Damianos @ Apr 28 2014 07:10pm)
hm... so looking forward to comp sci this semseter :S


you just starting on the degree? Or did you transfer?
Member
Posts: 908
Joined: Apr 22 2014
Gold: 32,285.06
Apr 28 2014 06:25pm
Quote (Eep @ Apr 28 2014 06:22pm)
you just starting on the degree? Or did you transfer?


going to be just starting my uni experience this fall ^_^
Member
Posts: 23,862
Joined: Aug 16 2006
Gold: 20.00
Apr 28 2014 06:33pm
Quote (Damianos @ Apr 28 2014 07:25pm)
going to be just starting my uni experience this fall ^_^


good luck! I can't speak from experience, because I finished 2 years of gen. ed at a community college before xfering to uni.

You'll most likely end up taking ~1 CS class a semester until the end I would imagine if you are starting at the very beginning.

Make sure to work on time management for stuff like calculus and discrete/algorithms eventually. Those classes require a LOT of outside class work, as your professors will often tell you.
Member
Posts: 908
Joined: Apr 22 2014
Gold: 32,285.06
Apr 28 2014 06:35pm
Quote (Eep @ Apr 28 2014 06:33pm)
good luck! I can't speak from experience, because I finished 2 years of gen. ed at a community college before xfering to uni.

You'll most likely end up taking ~1 CS class a semester until the end I would imagine if you are starting at the very beginning.

Make sure to work on time management for stuff like calculus and discrete/algorithms eventually. Those classes require a LOT of outside class work, as your professors will often tell you.


haha sounds good. im starting off with comp sci 1620 with 2 sets of labs, ^_^ right into programming :S
Member
Posts: 23,862
Joined: Aug 16 2006
Gold: 20.00
Apr 28 2014 06:41pm
Quote (Damianos @ Apr 28 2014 07:35pm)
haha sounds good. im starting off with comp sci 1620 with 2 sets of labs, ^_^ right into programming :S


yeah. You should get right off into it. There is quite a bit to cover. The intro stuff is pretty easy.

Obvious tips:

Ask a shit load of questions if you have any. Professors are there for a reason

Form study groups or make friends. Don't feel bad about working together to solve a problem, just never copy another persons work directly. Having friends is especially useful if you miss a class and need the notes from that day.

Be ready to google a lot.
Member
Posts: 908
Joined: Apr 22 2014
Gold: 32,285.06
Apr 28 2014 06:43pm
Quote (Eep @ Apr 28 2014 06:41pm)
yeah. You should get right off into it. There is quite a bit to cover. The intro stuff is pretty easy.

Obvious tips:

Ask a shit load of questions if you have any. Professors are there for a reason

Form study groups or make friends. Don't feel bad about working together to solve a problem, just never copy another persons work directly. Having friends is especially useful if you miss a class and need the notes from that day.

Be ready to google a lot.


haha sounds good, one of my o workers started last sem, so i might be able to get some help from him hopefully, and i guess make new friends XD
Member
Posts: 23,862
Joined: Aug 16 2006
Gold: 20.00
Apr 29 2014 11:39pm
that feel when you refactor 170+ lines of spaghetti into a much better flowing scheme of 60 lines.

gah, school gives me some bad habits. Thankfully I always remember good flow practices eventually!

This post was edited by Eep on Apr 29 2014 11:40pm
Go Back To Programming & Development Topic List
Prev1343536373856Next
Add Reply New Topic New Poll