[XCSSA] Old-school programming techniques you probably don't miss...

X-otic Computer Systems of San Antonio xcssa at xcssa.org
Fri May 1 14:26:19 CDT 2009


X-otic Computer Systems of San Antonio wrote:
> On Friday 01 May 2009, X-otic Computer Systems of San Antonio wrote:
>   
>> Yes, I have done most of them...
>> And still do, Micro controllers don't come with a GUI...
>> Self modifying code is actually vital to the propeller... ;-)
>>
>> Old-school programming techniques you probably don't miss,
>> *http://tinyurl.com/ct2wuz
>>     
>
> Yeah.. I think the article's flawed.  The concepts he so flippantly disposes 
> of are key to understand what's going on behind the scenes.  Coders who 
> discount such important concepts are the same "coders" who may a flash web 
> page and call them selves web developers. ;)
>   
Yes, I'm actually glad I learned the linked lists, bubble sort, memory 
management etc...
Anyone else remember keeping and sorting arrays of pointers to a linked 
list ?
That was the good old days...

One assignment I had in an introduction class to computers (early 1990s) 
was to write a program that generated 7 random numbers between 1 and 35...
We just learned about arrays and bubble sort so the logical choice was 
to do a bubble sort of an array of 7 numbers.
What I did was to allocate an array of 35 numbers, fill them with 0 and 
then set seven of them to 1 according to the random number, double 
checking to make sure it had not already been set.
Printing a sorted list was pretty easy after that... ;-)

Knowing what is going on behind the scene also helps you think out of 
the box...

>> Real programmers don't comment their code. If it was hard to write it
>> should be hard to read...
>>     
>
> Ha.. now that I DON'T agree with.. especially if you've had to adopt some 
> other programmer's spaghetti! And more so if that code ends in .pl !  ;)
>
> Tweeks
>   
Actually, some code I write today has more comments than actual code 
since I know I'm the one who has to come back two years later and fix it 
when the specifications change... ;-)

/Fredrik



More information about the XCSSA mailing list