Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   How does your team architect its codebase? (http://www.chiefdelphi.com/forums/showthread.php?t=105034)

Lalaland1125 08-04-2012 11:32

Re: How does your team architect its codebase?
 
One interesting idea our team implemented this year was functional programming(having functions accept functions as parameters).

This way we could write a ToggleButton function that would take two functions and schedule them to alternate when a button is pressed using the command system.

We could also write things like UntilDistanceTo or TimeSince for autonomous or teleop pseudo-autonomous code.

It made reusing code very easy, as almost any request can be stuffed into a function without modifying the functional code receiving it.


All times are GMT -5. The time now is 20:16.

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