Rosetta Code:Village Pump/Suggest a programming task: Difference between revisions

Content added Content deleted
Line 258: Line 258:
* Should we have a task that demonstrates how some languages do boolean shortcutting and some don't? --[[User:Axtens|Axtens]] 08:41, 22 March 2010 (UTC)
* Should we have a task that demonstrates how some languages do boolean shortcutting and some don't? --[[User:Axtens|Axtens]] 08:41, 22 March 2010 (UTC)
** No. A task that specific is just gloating. What educational value would it have? Boolean short-circuiting is an important characteristic of operators, but IMO it's too small to be of interest ''by itself''. —[[User:Kevin Reid|Kevin Reid]] 10:31, 22 March 2010 (UTC)
** No. A task that specific is just gloating. What educational value would it have? Boolean short-circuiting is an important characteristic of operators, but IMO it's too small to be of interest ''by itself''. —[[User:Kevin Reid|Kevin Reid]] 10:31, 22 March 2010 (UTC)

** Maybe if the task was worded as "Set a variable V to the result of funca() and funcb(), where both functions return a boolean result. Only ever call funcb() if funca() returns True. Use boolean short circuiting if your language supports it"? --[[User:Paddy3118|Paddy3118]] 16:33, 24 July 2010 (UTC)


* Financial functions. E.g. Future Value, Present Value, Nominal declining balance depreciation, Straight line depreciation, Uneven internal rate of return, Weibull analysis, T-Bill Discount ... and the list goes on. Examples: [http://finance-old.bi.no/~bernt/gcc_prog/recipes/recipes/node3.html the value of time] --[[User:Axtens|Axtens]] 14:29, 20 March 2010 (UTC)
* Financial functions. E.g. Future Value, Present Value, Nominal declining balance depreciation, Straight line depreciation, Uneven internal rate of return, Weibull analysis, T-Bill Discount ... and the list goes on. Examples: [http://finance-old.bi.no/~bernt/gcc_prog/recipes/recipes/node3.html the value of time] --[[User:Axtens|Axtens]] 14:29, 20 March 2010 (UTC)