 | Re: Need a biiiiiiiiiiiiiiiig favour Nightrider! |  |
Posted: 07/25/2007 12:24 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 1:58 AM
Location: St Pete, FL
|

|
|
|
|
 |
Trigger driven means that when an assignment is made to a variable, it triggers an event that launches elsewhere. The triggers are generally removed from the source where it was triggered, so it can be difficult to follow, especially if you can't easily distinguish the triggers from normal code. And one trigger could act like a domino affect triggering other triggers all completely removed from the code that originally started it. That is quite different from Function driven code. You can actually see the call to the function at the source, so it is much easier to follow...
Your friend may be new to this but he writes very complicated code, which isn't always a bad thing unless many others have to be able to follow it too...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Need a biiiiiiiiiiiiiiiig favour Nightrider! |  |
Posted: 07/25/2007 5:16 AM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 6:58 AM
Location: Birmingham, UK.
|

|
|
|
|
 |
Aah right I think I've got it.
| Nightrider wrote:
|
|
Your friend may be new to this but he writes very complicated code, which isn't always a bad thing unless many others have to be able to follow it too...
|
know what you mean  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Need a biiiiiiiiiiiiiiiig favour Nightrider! |  |
Posted: 07/25/2007 4:52 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 1:58 AM
Location: St Pete, FL
|

|
|
|
|
 |
I once was told to work on code that wasn't working. I was able to convert over 700 lines of code into 3. It was incredibly complicated to follow my code but it did work correctly. I had to write about 700 lines of comments to describe what I was doing just in case someone else had to work on it later...
So complicated code isn't always bad, but it can be a real PITA for others who have to work on it...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Need a biiiiiiiiiiiiiiiig favour Nightrider! |  |
Posted: 07/25/2007 5:21 PM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 6:58 AM
Location: Birmingham, UK.
|

|
|
|
|
 |
I guess Karlos didn't expect anyone else to work with the code though, which could be the reason why the codings not commented out  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Need a biiiiiiiiiiiiiiiig favour Nightrider! |  |
Posted: 07/27/2007 4:32 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 1:58 AM
Location: St Pete, FL
|

|
|
|
|
 |
That's probably true. I once had a boss that told me to comment everything even if no one else will ever see the code. My comments actually helped me to figure out what I was doing when I looked at the code later on after not seeing it for a long time. So good coding practices are that you should always comment your code no matter what. I'm sure that Karlos will discover that as he gains more experience...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Need a biiiiiiiiiiiiiiiig favour Nightrider! |  |
Posted: 07/27/2007 5:14 PM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 6:58 AM
Location: Birmingham, UK.
|

|
|
|
|
 |
no doubt  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Need a biiiiiiiiiiiiiiiig favour Nightrider! |  |
Posted: 07/27/2007 9:48 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 1:58 AM
Location: St Pete, FL
|

|
|
|
|
 |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
|