Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » is there U++ coding style reference?
Re: is there U++ coding style reference? [message #27761 is a reply to message #27760] Mon, 02 August 2010 11:21 Go to previous messageGo to previous message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
kohait00 wrote on Mon, 02 August 2010 08:06

good is also, that there is kind of a standard implicit positive action in many API functions, to be used as triggers or parameters or so, and they have negative counterparts that simply rely on the positive ones.

void Enable(bool e = true) {/*your code*/
void Disable() { return Enable(false); }
bool IsEnabled() const { /*your code*/ }

is really practical.

that was my 2 cents Smile

That's a very good point IMO. These functions are largely redundant but what they do is make code more grammatical by adding verbs in the correct places. Upp code is both easier to read and to write because of little things like this. Personally I think it's the easiest coding style to read that I've ever seen.

I've been working on a .Net project recently and in comparison I find the code very difficul to read. Partly this is inexperience with .Net but I think it's also down some poor naming conventions and language design choices.


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: using Ctrl::Add; required for templates / overloaded virtual functions
Next Topic: dll instead of exe
Goto Forum:
  


Current Time: Wed May 14 17:17:06 CEST 2025

Total time taken to generate the page: 0.00587 seconds