Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Nov 5th, 2007, 9:56 PM   #1
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Entertaining read

This is a great story. Perhaps it will yield some insight in how to go about being a valuable employee.

I'm not saying that fighting for every last gain in execution time, or every last byte of footprint is the way to go. Far from it. I think if you have read many of my posts, you will find that I'm a great fan of abstraction.

An example: I once spent three weeks whittling seven bytes from my code. It was an economical venture. Failure would have entailed doubling the amount of memory at an exorbitant cost. If one multiplied that cost by the number of units being produced, the product would have been a sure loser. I would shoot myself if I had to do that today.

The point is: do the best you can given today's realities. When tomorrow comes, change appropriately.

In the past, hard resources were much more expensive than the average programmer's time. The same is not true today. One must learn to balance.

In simple terms, the cost of a product is the recurring cost + the non-recurring costs divided by the number of units produced. For a first approximation, grade-school math is all you need. Good managers and bean-counters can make the finer adjustments. When programmers are more expensive than resources, RAD and judicious resource waste is the way to go.

If you want to be valuable, consider these things. Consider the impact. If you don't care, don't worry about it too much. You will be kept in the realm of code monkey/robot.

Enjoy the read: real programmers.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Nov 6th, 2007, 10:03 PM   #2
Grich
Hobbyist Programmer
 
Grich's Avatar
 
Join Date: Sep 2007
Location: Sydney - Australia
Posts: 165
Rep Power: 1 Grich is on a distinguished road
Re: Entertaining read

I have a Mel like character in the course I'm doing. He is arrogant and anti social, but man he can really write some killer code. He gets bad marks because the teachers can't understand his code. But he is brilliant.
These days programmers don't have to understand the lower level features of what they are doing. Most of the time it isn't worth it. Processors are faster, the language itself automates it. For example, C++, you create pointers, JAVA it is "automated". It is good and bad at the same time.
Good little article, I enjoy reading about the "old school" ways of programming in lower level.
__________________
SYNTAX ERROR ...
Grich is offline   Reply With Quote
Old Nov 7th, 2007, 1:49 AM   #3
Jimbo
Battle Programmer
 
Jimbo's Avatar
 
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 751
Rep Power: 3 Jimbo is on a distinguished road
Re: Entertaining read

Quote:
Originally Posted by Grich View Post
I have a Mel like character in the course I'm doing. He is arrogant and anti social, but man he can really write some killer code. He gets bad marks because the teachers can't understand his code. But he is brilliant.
These days programmers don't have to understand the lower level features of what they are doing. Most of the time it isn't worth it. Processors are faster, the language itself automates it. For example, C++, you create pointers, JAVA it is "automated". It is good and bad at the same time.
Good little article, I enjoy reading about the "old school" ways of programming in lower level.
He may be brilliant, but maintainability is also a very important part of coding. I'm thinking he got low scores in that category.
__________________
<insert disclaimer here>
<insert shameless plug for Visual Studio here>
Jimbo is offline   Reply With Quote
Old Nov 7th, 2007, 5:50 AM   #4
ZenMasterJG
Hobbyist Programmer
 
ZenMasterJG's Avatar
 
Join Date: Nov 2004
Location: Boston, MA
Posts: 148
Rep Power: 4 ZenMasterJG is on a distinguished road
Send a message via AIM to ZenMasterJG
Re: Entertaining read

Some quick googling reveals that computer in the story cost $47,000 in 1957 dollars (The equivalent of $341,819 today!)
It used 31 bit words, and the drum could store 4096 of them, for a grand total of 126976 bits. Thats 124 kibibits, or, roughly, 1/1.056*10^-7 th the storage capacity of my $900-last-year laptop.

Yeah, screw the optimizing compiler.
ZenMasterJG is online now   Reply With Quote
Old Nov 7th, 2007, 7:08 AM   #5
hollystyles
Omlette du fromage
 
hollystyles's Avatar
 
Join Date: Oct 2007
Posts: 29
Rep Power: 0 hollystyles is on a distinguished road
Re: Entertaining read

Lol. That's From a very different era indeed! Optimization aside. If I refused to implement something and then implemented the opposite of what my boss requested. I don't think 'Greener pastures' would be a likely destination for me! No matter how greasy the code

Granted of course so far my boss has never required anything moraly questionable of me.
hollystyles is offline   Reply With Quote
Old Nov 7th, 2007, 3:57 PM   #6
Grich
Hobbyist Programmer
 
Grich's Avatar
 
Join Date: Sep 2007
Location: Sydney - Australia
Posts: 165
Rep Power: 1 Grich is on a distinguished road
Re: Entertaining read

Quote:
Originally Posted by Jimbo View Post
He may be brilliant, but maintainability is also a very important part of coding. I'm thinking he got low scores in that category.
Yeah, he did unfortunately. I keep telling him that.
__________________
SYNTAX ERROR ...
Grich is offline   Reply With Quote
Old Nov 7th, 2007, 5:11 PM   #7
Baphomet
Retired Programmer
 
Baphomet's Avatar
 
Join Date: Jul 2006
Posts: 45
Rep Power: 0 Baphomet is on a distinguished road
Re: Entertaining read

If you can't write code others can read, you won't get jobs where you have to collaborate with others on the same project, using the same code; Many (most) jobs require this skill. I suffered from this during school and a while after. But I grew from it. I learned to how to write code with others in mind. I didn't prefer it, but I learned to do it. I often avoided jobs where I had to work with others in programming. But on the other hand some employers liked that I had the ability to program by myself with no other help needed. It was much cheaper.

Now that I'm retired, I no longer need to program with other people in mind, because I only program as a hobby.
Baphomet is offline   Reply With Quote
Old Nov 8th, 2007, 7:31 PM   #8
InfiNate
Newbie
 
Join Date: Nov 2007
Location: Waterloo, ON
Posts: 20
Rep Power: 0 InfiNate is on a distinguished road
Re: Entertaining read

Quote:
Originally Posted by ZenMasterJG View Post
roughly, 1/1.056*10^-7 th the storage capacity of my $900-last-year laptop.
Didn't realize storage capacity kicked the ass out of anything we have today.
InfiNate is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
1 line if code blocks; easier to read G.I.Josh Perl 5 Nov 6th, 2007 11:30 PM
Read file backwards Keiro PHP 11 Aug 14th, 2007 3:01 AM
Read MPEG-4 Is it Possible tayspen C# 4 Oct 2nd, 2005 3:46 PM
read to line in textfile tayspen C# 10 Sep 28th, 2005 1:02 PM
Read Programm Version from outside lgiordano C 4 Jul 13th, 2005 9:58 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:18 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC