00:00
00:00
arty-farty

Age 38, Male

Teachers

Kolding designskole

Odense

Joined on 7/15/09

Level:
5
Exp Points:
222 / 280
Exp Rank:
> 100,000
Vote Power:
4.29 votes
Rank:
Civilian
Global Rank:
> 100,000
Blams:
1
Saves:
11
B/P Bonus:
0%
Whistle:
Normal
Trophies:
4
Medals:
20

Holes in the code

Posted by arty-farty - June 13th, 2016


I have probably lamented this earlier, but I feel like it needs repeating; there is nothing worse than starting up.

The problem (or rather problems) that I am encountering is in all of the code that I wrote at the start of the project, code that I havn’t looked at for months and which I thought was actually OK.

Well, as it Turns out, this particular Code is actually rather problematic, not only because it isn’t particularly well written, but also because I haven’t made any notes for myself in it.

Let me explain that last remark… when one is creating a project like the one that I am working on currently, One with allot fo code and allot of systems running simultaneously, you can end up with spaghetti code. Spaghetti code is a term for a kind of code which cirkles in and out of itself calling functions from any which way with abandon. This kind of code can be rather chaotic to have to deal with, so as a service to one self, you name everything within the code by whichever function it holds and you make copious note to yourself, so that when you skim the code later, you will be able to figure out what is going on.

Well, I have gotten into a good habit of making these notes to myself, sadly I only got into that habit by the middle of the project, when the code started to become somewhat difficult.

Now I am reading through code from before these notes started and trying to figure out what exactly I was thinking at the time.

It is like trying to read a 10 year old diary, where you have made up nicknames for every person in your life. By this time you cannot remember what nickname matches what person and you didn’t describe the person by visual features in said diary. 

Needless to say, it becomes rather… difficult. Never the less, I persevere.


Comments

Comments ain't a thing here.