willichan Posted August 7, 2013 Share Posted August 7, 2013 https://github.com/NYTimes/objective-c-style-guide [sarcasm] Hurrah! The programming experts at the New York Times have published their style guide for C. Start cleaning up your code folks. [/sarcasm] This was aparently written for Objective-C, but they want it to be adopted for all C-style languages. That's right. All this time, you thought turning to technical publications and fellow coders was the way to go, when in fact you should have been turning to a newspaper. [can't seem to /sarcasm] czardas 1 My UDFs: Barcode Libraries, Automate creation of any type of project folder, File Locking with Cooperative Semaphores, Inline binary files, Continue script after reboot, WinWaitMulti, Name Aggregator, Enigma, CornedBeef Hash Link to comment Share on other sites More sharing options...
Administrators Jon Posted August 7, 2013 Administrators Share Posted August 7, 2013 I read that, they advocate this style which I have never managed to get on with if (something) { ... ... .. } I stopped reading after that trancexx and FireFox 2 Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Richard Robertson Posted August 8, 2013 Share Posted August 8, 2013 I will never understand people who indent with manual spaces. I stopped reading at that part. Which is only the second part. The first one made no sense as I'm not an Objective-C coder. Link to comment Share on other sites More sharing options...
FireFox Posted August 8, 2013 Share Posted August 8, 2013 if (something) { ... ... .. }Damn, you forgot a 4th space. Link to comment Share on other sites More sharing options...
monoceres Posted August 8, 2013 Share Posted August 8, 2013 What's so special about this? It's just some rules used by NYTimes to make sure their code base is following the same style. This style guide outlines the coding conventions of the iOS team at The New York Times. It's far more important that everybody in a team follow the same conventions than that the code is 100 % correct from a philosophical standpoint (which of course isn't even objective(-c)). Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
Shaggi Posted August 8, 2013 Share Posted August 8, 2013 It's far more important that everybody in a team follow the same conventions than that the code is 100 % correct from a philosophical standpoint (which of course isn't even objective(-c)). I'll second this. Consistency is always the best, else reading/working on an existing codebase is arguably enough reason to suicide. Ever wanted to call functions in another process? ProcessCall UDFConsole stuff: Console UDFC Preprocessor for AutoIt OMG Link to comment Share on other sites More sharing options...
Ascend4nt Posted August 9, 2013 Share Posted August 9, 2013 The Google style guides are interesting read, and the Facebook open-source code (folly) is nice to peruse although they don't have a style guide per se. Still, Andrei Alexandrescu, who's a part of that team and author of Modern C++ Design, is an amazing talent from which alot can be learned about coding style. My contributions: Performance Counters in Windows - Measure CPU, Disk, Network etc Performance | Network Interface Info, Statistics, and Traffic | CPU Multi-Processor Usage w/o Performance Counters | Disk and Device Read/Write Statistics | Atom Table Functions | Process, Thread, & DLL Functions UDFs | Process CPU Usage Trackers | PE File Overlay Extraction | A3X Script Extract | File + Process Imports/Exports Information | Windows Desktop Dimmer Shade | Spotlight + Focus GUI - Highlight and Dim for Eyestrain Relief | CrossHairs (FullScreen) | Rubber-Band Boxes using GUI's (_GUIBox) | GUI Fun! | IE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) | Magnifier (Vista+) Functions UDF | _DLLStructDisplay (Debug!) | _EnumChildWindows (controls etc) | _FileFindEx | _ClipGetHTML | _ClipPutHTML + ClipPutHyperlink | _FileGetShortcutEx | _FilePropertiesDialog | I/O Port Functions | File(s) Drag & Drop | _RunWithReducedPrivileges | _ShellExecuteWithReducedPrivileges | _WinAPI_GetSystemInfo | dotNETGetVersions | Drive(s) Power Status | _WinGetDesktopHandle | _StringParseParameters | Screensaver, Sleep, Desktop Lock Disable | Full-Screen Crash Recovery Wrappers/Modifications of others' contributions: _DOSWildcardsToPCRegEx (original code: RobSaunder's) | WinGetAltTabWinList (original: Authenticity) UDF's added support/programming to: _ExplorerWinGetSelectedItems | MIDIEx UDF (original code: eynstyne) (All personal code/wrappers centrally located at Ascend4nt's AutoIT Code) Link to comment Share on other sites More sharing options...
willichan Posted August 9, 2013 Author Share Posted August 9, 2013 I don't think I have ever been anywhere even close to what they want to see. But then again, I have always had an aversion to newsprint on my fingertips. It messes with the pizza sauce flavor. My UDFs: Barcode Libraries, Automate creation of any type of project folder, File Locking with Cooperative Semaphores, Inline binary files, Continue script after reboot, WinWaitMulti, Name Aggregator, Enigma, CornedBeef Hash Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now