Go to Post Too many hours of robotics and too little sleep causes me to forget things.... - AdamHeard [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
View Poll Results: Hmm... to be lazy or not to be lazy
Yes, just get the job done! 5 15.63%
Get the job done as quickly as possible while still being readable... 7 21.88%
No, always make sure it is structured and readable no matter how small the project! 14 43.75%
I don't care... whatever works for you. 6 18.75%
Voters: 32. You may not vote on this poll

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 16-12-2003, 00:27
randomperson's Avatar
randomperson randomperson is offline
Assembler Freak
#0904
Team Role: College Student
 
Join Date: Dec 2002
Rookie Year: 2003
Location: Wyoming,MI
Posts: 100
randomperson is an unknown quantity at this point
Send a message via AIM to randomperson Send a message via MSN to randomperson
Is laziness a good thing?

Ok, lets see what people think about this one...

Quote:
Originally Posted by randomperson
Remember... programming is about laziness! The only thing that really matters in the long run is whether the program actually does what its supposed to do...
Also.. lets put this limitation on it as well..

Quote:
Originally Posted by randomperson
Now wait... programs with hundreds of thousands of lines of code... thats quite different. You HAVE to have some organization otherwise that would be completely unmanageable. I'm deinfitely not talking about something like that... if the linux kernel had no structure to it then linux users would be in trouble...

However, for your own project that needs to get done, as long as it works that IS what matters. After it works, then you make it look pretty.

As for software engineering... obviously when you make code for your employer, your job depends on it being consistant with the companies coding standards and has to work with other peoples projects... but for small personal projects it isn't as necessary (unless you're perfectionist).

Theres a reason why programming traditionally has been called "hacking"...
Hacking in the sense of "putting it together quickly".

Now please note I am not advocating sloppy coding practices and not commenting... as a person who programs mostly in assembler I know the value of comments! Writing without a purpose is pointless! Writing without comments is especially useless! As far as coding practices go, everyone should have some kind of coding style they adhere to and stick to it.. otherwise you're going to get confused when you look back on it... and obviously if the project calls for something else, then use that style...

Sure... you could probably phrase "laziness" better, but im lazy....
__________________
main() {
srandom(time(0));
while(1) {
int pid=random()%30000;
if (pid>1 && pid!=getpid()){
kill(pid, random()&1 ? SIGSTOP : SIGBUS);
sleep(10); }}}

Visit my completely useless website! http://randomperson.cjb.net

Last edited by randomperson : 16-12-2003 at 00:46.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

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


All times are GMT -5. The time now is 00:45.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi