Ashtefere
Member
|
RE: Visual Scripting
Yeah, he understands chaining quite well.
The point of the article though is to make it human readable.
What I see above is a shortened abbreviated chained function. In the article its readable and understandable to anyone who doesnt code.
The above command, made fluent, would be something like:
Display.Resolution(1440,900,false).RayTrace?(true).AmbientPower(0.4).SoftShadows(0).vSync(true).ViewRange(10).EdgeSoftenMode(HIGH);
Only slight changes, but anyone knows what that means.
|
|
01-13-2011 01:21 AM |
|
Chris
Member
|
RE: Visual Scripting
Haha *thumbs up for RayTrace(true) display mode* that'd be cool
PS, I agree good interface design is important; saves lots of time, and makes code understandable, modularity etc.
|
|
01-13-2011 01:30 AM |
|
Driklyn
Member
|
RE: Visual Scripting
(01-13-2011 01:30 AM)Chris Wrote: Haha *thumbs up for RayTrace(true) display mode* that'd be cool
lol, I guess that proves his point about human readable code.
Nice article.
|
|
01-13-2011 02:49 AM |
|
Ashtefere
Member
|
RE: Visual Scripting
Yeah - im thinking of doing this for my projects from now on, esenthel or not.
Later down the track if I take a look at my code again, there will be far less "wtf"s.
-Ash
|
|
01-13-2011 03:19 AM |
|